summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_locl.h
diff options
context:
space:
mode:
authorjsing <>2021-05-16 15:49:01 +0000
committerjsing <>2021-05-16 15:49:01 +0000
commit53116d353f285078396d1b6ecfcab1adc7fc65fb (patch)
treef2a5491f2301663b615a3ac1744e04873ae10d47 /src/lib/libssl/ssl_locl.h
parentb956c8af241e4753537f76407af2e8b3afabd2f6 (diff)
downloadopenbsd-53116d353f285078396d1b6ecfcab1adc7fc65fb.tar.gz
openbsd-53116d353f285078396d1b6ecfcab1adc7fc65fb.tar.bz2
openbsd-53116d353f285078396d1b6ecfcab1adc7fc65fb.zip
Absorb SSL_AEAD_CTX into struct tls12_record_protection.
The information contained in SSL_AEAD_CTX really belongs in the tls12_record_protection struct. Absorb SSL_AEAD_CTX, using more appropriate types in the process. ok tb@
Diffstat (limited to 'src/lib/libssl/ssl_locl.h')
-rw-r--r--src/lib/libssl/ssl_locl.h24
1 files changed, 1 insertions, 23 deletions
diff --git a/src/lib/libssl/ssl_locl.h b/src/lib/libssl/ssl_locl.h
index 2e324e5d31..df115725a0 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.346 2021/05/16 13:56:31 jsing Exp $ */ 1/* $OpenBSD: ssl_locl.h,v 1.347 2021/05/16 15:49:01 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 *
@@ -1047,28 +1047,6 @@ typedef struct sess_cert_st {
1047#define TLSV1_3_ENC_FLAGS (SSL_ENC_FLAG_SIGALGS | \ 1047#define TLSV1_3_ENC_FLAGS (SSL_ENC_FLAG_SIGALGS | \
1048 SSL_ENC_FLAG_TLS1_3_CIPHERS) 1048 SSL_ENC_FLAG_TLS1_3_CIPHERS)
1049 1049
1050/*
1051 * ssl_aead_ctx_st contains information about an AEAD that is being used to
1052 * encrypt an SSL connection.
1053 */
1054struct ssl_aead_ctx_st {
1055 EVP_AEAD_CTX ctx;
1056 /*
1057 * fixed_nonce contains any bytes of the nonce that are fixed for all
1058 * records.
1059 */
1060 unsigned char fixed_nonce[12];
1061 unsigned char fixed_nonce_len;
1062 unsigned char variable_nonce_len;
1063 unsigned char xor_fixed_nonce;
1064 unsigned char tag_len;
1065 /*
1066 * variable_nonce_in_record is non-zero if the variable nonce
1067 * for a record is included as a prefix before the ciphertext.
1068 */
1069 char variable_nonce_in_record;
1070};
1071
1072extern const SSL_CIPHER ssl3_ciphers[]; 1050extern const SSL_CIPHER ssl3_ciphers[];
1073 1051
1074const char *ssl_version_string(int ver); 1052const char *ssl_version_string(int ver);