aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorTomas Mraz <tomas@openssl.org>2021-04-14 12:42:30 +0200
committerTomas Mraz <tomas@openssl.org>2021-04-15 17:38:19 +0200
commitddf0d149e2fd0d894eec08f7237f5a686fc85575 (patch)
tree5062de02165312436ba565a46195799a0e0648e7 /test
parent9c1b19eb6f51fd6785cc61418e10070af83df1d2 (diff)
downloadopenssl-ddf0d149e2fd0d894eec08f7237f5a686fc85575.tar.gz
Rename EVP_PKEY_get0_first_alg_name to EVP_PKEY_get0_type_name
We use type elsewhere and documenting the 'first' in the name of the call is a little bit superfluous making the name too mouthful. Also rename EVP_PKEY_typenames_do_all to EVP_PKEY_type_names_do_all to keep the words separated by underscore. Fixes #14701 Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/14868)
Diffstat (limited to 'test')
-rw-r--r--test/algorithmid_test.c2
-rw-r--r--test/endecode_test.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/algorithmid_test.c b/test/algorithmid_test.c
index ae7a49f54b..b484315ad3 100644
--- a/test/algorithmid_test.c
+++ b/test/algorithmid_test.c
@@ -152,7 +152,7 @@ static int test_x509_sig_aid(X509 *eecert, const char *ee_filename,
ca_filename, ee_filename);
TEST_info("Signature algorithm is %s (pkey type %s, hash type %s)",
OBJ_nid2sn(sig_nid), OBJ_nid2sn(pkey_nid), OBJ_nid2sn(dig_nid));
- TEST_info("Pkey key type is %s", EVP_PKEY_get0_first_alg_name(pkey));
+ TEST_info("Pkey key type is %s", EVP_PKEY_get0_type_name(pkey));
goto end;
}
diff --git a/test/endecode_test.c b/test/endecode_test.c
index 27f8739054..df4f92c12c 100644
--- a/test/endecode_test.c
+++ b/test/endecode_test.c
@@ -494,7 +494,7 @@ static int check_unprotected_PKCS8_DER(const char *file, const int line,
if (TEST_FL_ptr(pkey)) {
if (!(ok = TEST_FL_true(EVP_PKEY_is_a(pkey, type)))) {
- EVP_PKEY_typenames_do_all(pkey, collect_name, &namelist);
+ EVP_PKEY_type_names_do_all(pkey, collect_name, &namelist);
if (namelist != NULL)
TEST_note("%s isn't any of %s", type, namelist);
OPENSSL_free(namelist);