diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2006-04-28 12:27:37 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2006-04-28 12:27:37 +0000 |
commit | b46343583c1172c6e0fcad3227cf50622aae7998 (patch) | |
tree | 4b6aa1f8718887876d82ea6013fd4498f0cec267 /crypto/evp | |
parent | 816c2b5a792aa9ea0c25eda5fd2f2f94f1a36bb3 (diff) |
Update EVP_PKEY_cmp() and X509_check_private() to return sensible values and
handle unsupported key types.
Diffstat (limited to 'crypto/evp')
-rw-r--r-- | crypto/evp/p_lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/evp/p_lib.c b/crypto/evp/p_lib.c index 1a1e61a64e..19644ab6e2 100644 --- a/crypto/evp/p_lib.c +++ b/crypto/evp/p_lib.c @@ -149,7 +149,7 @@ int EVP_PKEY_cmp_parameters(const EVP_PKEY *a, const EVP_PKEY *b) return -1; if (a->ameth && a->ameth->param_cmp) return a->ameth->param_cmp(a, b); - return -1; + return -2; } int EVP_PKEY_cmp(const EVP_PKEY *a, const EVP_PKEY *b) |