@@ -141,7 +141,7 @@ ASN1_STRING_to_text(ASN1_STRING *str)
141
141
if (membuf == NULL )
142
142
ereport (ERROR ,
143
143
(errcode (ERRCODE_OUT_OF_MEMORY ),
144
- errmsg ("failed to create OpenSSL BIO structure" )));
144
+ errmsg ("could not create OpenSSL BIO structure" )));
145
145
(void ) BIO_set_close (membuf , BIO_CLOSE );
146
146
ASN1_STRING_print_ex (membuf , str ,
147
147
((ASN1_STRFLGS_RFC2253 & ~ASN1_STRFLGS_ESC_MSB )
@@ -155,7 +155,7 @@ ASN1_STRING_to_text(ASN1_STRING *str)
155
155
if (dp != sp )
156
156
pfree (dp );
157
157
if (BIO_free (membuf ) != 1 )
158
- elog (ERROR , "failed to free OpenSSL BIO structure" );
158
+ elog (ERROR , "could not free OpenSSL BIO structure" );
159
159
160
160
PG_RETURN_TEXT_P (result );
161
161
}
@@ -297,7 +297,7 @@ X509_NAME_to_text(X509_NAME *name)
297
297
if (membuf == NULL )
298
298
ereport (ERROR ,
299
299
(errcode (ERRCODE_OUT_OF_MEMORY ),
300
- errmsg ("failed to create BIO" )));
300
+ errmsg ("could not create OpenSSL BIO structure " )));
301
301
302
302
(void ) BIO_set_close (membuf , BIO_CLOSE );
303
303
for (i = 0 ; i < count ; i ++ )
@@ -307,15 +307,15 @@ X509_NAME_to_text(X509_NAME *name)
307
307
if (nid == NID_undef )
308
308
ereport (ERROR ,
309
309
(errcode (ERRCODE_INVALID_PARAMETER_VALUE ),
310
- errmsg ("failed to get NID for ASN1_OBJECT object" )));
310
+ errmsg ("could not get NID for ASN1_OBJECT object" )));
311
311
v = X509_NAME_ENTRY_get_data (e );
312
312
field_name = OBJ_nid2sn (nid );
313
313
if (field_name == NULL )
314
314
field_name = OBJ_nid2ln (nid );
315
315
if (field_name == NULL )
316
316
ereport (ERROR ,
317
317
(errcode (ERRCODE_INVALID_PARAMETER_VALUE ),
318
- errmsg ("failed to convert NID %d to an ASN1_OBJECT structure" , nid )));
318
+ errmsg ("could not convert NID %d to an ASN1_OBJECT structure" , nid )));
319
319
BIO_printf (membuf , "/%s=" , field_name );
320
320
ASN1_STRING_print_ex (membuf , v ,
321
321
((ASN1_STRFLGS_RFC2253 & ~ASN1_STRFLGS_ESC_MSB )
@@ -331,7 +331,7 @@ X509_NAME_to_text(X509_NAME *name)
331
331
if (dp != sp )
332
332
pfree (dp );
333
333
if (BIO_free (membuf ) != 1 )
334
- elog (ERROR , "failed to free OpenSSL BIO structure" );
334
+ elog (ERROR , "could not free OpenSSL BIO structure" );
335
335
336
336
PG_RETURN_TEXT_P (result );
337
337
}
0 commit comments