summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_lib.c
diff options
context:
space:
mode:
authorjsing <>2024-07-23 14:40:54 +0000
committerjsing <>2024-07-23 14:40:54 +0000
commitdb84a0d6a236726c87d7c4ee86e95e65452b429e (patch)
tree5d02fbe166341d303cc7117737100adbfbf744c2 /src/lib/libssl/ssl_lib.c
parentee47b67deae4b8751972f7fc4a0b821ffc61bb86 (diff)
downloadopenbsd-db84a0d6a236726c87d7c4ee86e95e65452b429e.tar.gz
openbsd-db84a0d6a236726c87d7c4ee86e95e65452b429e.tar.bz2
openbsd-db84a0d6a236726c87d7c4ee86e95e65452b429e.zip
Remove get_cipher from SSL_METHOD.
Inline the get_cipher implementation (including the special handling for DTLS) in ssl_cipher_collect_ciphers() (the only consumer), remove the get_cipher member of SSL_METHOD and mop up dtls1_get_cipher(). ssl3_get_cipher() has always had a strange property of being a reverse index, which is relied on by the cipher list ordering code, since it currently assumes that high cipher suite values are preferable. Rather than complicating ssl3_get_cipher() (and regress), change the iteration order in ssl_cipher_collect_ciphers() to match what it requires. Lastly, rename ssl3_get_cipher() to be more descriptive. ok tb@
Diffstat (limited to 'src/lib/libssl/ssl_lib.c')
0 files changed, 0 insertions, 0 deletions