diff options
author | Trevor <trevp@trevp.net> | 2013-05-13 03:55:27 +0200 |
---|---|---|
committer | Ben Laurie <ben@links.org> | 2013-06-12 18:01:13 +0200 |
commit | a398f821fa98b9923a426cf45b268cf4d56c89bd (patch) | |
tree | 7bedc4b2a027f86e9d2d8cd9b4814ebddaf0c39e /ssl/s3_lib.c | |
parent | Add aesni-sha256-x86_64. (diff) | |
download | openssl-a398f821fa98b9923a426cf45b268cf4d56c89bd.tar.xz openssl-a398f821fa98b9923a426cf45b268cf4d56c89bd.zip |
Add support for arbitrary TLS extensions.
Contributed by Trevor Perrin.
Diffstat (limited to 'ssl/s3_lib.c')
-rw-r--r-- | ssl/s3_lib.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ssl/s3_lib.c b/ssl/s3_lib.c index 7ad8a541fa..67eb92089e 100644 --- a/ssl/s3_lib.c +++ b/ssl/s3_lib.c @@ -3026,6 +3026,8 @@ void ssl3_free(SSL *s) #ifndef OPENSSL_NO_TLSEXT if (s->s3->tlsext_authz_client_types != NULL) OPENSSL_free(s->s3->tlsext_authz_client_types); + if (s->s3->tlsext_custom_types != NULL) + OPENSSL_free(s->s3->tlsext_custom_types); #endif OPENSSL_cleanse(s->s3,sizeof *s->s3); OPENSSL_free(s->s3); @@ -3076,6 +3078,12 @@ void ssl3_clear(SSL *s) OPENSSL_free(s->s3->tlsext_authz_client_types); s->s3->tlsext_authz_client_types = NULL; } + if (s->s3->tlsext_custom_types != NULL) + { + OPENSSL_free(s->s3->tlsext_custom_types); + s->s3->tlsext_custom_types = NULL; + } + s->s3->tlsext_custom_types_count = 0; #endif rp = s->s3->rbuf.buf; |