diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2024-07-19 08:54:32 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2024-07-19 08:54:32 +0000 |
commit | 3695c7e799243402bf76ed4ad3411bda31422267 (patch) | |
tree | f8b5155d7f53dd75cea2492bdae17125503c2ac4 /lib/libssl/ssl_sess.c | |
parent | 1208616b7672d7acda58d65766dc13073e9a4889 (diff) |
Move client ciphers from SSL_SESSION to SSL_HANDSHAKE.
SSL_SESSION has a 'ciphers' member which contains a list of ciphers
that were advertised by the client. Move this from SSL_SESSION to
SSL_HANDSHAKE and rename it to match reality.
ok tb@
Diffstat (limited to 'lib/libssl/ssl_sess.c')
-rw-r--r-- | lib/libssl/ssl_sess.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/libssl/ssl_sess.c b/lib/libssl/ssl_sess.c index cb985cadb56..76f194ca78c 100644 --- a/lib/libssl/ssl_sess.c +++ b/lib/libssl/ssl_sess.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl_sess.c,v 1.125 2024/03/27 06:47:52 tb Exp $ */ +/* $OpenBSD: ssl_sess.c,v 1.126 2024/07/19 08:54:31 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -290,11 +290,6 @@ ssl_session_dup(SSL_SESSION *sess, int include_ticket) copy->cipher = sess->cipher; copy->cipher_id = sess->cipher_id; - if (sess->ciphers != NULL) { - if ((copy->ciphers = sk_SSL_CIPHER_dup(sess->ciphers)) == NULL) - goto err; - } - if (sess->tlsext_hostname != NULL) { copy->tlsext_hostname = strdup(sess->tlsext_hostname); if (copy->tlsext_hostname == NULL) @@ -881,8 +876,6 @@ SSL_SESSION_free(SSL_SESSION *ss) X509_free(ss->peer_cert); - sk_SSL_CIPHER_free(ss->ciphers); - free(ss->tlsext_hostname); free(ss->tlsext_tick); free(ss->tlsext_ecpointformatlist); |