diff options
author | HÃ¥vard Molland <haavardm@opera.com> | 2014-08-14 16:42:37 +0400 |
---|---|---|
committer | Adam Langley <agl@google.com> | 2014-08-21 20:21:46 +0400 |
commit | 9169c964589694a3dac5fecf6465806fb1f8b22b (patch) | |
tree | b36714b4486985b7b56f469a08b9eb7378383df8 /ssl/ssl_sess.c | |
parent | c44d2f4cb8a892a603edbbe710fa82bcd30f9cb5 (diff) |
Implement client side of TLS signed certificate stamps extension.
https://crbug.com/389420 and 3.3 in rfc6962.
Change-Id: Ib22bcd4e4bde5a314ed33e123e19a76cdb714da4
Reviewed-on: https://boringssl-review.googlesource.com/1491
Reviewed-by: David Benjamin <davidben@chromium.org>
Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'ssl/ssl_sess.c')
-rw-r--r-- | ssl/ssl_sess.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/ssl/ssl_sess.c b/ssl/ssl_sess.c index 88810427..56ba7c94 100644 --- a/ssl/ssl_sess.c +++ b/ssl/ssl_sess.c @@ -211,18 +211,7 @@ SSL_SESSION *SSL_SESSION_new(void) ss->references=1; ss->timeout = SSL_DEFAULT_SESSION_TIMEOUT; ss->time=(unsigned long)time(NULL); - ss->prev=NULL; - ss->next=NULL; - ss->tlsext_hostname = NULL; -#ifndef OPENSSL_NO_EC - ss->tlsext_ecpointformatlist_length = 0; - ss->tlsext_ecpointformatlist = NULL; - ss->tlsext_ellipticcurvelist_length = 0; - ss->tlsext_ellipticcurvelist = NULL; -#endif CRYPTO_new_ex_data(CRYPTO_EX_INDEX_SSL_SESSION, ss, &ss->ex_data); - ss->psk_identity_hint=NULL; - ss->psk_identity=NULL; return(ss); } @@ -727,6 +716,8 @@ void SSL_SESSION_free(SSL_SESSION *ss) ss->tlsext_ellipticcurvelist_length = 0; if (ss->tlsext_ellipticcurvelist != NULL) OPENSSL_free(ss->tlsext_ellipticcurvelist); #endif /* OPENSSL_NO_EC */ + if (ss->tlsext_signed_cert_timestamp_list != NULL) + OPENSSL_free(ss->tlsext_signed_cert_timestamp_list); if (ss->psk_identity_hint != NULL) OPENSSL_free(ss->psk_identity_hint); if (ss->psk_identity != NULL) |