diff options
author | Bodo Möller <bodo@openssl.org> | 1999-05-01 00:11:15 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 1999-05-01 00:11:15 +0000 |
commit | c9e4bc2f07bd751a51ed9b7115aea18b898b80c2 (patch) | |
tree | 0f453739478ccd60c6b957f6eb0b310f65e81e2a /crypto/x509/x509_cmp.c | |
parent | dd1462fd1870af118fd781e5d316d6a7e8d75446 (diff) |
Use correct error macro so that error messages make sense.
Submitted by:
Reviewed by:
PR:
Diffstat (limited to 'crypto/x509/x509_cmp.c')
-rw-r--r-- | crypto/x509/x509_cmp.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/crypto/x509/x509_cmp.c b/crypto/x509/x509_cmp.c index bc645d1a86..7063fee2a4 100644 --- a/crypto/x509/x509_cmp.c +++ b/crypto/x509/x509_cmp.c @@ -249,7 +249,7 @@ int X509_check_private_key(X509 *x, EVP_PKEY *k) xk=X509_get_pubkey(x); if (xk->type != k->type) { - SSLerr(X509_F_X509_CHECK_PRIVATE_KEY,X509_R_KEY_TYPE_MISMATCH); + X509err(X509_F_X509_CHECK_PRIVATE_KEY,X509_R_KEY_TYPE_MISMATCH); goto err; } switch (k->type) @@ -259,7 +259,7 @@ int X509_check_private_key(X509 *x, EVP_PKEY *k) if (BN_cmp(xk->pkey.rsa->n,k->pkey.rsa->n) != 0 || BN_cmp(xk->pkey.rsa->e,k->pkey.rsa->e) != 0) { - SSLerr(X509_F_X509_CHECK_PRIVATE_KEY,X509_R_KEY_VALUES_MISMATCH); + X509err(X509_F_X509_CHECK_PRIVATE_KEY,X509_R_KEY_VALUES_MISMATCH); goto err; } break; @@ -268,7 +268,7 @@ int X509_check_private_key(X509 *x, EVP_PKEY *k) case EVP_PKEY_DSA: if (BN_cmp(xk->pkey.dsa->pub_key,k->pkey.dsa->pub_key) != 0) { - SSLerr(X509_F_X509_CHECK_PRIVATE_KEY,X509_R_KEY_VALUES_MISMATCH); + X509err(X509_F_X509_CHECK_PRIVATE_KEY,X509_R_KEY_VALUES_MISMATCH); goto err; } break; @@ -276,11 +276,11 @@ int X509_check_private_key(X509 *x, EVP_PKEY *k) #ifndef NO_DH case EVP_PKEY_DH: /* No idea */ - SSLerr(X509_F_X509_CHECK_PRIVATE_KEY,X509_R_CANT_CHECK_DH_KEY); + X509err(X509_F_X509_CHECK_PRIVATE_KEY,X509_R_CANT_CHECK_DH_KEY); goto err; #endif default: - SSLerr(X509_F_X509_CHECK_PRIVATE_KEY,X509_R_UNKNOWN_KEY_TYPE); + X509err(X509_F_X509_CHECK_PRIVATE_KEY,X509_R_UNKNOWN_KEY_TYPE); goto err; } |