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)
This commit is contained in:
parent
9c1b19eb6f
commit
ddf0d149e2
9 changed files with 30 additions and 27 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue