diff options
author | tb <> | 2023-12-22 12:35:22 +0000 |
---|---|---|
committer | tb <> | 2023-12-22 12:35:22 +0000 |
commit | b838d1bcba85acb4024e74e7e78b02852d380ae9 (patch) | |
tree | dc5712bc527a6c0d2066ea53c4f13ae78d88a778 /src/lib/libc/string/strndup.c | |
parent | be0bb03b7cb6789b3ea101b1fa9906e3d34afc23 (diff) | |
download | openbsd-b838d1bcba85acb4024e74e7e78b02852d380ae9.tar.gz openbsd-b838d1bcba85acb4024e74e7e78b02852d380ae9.tar.bz2 openbsd-b838d1bcba85acb4024e74e7e78b02852d380ae9.zip |
Simplify some logic in EVP_EncryptInit_ex()
Pull up the EVP_R_NO_CIPHER_SET check that was hidden somewhere down in the
middle of the function. Handle the reuse case outside of the big non-NULL
cipher case for now. This looks a bit odd but relies on the invariant that
cipher_data is only set if the cipher is set. It will be reworked in a
subsequent commit.
ok jsing
Diffstat (limited to 'src/lib/libc/string/strndup.c')
0 files changed, 0 insertions, 0 deletions