summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_locl.h
diff options
context:
space:
mode:
authorjsing <>2021-01-28 17:00:39 +0000
committerjsing <>2021-01-28 17:00:39 +0000
commit282f50c32f1cbabc77296f995bf1a6408dca06df (patch)
tree7bef75b2e33f0547bd41212a8a2355d0bd970a54 /src/lib/libssl/ssl_locl.h
parent7f3297e4d9569e0e3bb11f4329fdd890572f07ff (diff)
downloadopenbsd-282f50c32f1cbabc77296f995bf1a6408dca06df.tar.gz
openbsd-282f50c32f1cbabc77296f995bf1a6408dca06df.tar.bz2
openbsd-282f50c32f1cbabc77296f995bf1a6408dca06df.zip
Move AEAD handling into the new TLSv1.2 record layer.
ok tb@
Diffstat (limited to 'src/lib/libssl/ssl_locl.h')
-rw-r--r--src/lib/libssl/ssl_locl.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/lib/libssl/ssl_locl.h b/src/lib/libssl/ssl_locl.h
index 4390361c66..d5298d7af1 100644
--- a/src/lib/libssl/ssl_locl.h
+++ b/src/lib/libssl/ssl_locl.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_locl.h,v 1.317 2021/01/26 14:22:20 jsing Exp $ */ 1/* $OpenBSD: ssl_locl.h,v 1.318 2021/01/28 17:00:39 jsing Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -481,6 +481,8 @@ int tls12_record_layer_write_overhead(struct tls12_record_layer *rl,
481 size_t *overhead); 481 size_t *overhead);
482int tls12_record_layer_read_protected(struct tls12_record_layer *rl); 482int tls12_record_layer_read_protected(struct tls12_record_layer *rl);
483int tls12_record_layer_write_protected(struct tls12_record_layer *rl); 483int tls12_record_layer_write_protected(struct tls12_record_layer *rl);
484void tls12_record_layer_set_aead(struct tls12_record_layer *rl,
485 const EVP_AEAD *aead);
484void tls12_record_layer_set_version(struct tls12_record_layer *rl, 486void tls12_record_layer_set_version(struct tls12_record_layer *rl,
485 uint16_t version); 487 uint16_t version);
486void tls12_record_layer_set_write_epoch(struct tls12_record_layer *rl, 488void tls12_record_layer_set_write_epoch(struct tls12_record_layer *rl,
@@ -758,14 +760,6 @@ typedef struct ssl_internal_st {
758 760
759 STACK_OF(SSL_CIPHER) *cipher_list_tls13; 761 STACK_OF(SSL_CIPHER) *cipher_list_tls13;
760 762
761 SSL_AEAD_CTX *aead_read_ctx; /* AEAD context. If non-NULL, then
762 enc_read_ctx and read_hash are
763 ignored. */
764
765 SSL_AEAD_CTX *aead_write_ctx; /* AEAD context. If non-NULL, then
766 enc_write_ctx and write_hash are
767 ignored. */
768
769 EVP_CIPHER_CTX *enc_write_ctx; /* cryptographic state */ 763 EVP_CIPHER_CTX *enc_write_ctx; /* cryptographic state */
770 EVP_MD_CTX *write_hash; /* used for mac generation */ 764 EVP_MD_CTX *write_hash; /* used for mac generation */
771 765