summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_locl.h
diff options
context:
space:
mode:
authorjsing <>2021-06-27 19:23:51 +0000
committerjsing <>2021-06-27 19:23:51 +0000
commit965b27267cd3ec2efbae469ff3190c696e822852 (patch)
treea69f06d8a93017bbcd381361796ab0149ede3065 /src/lib/libssl/ssl_locl.h
parentfe2e9ea28e886fa3dae7e2d6035a86fae494be20 (diff)
downloadopenbsd-965b27267cd3ec2efbae469ff3190c696e822852.tar.gz
openbsd-965b27267cd3ec2efbae469ff3190c696e822852.tar.bz2
openbsd-965b27267cd3ec2efbae469ff3190c696e822852.zip
Track the sigalgs used by ourselves and our peer.
Move the sigalg pointer from SSL_HANDSHAKE_TLS13 to SSL_HANDSHAKE, naming it our_sigalg, adding an equivalent peer_sigalg. Adjust the TLSv1.3 code that records our signature algorithm. Add code to record the signature algorithm used by our peer. Needed for upcoming API additions. ok tb@
Diffstat (limited to 'src/lib/libssl/ssl_locl.h')
-rw-r--r--src/lib/libssl/ssl_locl.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/lib/libssl/ssl_locl.h b/src/lib/libssl/ssl_locl.h
index 5f99c08cc9..200219c141 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.351 2021/06/23 11:12:33 tb Exp $ */ 1/* $OpenBSD: ssl_locl.h,v 1.352 2021/06/27 19:23:51 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 *
@@ -444,9 +444,8 @@ typedef struct ssl_handshake_tls13_st {
444 int use_legacy; 444 int use_legacy;
445 int hrr; 445 int hrr;
446 446
447 /* Certificate and sigalg selected for use (static pointers). */ 447 /* Certificate selected for use (static pointer). */
448 const CERT_PKEY *cpk; 448 const CERT_PKEY *cpk;
449 const struct ssl_sigalg *sigalg;
450 449
451 /* Version proposed by peer server. */ 450 /* Version proposed by peer server. */
452 uint16_t server_version; 451 uint16_t server_version;
@@ -503,6 +502,10 @@ typedef struct ssl_handshake_st {
503 /* Extensions seen in this handshake. */ 502 /* Extensions seen in this handshake. */
504 uint32_t extensions_seen; 503 uint32_t extensions_seen;
505 504
505 /* Signature algorithms selected for use (static pointers). */
506 const struct ssl_sigalg *our_sigalg;
507 const struct ssl_sigalg *peer_sigalg;
508
506 /* sigalgs offered in this handshake in wire form */ 509 /* sigalgs offered in this handshake in wire form */
507 uint8_t *sigalgs; 510 uint8_t *sigalgs;
508 size_t sigalgs_len; 511 size_t sigalgs_len;