diff options
author | jsing <> | 2019-02-10 13:04:29 +0000 |
---|---|---|
committer | jsing <> | 2019-02-10 13:04:29 +0000 |
commit | 6d4aaf1f9ff309085dbf415f1fe769f3165381f6 (patch) | |
tree | ef8327c4dc4c5c054c766173772e66fa6e75b623 /src/lib/libssl/ssl_locl.h | |
parent | b3b102c1f413c950892ae663eb251b656a781b0e (diff) | |
download | openbsd-6d4aaf1f9ff309085dbf415f1fe769f3165381f6.tar.gz openbsd-6d4aaf1f9ff309085dbf415f1fe769f3165381f6.tar.bz2 openbsd-6d4aaf1f9ff309085dbf415f1fe769f3165381f6.zip |
Preserve the transcript hash at specific stages of the TLSv1.3 handshake.
There are various points where we need the hash of all messages prior to
the current message. Support this by having the handshake code preserve
the transcript hash prior to recording the current message, which avoids
the need to sprinkle this throughout multiple handlers.
ok inoguchi@ tb@
Diffstat (limited to 'src/lib/libssl/ssl_locl.h')
-rw-r--r-- | src/lib/libssl/ssl_locl.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/libssl/ssl_locl.h b/src/lib/libssl/ssl_locl.h index a26b91976e..65429a3925 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.234 2019/02/09 15:26:15 jsing Exp $ */ | 1 | /* $OpenBSD: ssl_locl.h,v 1.235 2019/02/10 13:04:29 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 | * |
@@ -451,6 +451,10 @@ typedef struct ssl_handshake_tls13_st { | |||
451 | 451 | ||
452 | uint8_t *cookie; | 452 | uint8_t *cookie; |
453 | size_t cookie_len; | 453 | size_t cookie_len; |
454 | |||
455 | /* Preserved transcript hash. */ | ||
456 | uint8_t transcript_hash[EVP_MAX_MD_SIZE]; | ||
457 | size_t transcript_hash_len; | ||
454 | } SSL_HANDSHAKE_TLS13; | 458 | } SSL_HANDSHAKE_TLS13; |
455 | 459 | ||
456 | typedef struct ssl_ctx_internal_st { | 460 | typedef struct ssl_ctx_internal_st { |