summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl/ssl_lib.c')
-rw-r--r--src/lib/libssl/ssl_lib.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/libssl/ssl_lib.c b/src/lib/libssl/ssl_lib.c
index cfd5c9bfb8..f64b89352e 100644
--- a/src/lib/libssl/ssl_lib.c
+++ b/src/lib/libssl/ssl_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_lib.c,v 1.275 2021/10/23 20:42:50 beck Exp $ */ 1/* $OpenBSD: ssl_lib.c,v 1.276 2021/10/25 10:01:46 jsing 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 *
@@ -887,10 +887,10 @@ SSL_get_peer_cert_chain(const SSL *s)
887 STACK_OF(X509) *r; 887 STACK_OF(X509) *r;
888 888
889 if ((s == NULL) || (s->session == NULL) || 889 if ((s == NULL) || (s->session == NULL) ||
890 (SSI(s)->sess_cert == NULL)) 890 (s->session->sess_cert == NULL))
891 r = NULL; 891 r = NULL;
892 else 892 else
893 r = SSI(s)->sess_cert->cert_chain; 893 r = s->session->sess_cert->cert_chain;
894 894
895 /* 895 /*
896 * If we are a client, cert_chain includes the peer's own 896 * If we are a client, cert_chain includes the peer's own
@@ -2245,8 +2245,8 @@ ssl_using_ecc_cipher(SSL *s)
2245 alg_a = S3I(s)->hs.cipher->algorithm_auth; 2245 alg_a = S3I(s)->hs.cipher->algorithm_auth;
2246 alg_k = S3I(s)->hs.cipher->algorithm_mkey; 2246 alg_k = S3I(s)->hs.cipher->algorithm_mkey;
2247 2247
2248 return SSI(s)->tlsext_ecpointformatlist != NULL && 2248 return s->session->tlsext_ecpointformatlist != NULL &&
2249 SSI(s)->tlsext_ecpointformatlist_length > 0 && 2249 s->session->tlsext_ecpointformatlist_length > 0 &&
2250 ((alg_k & SSL_kECDHE) || (alg_a & SSL_aECDSA)); 2250 ((alg_k & SSL_kECDHE) || (alg_a & SSL_aECDSA));
2251} 2251}
2252 2252