aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2015-09-08 11:10:20 -0300
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2015-09-08 11:10:20 -0300
commitac711dd27f71aada76af2d2e2de0e3f32e3191c6 (patch)
tree9f6624f2f80d46a8306df43f9772327bc7c8b6cc
parent8582cf1eb49d9b857f2397aa924e76ed5484cf43 (diff)
downloadpostgresql-ac711dd27f71aada76af2d2e2de0e3f32e3191c6.tar.gz
postgresql-ac711dd27f71aada76af2d2e2de0e3f32e3191c6.zip
Fix error message wording in previous sslinfo commit
-rw-r--r--contrib/sslinfo/sslinfo.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/contrib/sslinfo/sslinfo.c b/contrib/sslinfo/sslinfo.c
index 686d9a66d65..0cf7baefd60 100644
--- a/contrib/sslinfo/sslinfo.c
+++ b/contrib/sslinfo/sslinfo.c
@@ -143,7 +143,7 @@ ASN1_STRING_to_text(ASN1_STRING *str)
if (membuf == NULL)
ereport(ERROR,
(errcode(ERRCODE_OUT_OF_MEMORY),
- errmsg("failed to create OpenSSL BIO structure")));
+ errmsg("could not create OpenSSL BIO structure")));
(void) BIO_set_close(membuf, BIO_CLOSE);
ASN1_STRING_print_ex(membuf, str,
((ASN1_STRFLGS_RFC2253 & ~ASN1_STRFLGS_ESC_MSB)
@@ -157,7 +157,7 @@ ASN1_STRING_to_text(ASN1_STRING *str)
if (dp != sp)
pfree(dp);
if (BIO_free(membuf) != 1)
- elog(ERROR, "failed to free OpenSSL BIO structure");
+ elog(ERROR, "could not free OpenSSL BIO structure");
PG_RETURN_TEXT_P(result);
}
@@ -299,7 +299,7 @@ X509_NAME_to_text(X509_NAME *name)
if (membuf == NULL)
ereport(ERROR,
(errcode(ERRCODE_OUT_OF_MEMORY),
- errmsg("failed to create BIO")));
+ errmsg("could not create OpenSSL BIO structure")));
(void) BIO_set_close(membuf, BIO_CLOSE);
for (i = 0; i < count; i++)
@@ -309,7 +309,7 @@ X509_NAME_to_text(X509_NAME *name)
if (nid == NID_undef)
ereport(ERROR,
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
- errmsg("failed to get NID for ASN1_OBJECT object")));
+ errmsg("could not get NID for ASN1_OBJECT object")));
v = X509_NAME_ENTRY_get_data(e);
field_name = OBJ_nid2sn(nid);
if (field_name == NULL)
@@ -317,7 +317,7 @@ X509_NAME_to_text(X509_NAME *name)
if (field_name == NULL)
ereport(ERROR,
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
- errmsg("failed to convert NID %d to an ASN1_OBJECT structure", nid)));
+ errmsg("could not convert NID %d to an ASN1_OBJECT structure", nid)));
BIO_printf(membuf, "/%s=", field_name);
ASN1_STRING_print_ex(membuf, v,
((ASN1_STRFLGS_RFC2253 & ~ASN1_STRFLGS_ESC_MSB)
@@ -333,7 +333,7 @@ X509_NAME_to_text(X509_NAME *name)
if (dp != sp)
pfree(dp);
if (BIO_free(membuf) != 1)
- elog(ERROR, "failed to free OpenSSL BIO structure");
+ elog(ERROR, "could not free OpenSSL BIO structure");
PG_RETURN_TEXT_P(result);
}