Provide a ssl3_get_cipher_by_id() function that allows ciphers to be looked
authorjsing <jsing@openbsd.org>
Mon, 11 Aug 2014 01:06:22 +0000 (01:06 +0000)
committerjsing <jsing@openbsd.org>
Mon, 11 Aug 2014 01:06:22 +0000 (01:06 +0000)
commitba83acf62b74ac38323cdf014409e05439e107e0
tree9d1a129b8545cc245157d4e66ca887803cb26ad1
parenta44328353d77478090647ec991756c53a071ee35
Provide a ssl3_get_cipher_by_id() function that allows ciphers to be looked
up by their ID. For one, this avoids an ugly mess in ssl_sess.c, where the
cipher value is manually written into a buffer, just so the cipher can be
located using ssl3_get_cipher_by_char().

ok bcook@ miod@
lib/libssl/s3_lib.c
lib/libssl/src/ssl/s3_lib.c
lib/libssl/src/ssl/ssl_locl.h
lib/libssl/src/ssl/ssl_sess.c
lib/libssl/ssl_locl.h
lib/libssl/ssl_sess.c