summaryrefslogtreecommitdiff
path: root/src/lib/libssl/tls13_internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl/tls13_internal.h')
-rw-r--r--src/lib/libssl/tls13_internal.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/libssl/tls13_internal.h b/src/lib/libssl/tls13_internal.h
index 9aabc409d8..278704002e 100644
--- a/src/lib/libssl/tls13_internal.h
+++ b/src/lib/libssl/tls13_internal.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: tls13_internal.h,v 1.54 2020/01/25 09:20:56 jsing Exp $ */ 1/* $OpenBSD: tls13_internal.h,v 1.55 2020/01/25 13:11:20 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2018 Bob Beck <beck@openbsd.org> 3 * Copyright (c) 2018 Bob Beck <beck@openbsd.org>
4 * Copyright (c) 2018 Theo Buehler <tb@openbsd.org> 4 * Copyright (c) 2018 Theo Buehler <tb@openbsd.org>
@@ -50,6 +50,7 @@ typedef void (*tls13_phh_sent_cb)(void *_cb_arg);
50typedef ssize_t (*tls13_read_cb)(void *_buf, size_t _buflen, void *_cb_arg); 50typedef ssize_t (*tls13_read_cb)(void *_buf, size_t _buflen, void *_cb_arg);
51typedef ssize_t (*tls13_write_cb)(const void *_buf, size_t _buflen, 51typedef ssize_t (*tls13_write_cb)(const void *_buf, size_t _buflen,
52 void *_cb_arg); 52 void *_cb_arg);
53typedef void (*tls13_handshake_message_cb)(void *_cb_arg, CBS *_cbs);
53 54
54struct tls13_buffer; 55struct tls13_buffer;
55 56
@@ -205,6 +206,9 @@ struct tls13_ctx {
205 uint8_t alert; 206 uint8_t alert;
206 int phh_count; 207 int phh_count;
207 time_t phh_last_seen; 208 time_t phh_last_seen;
209
210 tls13_handshake_message_cb handshake_message_sent_cb;
211 tls13_handshake_message_cb handshake_message_recv_cb;
208}; 212};
209#ifndef TLS13_PHH_LIMIT_TIME 213#ifndef TLS13_PHH_LIMIT_TIME
210#define TLS13_PHH_LIMIT_TIME 3600 214#define TLS13_PHH_LIMIT_TIME 3600