From fc4be80eaa00c2672f7cc3b30d06915b9b5c0d94 Mon Sep 17 00:00:00 2001 From: tb Date: Thu, 11 Jan 2024 16:45:26 +0000 Subject: [PATCH] Remove the evp_pkey_method() test This is a minimal test for an API that will be removed in a subsequent commit. --- regress/lib/libcrypto/evp/evp_test.c | 39 +--------------------------- 1 file changed, 1 insertion(+), 38 deletions(-) diff --git a/regress/lib/libcrypto/evp/evp_test.c b/regress/lib/libcrypto/evp/evp_test.c index ec6a9435ff8..ef11089d2c1 100644 --- a/regress/lib/libcrypto/evp/evp_test.c +++ b/regress/lib/libcrypto/evp/evp_test.c @@ -1,4 +1,4 @@ -/* $OpenBSD: evp_test.c,v 1.13 2023/12/31 01:31:07 tb Exp $ */ +/* $OpenBSD: evp_test.c,v 1.14 2024/01/11 16:45:26 tb Exp $ */ /* * Copyright (c) 2022 Joel Sing * Copyright (c) 2023 Theo Buehler @@ -260,42 +260,6 @@ evp_asn1_method_aliases_test(void) return failed; } -static int -evp_pkey_method_test(void) -{ - const EVP_PKEY_METHOD *method; - int pkey_id; - int failed = 1; - - if ((method = EVP_PKEY_meth_find(EVP_PKEY_RSA)) == NULL) { - fprintf(stderr, "FAIL: failed to find RSA method\n"); - goto failure; - } - EVP_PKEY_meth_get0_info(&pkey_id, NULL, method); - if (pkey_id != EVP_PKEY_RSA) { - fprintf(stderr, "FAIL: method ID mismatch (%d != %d)\n", - pkey_id, EVP_PKEY_RSA); - goto failure; - } - - if ((method = EVP_PKEY_meth_find(EVP_PKEY_RSA_PSS)) == NULL) { - fprintf(stderr, "FAIL: failed to find RSA-PSS method\n"); - goto failure; - } - EVP_PKEY_meth_get0_info(&pkey_id, NULL, method); - if (pkey_id != EVP_PKEY_RSA_PSS) { - fprintf(stderr, "FAIL: method ID mismatch (%d != %d)\n", - pkey_id, EVP_PKEY_RSA_PSS); - goto failure; - } - - failed = 0; - - failure: - - return failed; -} - static const struct evp_iv_len_test { const EVP_CIPHER *(*cipher)(void); int iv_len; @@ -789,7 +753,6 @@ main(int argc, char **argv) failed |= evp_asn1_method_test(); failed |= evp_asn1_method_aliases_test(); - failed |= evp_pkey_method_test(); failed |= evp_pkey_iv_len_test(); failed |= evp_do_all_test(); failed |= evp_aliases_test(); -- 2.20.1