summaryrefslogtreecommitdiff
path: root/src/lib/libssl/s3_lib.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/libssl/s3_lib.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/libssl/s3_lib.c b/src/lib/libssl/s3_lib.c
index 091713d12a..0761c5b5ce 100644
--- a/src/lib/libssl/s3_lib.c
+++ b/src/lib/libssl/s3_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: s3_lib.c,v 1.176 2018/11/08 22:28:52 jsing Exp $ */ 1/* $OpenBSD: s3_lib.c,v 1.177 2019/01/18 12:09:52 beck 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 *
@@ -1627,6 +1627,11 @@ ssl3_clear(SSL *s)
1627 1627
1628 s->internal->packet_length = 0; 1628 s->internal->packet_length = 0;
1629 s->version = TLS1_VERSION; 1629 s->version = TLS1_VERSION;
1630
1631 tls13_secrets_destroy(S3I(s)->hs_tls13.secrets);
1632 freezero(S3I(s)->hs_tls13.x25519_private, X25519_KEY_LENGTH);
1633 freezero(S3I(s)->hs_tls13.x25519_public, X25519_KEY_LENGTH);
1634 freezero(S3I(s)->hs_tls13.x25519_peer_public, X25519_KEY_LENGTH);
1630} 1635}
1631 1636
1632static long 1637static long