From 3ef5fc080daaeca210db9bb6c0ec9e6cc0ca6b04 Mon Sep 17 00:00:00 2001 From: jsing <> Date: Mon, 21 Jan 2019 09:10:58 +0000 Subject: 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@ --- src/lib/libssl/tls13_internal.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/lib/libssl/tls13_internal.h') 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 @@ -/* $OpenBSD: tls13_internal.h,v 1.11 2019/01/21 06:58:44 jsing Exp $ */ +/* $OpenBSD: tls13_internal.h,v 1.12 2019/01/21 09:10:58 jsing Exp $ */ /* * Copyright (c) 2018 Bob Beck * Copyright (c) 2018 Theo Buehler @@ -146,8 +146,18 @@ struct tls13_ctx { SSL *ssl; uint8_t mode; struct tls13_handshake_stage handshake_stage; + struct tls13_record_layer *rl; }; +/* + * Legacy interfaces. + */ +ssize_t tls13_legacy_wire_read_cb(void *buf, size_t n, void *arg); +ssize_t tls13_legacy_wire_write_cb(const void *buf, size_t n, void *arg); +int tls13_legacy_read_bytes(SSL *ssl, int type, unsigned char *buf, int len, + int peek); +int tls13_legacy_write_bytes(SSL *ssl, int type, const void *buf, int len); + /* * Message Types - RFC 8446, Section B.3. * -- cgit v1.2.3-55-g6feb