summaryrefslogtreecommitdiff
path: root/crypto/evp/pmeth_check.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/evp/pmeth_check.c')
-rw-r--r--crypto/evp/pmeth_check.c20
1 files changed, 3 insertions, 17 deletions
diff --git a/crypto/evp/pmeth_check.c b/crypto/evp/pmeth_check.c
index 2ecf2d0251..7f3a2e3a1c 100644
--- a/crypto/evp/pmeth_check.c
+++ b/crypto/evp/pmeth_check.c
@@ -152,26 +152,12 @@ int EVP_PKEY_private_check(EVP_PKEY_CTX *ctx)
return -2;
}
-int EVP_PKEY_pairwise_check(EVP_PKEY_CTX *ctx)
+int EVP_PKEY_check(EVP_PKEY_CTX *ctx)
{
- EVP_PKEY *pkey = ctx->pkey;
- int ok;
-
- if (pkey == NULL) {
- ERR_raise(ERR_LIB_EVP, EVP_R_NO_KEY_SET);
- return 0;
- }
-
- if ((ok = try_provided_check(ctx, OSSL_KEYMGMT_SELECT_KEYPAIR,
- OSSL_KEYMGMT_VALIDATE_FULL_CHECK)) != -1)
- return ok;
-
- /* not supported for legacy keys */
- ERR_raise(ERR_LIB_EVP, EVP_R_OPERATION_NOT_SUPPORTED_FOR_THIS_KEYTYPE);
- return -2;
+ return EVP_PKEY_pairwise_check(ctx);
}
-int EVP_PKEY_check(EVP_PKEY_CTX *ctx)
+int EVP_PKEY_pairwise_check(EVP_PKEY_CTX *ctx)
{
EVP_PKEY *pkey = ctx->pkey;
int ok;