diff options
author | tb <> | 2024-02-01 17:11:58 +0000 |
---|---|---|
committer | tb <> | 2024-02-01 17:11:58 +0000 |
commit | 9a5bd9b75cf441125c089dafcb5438192c5316ee (patch) | |
tree | e2070c4e4f6c2df530a294429ad28079551d7d77 /src/lib/libssl/ssl_err.c | |
parent | 4eb78b51aee4bd5ba9d46d0026200ae12a29bf93 (diff) | |
download | openbsd-9a5bd9b75cf441125c089dafcb5438192c5316ee.tar.gz openbsd-9a5bd9b75cf441125c089dafcb5438192c5316ee.tar.bz2 openbsd-9a5bd9b75cf441125c089dafcb5438192c5316ee.zip |
Inline EVP_PBE_find() in its last two callers
This API was already cleaned up quite a bit, but it is unused in the
ecosystem and the two internal callers can be simplified a lot when
inlining the lookups.
EVP_PBE_CipherInit() can walk the table of "outer" PBEs and reach into
the matching pbe for its cipher_nid, md_nid and keygen().
PKCS5_v2_PBKDF2_keyivgen() uses EVP_PBE_find() as a way to mapping a
PRF (given by the nid of an HMAC with some digest) to the digest's nid.
This can be done by a simple switch. Move MD5 to the top and GOST to
the end in that switch and wrap the latter in OPENSSL_NO_GOST, so it
will go away once we define OPENSSL_NO_GOST.
ok beck
Diffstat (limited to 'src/lib/libssl/ssl_err.c')
0 files changed, 0 insertions, 0 deletions