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.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/lib/libssl/ssl_locl.h b/src/lib/libssl/ssl_locl.h
index b41a5d803f..3c58e5ac21 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.362 2021/10/23 11:41:52 beck Exp $ */ 1/* $OpenBSD: ssl_locl.h,v 1.363 2021/10/23 14:40:54 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 *
@@ -583,6 +583,13 @@ typedef struct ssl_handshake_st {
583 uint16_t negotiated_tls_version; 583 uint16_t negotiated_tls_version;
584 584
585 /* 585 /*
586 * Legacy version advertised by our peer. For a server this is the
587 * version specified by the client in the ClientHello message. For a
588 * client, this is the version provided in the ServerHello message.
589 */
590 uint16_t peer_legacy_version;
591
592 /*
586 * Current handshake state - contains one of the SSL3_ST_* values and 593 * Current handshake state - contains one of the SSL3_ST_* values and
587 * is used by the TLSv1.2 state machine, as well as being updated by 594 * is used by the TLSv1.2 state machine, as well as being updated by
588 * the TLSv1.3 stack due to it being exposed externally. 595 * the TLSv1.3 stack due to it being exposed externally.
@@ -1291,6 +1298,7 @@ int ssl_supported_tls_version_range(SSL *s, uint16_t *min_ver, uint16_t *max_ver
1291uint16_t ssl_tls_version(uint16_t version); 1298uint16_t ssl_tls_version(uint16_t version);
1292uint16_t ssl_effective_tls_version(SSL *s); 1299uint16_t ssl_effective_tls_version(SSL *s);
1293int ssl_max_supported_version(SSL *s, uint16_t *max_ver); 1300int ssl_max_supported_version(SSL *s, uint16_t *max_ver);
1301int ssl_max_legacy_version(SSL *s, uint16_t *max_ver);
1294int ssl_max_shared_version(SSL *s, uint16_t peer_ver, uint16_t *max_ver); 1302int ssl_max_shared_version(SSL *s, uint16_t peer_ver, uint16_t *max_ver);
1295int ssl_check_version_from_server(SSL *s, uint16_t server_version); 1303int ssl_check_version_from_server(SSL *s, uint16_t server_version);
1296int ssl_legacy_stack_version(SSL *s, uint16_t version); 1304int ssl_legacy_stack_version(SSL *s, uint16_t version);