diff options
author | 2018-11-08 22:28:52 +0000 | |
---|---|---|
committer | 2018-11-08 22:28:52 +0000 | |
commit | cef855dc927554ea6cd8f8b5125b409ddf3d5bf6 (patch) | |
tree | bb455d9d7adf43bda78d9743ebaf3c63cec89e12 /lib/libssl/s3_lib.c | |
parent | Add missing NULL checks on allocation, style(9) and consistently use (diff) | |
download | wireguard-openbsd-cef855dc927554ea6cd8f8b5125b409ddf3d5bf6.tar.xz wireguard-openbsd-cef855dc927554ea6cd8f8b5125b409ddf3d5bf6.zip |
Clean up and simplify the handshake transcript code.
This provides a cleaner, simpler and more readable API, with code that uses
a BUF_MEM instead of a BIO.
ok beck@ ("hurry up") and tb@.
Diffstat (limited to 'lib/libssl/s3_lib.c')
-rw-r--r-- | lib/libssl/s3_lib.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/libssl/s3_lib.c b/lib/libssl/s3_lib.c index 356f43a356a..091713d12a4 100644 --- a/lib/libssl/s3_lib.c +++ b/lib/libssl/s3_lib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: s3_lib.c,v 1.175 2018/11/08 20:55:18 jsing Exp $ */ +/* $OpenBSD: s3_lib.c,v 1.176 2018/11/08 22:28:52 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -1567,8 +1567,7 @@ ssl3_free(SSL *s) sk_X509_NAME_pop_free(S3I(s)->tmp.ca_names, X509_NAME_free); - BIO_free(S3I(s)->handshake_buffer); - + tls1_transcript_free(s); tls1_handshake_hash_free(s); free(S3I(s)->alpn_selected); @@ -1602,9 +1601,7 @@ ssl3_clear(SSL *s) rlen = S3I(s)->rbuf.len; wlen = S3I(s)->wbuf.len; - BIO_free(S3I(s)->handshake_buffer); - S3I(s)->handshake_buffer = NULL; - + tls1_transcript_free(s); tls1_handshake_hash_free(s); free(S3I(s)->alpn_selected); |