diff options
author | Matt Caswell <matt@openssl.org> | 2020-01-16 13:14:27 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2020-02-06 12:59:07 +0100 |
commit | c8f6c28a938fc887ee3d2337f09db453e7fb0369 (patch) | |
tree | 80fab6c444adfb668fa03edc2297b729757b53c9 /test/tls13secretstest.c | |
parent | Params: change UTF8 construct calls to avoid explicit strlen(3) calls. (diff) | |
download | openssl-c8f6c28a938fc887ee3d2337f09db453e7fb0369.tar.xz openssl-c8f6c28a938fc887ee3d2337f09db453e7fb0369.zip |
Explicitly fetch ciphers and digests in libssl
We modify libssl to use explicitly fetched ciphers, digests and other
algorithms as required based on the configured library context and
property query string for the SSL_CTX that is being used.
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/10854)
Diffstat (limited to 'test/tls13secretstest.c')
-rw-r--r-- | test/tls13secretstest.c | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/test/tls13secretstest.c b/test/tls13secretstest.c index def78b9920..5d614768f8 100644 --- a/test/tls13secretstest.c +++ b/test/tls13secretstest.c @@ -165,9 +165,10 @@ void RECORD_LAYER_reset_write_sequence(RECORD_LAYER *rl) { } -int ssl_cipher_get_evp(const SSL_SESSION *s, const EVP_CIPHER **enc, - const EVP_MD **md, int *mac_pkey_type, - size_t *mac_secret_size, SSL_COMP **comp, int use_etm) +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, + SSL_COMP **comp, int use_etm) { return 0; @@ -186,7 +187,7 @@ int ssl_log_secret(SSL *ssl, return 1; } -const EVP_MD *ssl_md(int idx) +const EVP_MD *ssl_md(SSL_CTX *ctx, int idx) { return EVP_sha256(); } @@ -206,6 +207,14 @@ int ossl_statem_export_early_allowed(SSL *s) return 1; } +void ssl_evp_cipher_free(const EVP_CIPHER *cipher) +{ +} + +void ssl_evp_md_free(const EVP_MD *md) +{ +} + /* End of mocked out code */ static int test_secret(SSL *s, unsigned char *prk, |