summaryrefslogtreecommitdiff
path: root/lib/libssl/tls13_client.c
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2021-10-25 10:01:47 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2021-10-25 10:01:47 +0000
commit9a8888a8f129d292d098e5f3f3a7030ff865dcc1 (patch)
tree958ea4b200297a075f04c022c5f6824246a4bd09 /lib/libssl/tls13_client.c
parentce9c65b9c654a0faeb119fa75291b9fb4a48474f (diff)
Fold SSL_SESSION_INTERNAL back into SSL_SESSION.
ok beck@ tb@
Diffstat (limited to 'lib/libssl/tls13_client.c')
-rw-r--r--lib/libssl/tls13_client.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/libssl/tls13_client.c b/lib/libssl/tls13_client.c
index 00a1c6baa4e..4dfb02581a1 100644
--- a/lib/libssl/tls13_client.c
+++ b/lib/libssl/tls13_client.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tls13_client.c,v 1.87 2021/10/23 14:40:54 jsing Exp $ */
+/* $OpenBSD: tls13_client.c,v 1.88 2021/10/25 10:01:46 jsing Exp $ */
/*
* Copyright (c) 2018, 2019 Joel Sing <jsing@openbsd.org>
*
@@ -628,16 +628,16 @@ tls13_server_certificate_recv(struct tls13_ctx *ctx, CBS *cbs)
if ((cert_idx = ssl_cert_type(cert, pkey)) < 0)
goto err;
- ssl_sess_cert_free(SSI(s)->sess_cert);
- if ((SSI(s)->sess_cert = ssl_sess_cert_new()) == NULL)
+ ssl_sess_cert_free(s->session->sess_cert);
+ if ((s->session->sess_cert = ssl_sess_cert_new()) == NULL)
goto err;
- SSI(s)->sess_cert->cert_chain = certs;
+ s->session->sess_cert->cert_chain = certs;
certs = NULL;
X509_up_ref(cert);
- SSI(s)->sess_cert->peer_pkeys[cert_idx].x509 = cert;
- SSI(s)->sess_cert->peer_key = &(SSI(s)->sess_cert->peer_pkeys[cert_idx]);
+ s->session->sess_cert->peer_pkeys[cert_idx].x509 = cert;
+ s->session->sess_cert->peer_key = &(s->session->sess_cert->peer_pkeys[cert_idx]);
X509_free(s->session->peer);