summaryrefslogtreecommitdiff
path: root/usr/src/common/openssl/crypto/x509/by_file.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/common/openssl/crypto/x509/by_file.c')
-rw-r--r--usr/src/common/openssl/crypto/x509/by_file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/common/openssl/crypto/x509/by_file.c b/usr/src/common/openssl/crypto/x509/by_file.c
index b4b04183d0..a5e0d4aefa 100644
--- a/usr/src/common/openssl/crypto/x509/by_file.c
+++ b/usr/src/common/openssl/crypto/x509/by_file.c
@@ -150,7 +150,7 @@ int X509_load_cert_file(X509_LOOKUP *ctx, const char *file, int type)
x=PEM_read_bio_X509_AUX(in,NULL,NULL,NULL);
if (x == NULL)
{
- if ((ERR_GET_REASON(ERR_peek_error()) ==
+ if ((ERR_GET_REASON(ERR_peek_last_error()) ==
PEM_R_NO_START_LINE) && (count > 0))
{
ERR_clear_error();
@@ -217,7 +217,7 @@ int X509_load_crl_file(X509_LOOKUP *ctx, const char *file, int type)
x=PEM_read_bio_X509_CRL(in,NULL,NULL,NULL);
if (x == NULL)
{
- if ((ERR_GET_REASON(ERR_peek_error()) ==
+ if ((ERR_GET_REASON(ERR_peek_last_error()) ==
PEM_R_NO_START_LINE) && (count > 0))
{
ERR_clear_error();