summaryrefslogtreecommitdiffstats
path: root/ssl/s3_srvr.c
diff options
context:
space:
mode:
authorEmilia Kasper <emilia@openssl.org>2015-09-18 15:00:37 +0200
committerEmilia Kasper <emilia@openssl.org>2015-09-22 20:34:25 +0200
commite9fa092efca0afbf99bb575193f69e3f8a938f02 (patch)
tree6a4610b37c5249d3176c0a778adfa613be3b1ff8 /ssl/s3_srvr.c
parent21b0fa91186ff1c1c3d956c0593ef4ac02521695 (diff)
Remove ssl_put_cipher_by_char
Since SSLv3, a CipherSuite is always 2 bytes. The only place where we need 3-byte ciphers is SSLv2-compatible ClientHello processing. So, remove the ssl_put_cipher_by_char indirection. Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'ssl/s3_srvr.c')
-rw-r--r--ssl/s3_srvr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/s3_srvr.c b/ssl/s3_srvr.c
index aea72794ef..f771bd9eee 100644
--- a/ssl/s3_srvr.c
+++ b/ssl/s3_srvr.c
@@ -3520,7 +3520,7 @@ STACK_OF(SSL_CIPHER) *ssl_bytes_to_cipher_list(SSL *s, unsigned char *p,
if(sslv2format) {
n = SSLV2_CIPHER_LEN;
} else {
- n = ssl_put_cipher_by_char(s, NULL, NULL);
+ n = TLS_CIPHER_LEN;
}
if (n == 0 || (num % n) != 0) {
SSLerr(SSL_F_SSL_BYTES_TO_CIPHER_LIST,