summaryrefslogtreecommitdiff
path: root/src/lib/libssl/tls13_internal.h
diff options
context:
space:
mode:
authorjsing <>2022-07-17 15:49:20 +0000
committerjsing <>2022-07-17 15:49:20 +0000
commit1724862da277d62e9335ade34ebf5ebcf274666e (patch)
tree799ce4082b0a88dbd46501888f2190cfcc8e2109 /src/lib/libssl/tls13_internal.h
parent3523f0c37f9bcc84801392bf3e157cda8b4b7878 (diff)
downloadopenbsd-1724862da277d62e9335ade34ebf5ebcf274666e.tar.gz
openbsd-1724862da277d62e9335ade34ebf5ebcf274666e.tar.bz2
openbsd-1724862da277d62e9335ade34ebf5ebcf274666e.zip
Pass SSL pointer to tls13_ctx_new().
struct tls13_ctx already knows about SSL's and this way tls13_ctx_new() can set up various pointers, rather than duplicating this in tls13_legacy_accept() and tls13_legacy_connect(). ok tb@
Diffstat (limited to 'src/lib/libssl/tls13_internal.h')
-rw-r--r--src/lib/libssl/tls13_internal.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libssl/tls13_internal.h b/src/lib/libssl/tls13_internal.h
index 75e13ac15d..555dd4262e 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.97 2022/06/03 13:11:04 tb Exp $ */ 1/* $OpenBSD: tls13_internal.h,v 1.98 2022/07/17 15:49:20 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>
@@ -292,7 +292,7 @@ struct tls13_ctx {
292#define TLS13_PHH_LIMIT 100 292#define TLS13_PHH_LIMIT 100
293#endif 293#endif
294 294
295struct tls13_ctx *tls13_ctx_new(int mode); 295struct tls13_ctx *tls13_ctx_new(int mode, SSL *ssl);
296void tls13_ctx_free(struct tls13_ctx *ctx); 296void tls13_ctx_free(struct tls13_ctx *ctx);
297 297
298const EVP_AEAD *tls13_cipher_aead(const SSL_CIPHER *cipher); 298const EVP_AEAD *tls13_cipher_aead(const SSL_CIPHER *cipher);