summaryrefslogtreecommitdiff
path: root/lib/libssl/s3_lib.c
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2022-08-21 19:39:45 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2022-08-21 19:39:45 +0000
commit33999108a64cbb499c2560ff8c43f67978efe919 (patch)
tree602019c2b9ed8a79a202cff9295bacfcb8b0def2 /lib/libssl/s3_lib.c
parent9b62a06061d2c3e341dd880b6aab921c6eda4415 (diff)
Wire up SSL_QUIC_METHOD callbacks to the record layer callbacks for QUIC.
ok tb@
Diffstat (limited to 'lib/libssl/s3_lib.c')
-rw-r--r--lib/libssl/s3_lib.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/libssl/s3_lib.c b/lib/libssl/s3_lib.c
index e93298c2dbf..989165b2078 100644
--- a/lib/libssl/s3_lib.c
+++ b/lib/libssl/s3_lib.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: s3_lib.c,v 1.237 2022/08/17 18:51:47 tb Exp $ */
+/* $OpenBSD: s3_lib.c,v 1.238 2022/08/21 19:39:44 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -1569,6 +1569,8 @@ ssl3_free(SSL *s)
freezero(s->s3->hs.tls13.cookie, s->s3->hs.tls13.cookie_len);
tls13_clienthello_hash_clear(&s->s3->hs.tls13);
+ tls_buffer_free(s->s3->hs.tls13.quic_read_buffer);
+
sk_X509_NAME_pop_free(s->s3->hs.tls12.ca_names, X509_NAME_free);
sk_X509_pop_free(s->internal->verified_chain, X509_free);
@@ -1615,6 +1617,11 @@ ssl3_clear(SSL *s)
s->s3->hs.tls13.cookie_len = 0;
tls13_clienthello_hash_clear(&s->s3->hs.tls13);
+ tls_buffer_free(s->s3->hs.tls13.quic_read_buffer);
+ s->s3->hs.tls13.quic_read_buffer = NULL;
+ s->s3->hs.tls13.quic_read_level = ssl_encryption_initial;
+ s->s3->hs.tls13.quic_write_level = ssl_encryption_initial;
+
s->s3->hs.extensions_seen = 0;
rp = s->s3->rbuf.buf;