aboutsummaryrefslogtreecommitdiff
path: root/test/tls13secretstest.c
diff options
context:
space:
mode:
authorRajeev Ranjan <ranjan.rajeev@siemens.com>2023-12-01 12:47:07 +0100
committerTomas Mraz <tomas@openssl.org>2024-05-14 15:39:15 +0200
commitb6a5e801679663c13875cf6e18f475f8700d72a9 (patch)
tree437ddfdbc1fbcf49974cc2daa89bfeadd68876ae /test/tls13secretstest.c
parent61f32392dd67d47018ce46f427339e7191426e45 (diff)
downloadopenssl-b6a5e801679663c13875cf6e18f475f8700d72a9.zip
openssl-b6a5e801679663c13875cf6e18f475f8700d72a9.tar.gz
openssl-b6a5e801679663c13875cf6e18f475f8700d72a9.tar.bz2
Add support for integrity-only cipher suites for TLS v1.3
- add test vectors for tls1_3 integrity-only ciphers - recmethod_local.h: add new member for MAC - tls13_meth.c: add MAC only to tls 1.3 - tls13_enc.c: extend function to add MAC only - ssl_local.h: add ssl_cipher_get_evp_md_mac() - s3_lib.c: add the new ciphers and add #ifndef OPENSSL_NO_INTEGRITY_ONLY_CIPHERS - ssl_ciph.c : add ssl_cipher_get_evp_md_mac() and use it - tls13secretstest.c: add dummy test function - Configure: add integrity-only-ciphers option - document the new ciphers Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/22903)
Diffstat (limited to 'test/tls13secretstest.c')
-rw-r--r--test/tls13secretstest.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/tls13secretstest.c b/test/tls13secretstest.c
index 352c189..71123b9 100644
--- a/test/tls13secretstest.c
+++ b/test/tls13secretstest.c
@@ -163,6 +163,13 @@ int ssl_cipher_get_evp_cipher(SSL_CTX *ctx, const SSL_CIPHER *sslc,
return 0;
}
+int ssl_cipher_get_evp_md_mac(SSL_CTX *ctx, const SSL_CIPHER *sslc,
+ const EVP_MD **md,
+ int *mac_pkey_type, size_t *mac_secret_size)
+{
+ return 0;
+}
+
int ssl_cipher_get_evp(SSL_CTX *ctx, const SSL_SESSION *s,
const EVP_CIPHER **enc, const EVP_MD **md,
int *mac_pkey_type, size_t *mac_secret_size,