1
0
mirror of https://github.com/openbsd/src.git synced 2024-12-22 07:27:59 -08:00
OpenBSD
Go to file
schwarze 4ac9059474 If EVP_CIPHER_CTX_ctrl(3) is called on EVP_chacha20_poly1305(3)
with an unsupported control command, return -1 rather than 0
to the caller to indicate the error because in general, these
control hooks ought to return -1 for unsupported control commands
and 0 for other errors, for example other invalid arguments.

Not a big deal because this change does not change when operations
succeed or fail, and because callers are unlikely to pass unsupported
control commands in the first place.  The only functional change is that
if a calling program inspects the ERR(3) stack after this failure,
it will now find the correct error code rather than nothing.
Even that wasn't a huge problem because for most EVP_CIPHER control
failures, getting no reason for the error is the usual situation.
Then again, giving the reason when easily possible may occasionally
be useful.  OpenSSL also returns -1 in this case, so it also helps
compatibility a tiny bit.

Found while auditing the return values of all the EVP_CIPHER
control hooks in our tree.  This was the only fishy one i found.

OK tb@
2024-12-20 20:05:29 +00:00
bin use a more readable explanation of directory creation; 2024-11-30 06:59:12 +00:00
distrib sync 2024-12-19 23:57:27 +00:00
etc Make the example bgpd.conf work with 4byte ASN out of the box. 2024-12-18 16:00:26 +00:00
games Emit a warning if all fortunes in the file are too short or too long 2024-10-21 06:39:03 +00:00
gnu Install riscv_vector.h 2024-12-17 13:22:38 +00:00
include a.out is no longer the commonly encountered binary file format, the world has 2024-10-16 18:47:47 +00:00
lib If EVP_CIPHER_CTX_ctrl(3) is called on EVP_chacha20_poly1305(3) 2024-12-20 20:05:29 +00:00
libexec gettytab's dx flag is supposed to set decctlq, which is the opposite of 2024-11-09 11:22:18 +00:00
regress mlkem regress: garbage collect two global variables 2024-12-20 15:47:26 +00:00
sbin use opendev() for fsck_ext2fs, based on code adding this to fsck_ffs 2024-12-18 10:36:05 +00:00
share rewrite a sentence, add a width specifier to a list, and some "a" -> "an"; 2024-12-16 21:39:29 +00:00
sys Fix signed integer comparison in tcp mss. 2024-12-20 19:20:34 +00:00
usr.bin sndiod: Switch to printf(3)-style logging 2024-12-20 07:35:56 +00:00
usr.sbin Improve cleanup process 2024-12-19 13:23:38 +00:00
.gitignore Ignore CVS directories for easier git + CVS coexistence. 2023-07-07 15:44:54 +00:00
Makefile minor cranking of libraries exposes a problem, details too long to explain. 2020-04-05 20:14:14 +00:00
Makefile.cross riscv64 is a LP64_ARCH, list it as such. 2021-05-03 00:04:31 +00:00