summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2022-10-20 15:20:28 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2022-10-20 15:20:28 +0000
commit1dcb71726acaca7377e541a20c8c76df28028a66 (patch)
tree21921a6e53b8a6cf739736c04896c4efe0607b61
parent3c15abc1d1739248c0373ecfdb01bd712248ef09 (diff)
Extend SSL_SESSION struct for TLSv1.3 PSK
Add members necessary to store the "ticket_age_add" value and the resumption master secret needed in the TLSv1.3 version of session resumption. ok jsing
-rw-r--r--lib/libssl/ssl_locl.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libssl/ssl_locl.h b/lib/libssl/ssl_locl.h
index 8046ad8c866..1ddc5e0d5c1 100644
--- a/lib/libssl/ssl_locl.h
+++ b/lib/libssl/ssl_locl.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssl_locl.h,v 1.427 2022/10/02 16:36:41 jsing Exp $ */
+/* $OpenBSD: ssl_locl.h,v 1.428 2022/10/20 15:20:27 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -502,10 +502,12 @@ struct ssl_session_st {
char *tlsext_hostname;
- /* RFC4507 info */
+ /* Session resumption - RFC 5077 and RFC 8446. */
unsigned char *tlsext_tick; /* Session ticket */
size_t tlsext_ticklen; /* Session ticket length */
uint32_t tlsext_tick_lifetime_hint; /* Session lifetime hint in seconds */
+ uint32_t tlsext_tick_age_add; /* TLSv1.3 ticket age obfuscation (in ms) */
+ struct tls13_secret resumption_master_secret;
CRYPTO_EX_DATA ex_data; /* application specific data */