From 3ddaece0e07a9c99e3a1f04d188c5ece7176ee46 Mon Sep 17 00:00:00 2001 From: jsing <> Date: Thu, 8 Nov 2018 22:28:52 +0000 Subject: 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@. --- src/lib/libssl/s3_lib.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/lib/libssl/s3_lib.c') diff --git a/src/lib/libssl/s3_lib.c b/src/lib/libssl/s3_lib.c index 356f43a356..091713d12a 100644 --- a/src/lib/libssl/s3_lib.c +++ b/src/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); -- cgit v1.2.3-55-g6feb