summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_locl.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl/ssl_locl.h')
-rw-r--r--src/lib/libssl/ssl_locl.h18
1 files changed, 11 insertions, 7 deletions
diff --git a/src/lib/libssl/ssl_locl.h b/src/lib/libssl/ssl_locl.h
index 0212166678..8ebdab279f 100644
--- a/src/lib/libssl/ssl_locl.h
+++ b/src/lib/libssl/ssl_locl.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_locl.h,v 1.272 2020/04/18 14:07:56 jsing Exp $ */ 1/* $OpenBSD: ssl_locl.h,v 1.272.4.1 2020/08/10 18:59:47 tb 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 *
@@ -433,6 +433,12 @@ typedef struct ssl_handshake_st {
433 uint8_t *sigalgs; 433 uint8_t *sigalgs;
434} SSL_HANDSHAKE; 434} SSL_HANDSHAKE;
435 435
436typedef struct cert_pkey_st {
437 X509 *x509;
438 EVP_PKEY *privatekey;
439 STACK_OF(X509) *chain;
440} CERT_PKEY;
441
436typedef struct ssl_handshake_tls13_st { 442typedef struct ssl_handshake_tls13_st {
437 uint16_t min_version; 443 uint16_t min_version;
438 uint16_t max_version; 444 uint16_t max_version;
@@ -441,6 +447,10 @@ typedef struct ssl_handshake_tls13_st {
441 int use_legacy; 447 int use_legacy;
442 int hrr; 448 int hrr;
443 449
450 /* Certificate and sigalg selected for use (static pointers) */
451 const CERT_PKEY *cpk;
452 const struct ssl_sigalg *sigalg;
453
444 /* Version proposed by peer server. */ 454 /* Version proposed by peer server. */
445 uint16_t server_version; 455 uint16_t server_version;
446 456
@@ -988,12 +998,6 @@ typedef struct dtls1_state_internal_st {
988} DTLS1_STATE_INTERNAL; 998} DTLS1_STATE_INTERNAL;
989#define D1I(s) (s->d1->internal) 999#define D1I(s) (s->d1->internal)
990 1000
991typedef struct cert_pkey_st {
992 X509 *x509;
993 EVP_PKEY *privatekey;
994 STACK_OF(X509) *chain;
995} CERT_PKEY;
996
997typedef struct cert_st { 1001typedef struct cert_st {
998 /* Current active set */ 1002 /* Current active set */
999 CERT_PKEY *key; /* ALWAYS points to an element of the pkeys array 1003 CERT_PKEY *key; /* ALWAYS points to an element of the pkeys array