summaryrefslogtreecommitdiff
path: root/src/lib/libssl/tls13_internal.h
diff options
context:
space:
mode:
authorjsing <>2019-01-21 09:10:58 +0000
committerjsing <>2019-01-21 09:10:58 +0000
commit3ef5fc080daaeca210db9bb6c0ec9e6cc0ca6b04 (patch)
treeff520e13188df3c74d950537932fb1d5a6d7b898 /src/lib/libssl/tls13_internal.h
parent549758b49616a2ed2f8e76f1ec804a664cab843e (diff)
downloadopenbsd-3ef5fc080daaeca210db9bb6c0ec9e6cc0ca6b04.tar.gz
openbsd-3ef5fc080daaeca210db9bb6c0ec9e6cc0ca6b04.tar.bz2
openbsd-3ef5fc080daaeca210db9bb6c0ec9e6cc0ca6b04.zip
Provide TLS 1.3 cipher AEAD/hash and legacy I/O handling functions.
Provide functionality for determining AEADs and hashes for TLS 1.3 ciphers. Also provide wire read/write callbacks that interface with BIO and functions that interface between SSL_read/SSL_write and the TLS 1.3 record layer API. ok tb@
Diffstat (limited to 'src/lib/libssl/tls13_internal.h')
-rw-r--r--src/lib/libssl/tls13_internal.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/lib/libssl/tls13_internal.h b/src/lib/libssl/tls13_internal.h
index bb3ff1fe9c..03fdab7e53 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.11 2019/01/21 06:58:44 jsing Exp $ */ 1/* $OpenBSD: tls13_internal.h,v 1.12 2019/01/21 09:10:58 jsing 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>
@@ -146,9 +146,19 @@ struct tls13_ctx {
146 SSL *ssl; 146 SSL *ssl;
147 uint8_t mode; 147 uint8_t mode;
148 struct tls13_handshake_stage handshake_stage; 148 struct tls13_handshake_stage handshake_stage;
149 struct tls13_record_layer *rl;
149}; 150};
150 151
151/* 152/*
153 * Legacy interfaces.
154 */
155ssize_t tls13_legacy_wire_read_cb(void *buf, size_t n, void *arg);
156ssize_t tls13_legacy_wire_write_cb(const void *buf, size_t n, void *arg);
157int tls13_legacy_read_bytes(SSL *ssl, int type, unsigned char *buf, int len,
158 int peek);
159int tls13_legacy_write_bytes(SSL *ssl, int type, const void *buf, int len);
160
161/*
152 * Message Types - RFC 8446, Section B.3. 162 * Message Types - RFC 8446, Section B.3.
153 * 163 *
154 * Values listed as "_RESERVED" were used in previous versions of TLS and are 164 * Values listed as "_RESERVED" were used in previous versions of TLS and are