summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_ciphers.c
diff options
context:
space:
mode:
authortb <>2024-02-01 17:11:58 +0000
committertb <>2024-02-01 17:11:58 +0000
commit555b4e1a5af97f780be7eba8d1827c5ffe71a9fe (patch)
treee2070c4e4f6c2df530a294429ad28079551d7d77 /src/lib/libssl/ssl_ciphers.c
parent8f9e116015d3586265906c84fe53915385d7de67 (diff)
downloadopenbsd-555b4e1a5af97f780be7eba8d1827c5ffe71a9fe.tar.gz
openbsd-555b4e1a5af97f780be7eba8d1827c5ffe71a9fe.tar.bz2
openbsd-555b4e1a5af97f780be7eba8d1827c5ffe71a9fe.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_ciphers.c')
0 files changed, 0 insertions, 0 deletions