Skip to content

Commit

Permalink
Convert SSL functions to use KDF names not SN_ strings
Browse files Browse the repository at this point in the history
Reviewed-by: Richard Levitte <[email protected]>
(Merged from openssl#9814)
  • Loading branch information
paulidale committed Sep 11, 2019
1 parent d810cc1 commit 1732c26
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ssl/t1_enc.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ static int tls1_PRF(SSL *s,
SSLerr(SSL_F_TLS1_PRF, ERR_R_INTERNAL_ERROR);
return 0;
}
kdf = EVP_KDF_fetch(NULL, SN_tls1_prf, NULL);
kdf = EVP_KDF_fetch(NULL, OSSL_KDF_NAME_TLS1_PRF, NULL);
if (kdf == NULL)
goto err;
kctx = EVP_KDF_CTX_new(kdf);
Expand Down
4 changes: 2 additions & 2 deletions ssl/tls13_enc.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ int tls13_hkdf_expand(SSL *s, const EVP_MD *md, const unsigned char *secret,
#else
static const unsigned char label_prefix[] = "tls13 ";
#endif
EVP_KDF *kdf = EVP_KDF_fetch(NULL, SN_hkdf, NULL);
EVP_KDF *kdf = EVP_KDF_fetch(NULL, OSSL_KDF_NAME_HKDF, NULL);
EVP_KDF_CTX *kctx;
OSSL_PARAM params[5], *p = params;
int mode = EVP_PKEY_HKDEF_MODE_EXPAND_ONLY;
Expand Down Expand Up @@ -194,7 +194,7 @@ int tls13_generate_secret(SSL *s, const EVP_MD *md,
#endif
unsigned char preextractsec[EVP_MAX_MD_SIZE];

kdf = EVP_KDF_fetch(NULL, SN_hkdf, NULL);
kdf = EVP_KDF_fetch(NULL, OSSL_KDF_NAME_HKDF, NULL);
kctx = EVP_KDF_CTX_new(kdf);
EVP_KDF_free(kdf);
if (kctx == NULL) {
Expand Down

0 comments on commit 1732c26

Please sign in to comment.