summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_sess.c
diff options
context:
space:
mode:
authorjsing <>2017-01-23 01:22:08 +0000
committerjsing <>2017-01-23 01:22:08 +0000
commitfdee32bae021d93d570e88a1dbbea0b3bad2c1e0 (patch)
tree0516913107a84da915d173ba7ce7df2e5e964a93 /src/lib/libssl/ssl_sess.c
parenta52552c2ca63345dc67023aa087ad6048779e0d3 (diff)
downloadopenbsd-fdee32bae021d93d570e88a1dbbea0b3bad2c1e0.tar.gz
openbsd-fdee32bae021d93d570e88a1dbbea0b3bad2c1e0.tar.bz2
openbsd-fdee32bae021d93d570e88a1dbbea0b3bad2c1e0.zip
Move not_resumable and sess_cert from SSL_SESSION to internal.
ok beck@
Diffstat (limited to 'src/lib/libssl/ssl_sess.c')
-rw-r--r--src/lib/libssl/ssl_sess.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/libssl/ssl_sess.c b/src/lib/libssl/ssl_sess.c
index 7f03d12d35..2520843cc0 100644
--- a/src/lib/libssl/ssl_sess.c
+++ b/src/lib/libssl/ssl_sess.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_sess.c,v 1.56 2017/01/23 00:12:55 jsing Exp $ */ 1/* $OpenBSD: ssl_sess.c,v 1.57 2017/01/23 01:22:08 jsing Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -673,7 +673,7 @@ remove_session_lock(SSL_CTX *ctx, SSL_SESSION *c, int lck)
673 CRYPTO_w_unlock(CRYPTO_LOCK_SSL_CTX); 673 CRYPTO_w_unlock(CRYPTO_LOCK_SSL_CTX);
674 674
675 if (ret) { 675 if (ret) {
676 r->not_resumable = 1; 676 r->internal->not_resumable = 1;
677 if (ctx->remove_session_cb != NULL) 677 if (ctx->remove_session_cb != NULL)
678 ctx->remove_session_cb(ctx, r); 678 ctx->remove_session_cb(ctx, r);
679 SSL_SESSION_free(r); 679 SSL_SESSION_free(r);
@@ -699,8 +699,8 @@ SSL_SESSION_free(SSL_SESSION *ss)
699 699
700 explicit_bzero(ss->master_key, sizeof ss->master_key); 700 explicit_bzero(ss->master_key, sizeof ss->master_key);
701 explicit_bzero(ss->session_id, sizeof ss->session_id); 701 explicit_bzero(ss->session_id, sizeof ss->session_id);
702 if (ss->sess_cert != NULL) 702 if (ss->internal->sess_cert != NULL)
703 ssl_sess_cert_free(ss->sess_cert); 703 ssl_sess_cert_free(ss->internal->sess_cert);
704 X509_free(ss->peer); 704 X509_free(ss->peer);
705 if (ss->ciphers != NULL) 705 if (ss->ciphers != NULL)
706 sk_SSL_CIPHER_free(ss->ciphers); 706 sk_SSL_CIPHER_free(ss->ciphers);
@@ -910,7 +910,7 @@ timeout_doall_arg(SSL_SESSION *s, TIMEOUT_PARAM *p)
910 * save on locking overhead */ 910 * save on locking overhead */
911 (void)lh_SSL_SESSION_delete(p->cache, s); 911 (void)lh_SSL_SESSION_delete(p->cache, s);
912 SSL_SESSION_list_remove(p->ctx, s); 912 SSL_SESSION_list_remove(p->ctx, s);
913 s->not_resumable = 1; 913 s->internal->not_resumable = 1;
914 if (p->ctx->remove_session_cb != NULL) 914 if (p->ctx->remove_session_cb != NULL)
915 p->ctx->remove_session_cb(p->ctx, s); 915 p->ctx->remove_session_cb(p->ctx, s);
916 SSL_SESSION_free(s); 916 SSL_SESSION_free(s);