@@ -152,7 +152,7 @@ ASN1_STRING_to_text(ASN1_STRING *str)
152
152
if (membuf == NULL )
153
153
ereport (ERROR ,
154
154
(errcode (ERRCODE_OUT_OF_MEMORY ),
155
- errmsg ("failed to create OpenSSL BIO structure" )));
155
+ errmsg ("could not create OpenSSL BIO structure" )));
156
156
(void ) BIO_set_close (membuf , BIO_CLOSE );
157
157
ASN1_STRING_print_ex (membuf , str ,
158
158
((ASN1_STRFLGS_RFC2253 & ~ASN1_STRFLGS_ESC_MSB )
@@ -169,7 +169,7 @@ ASN1_STRING_to_text(ASN1_STRING *str)
169
169
if (dp != sp )
170
170
pfree (dp );
171
171
if (BIO_free (membuf ) != 1 )
172
- elog (ERROR , "failed to free OpenSSL BIO structure" );
172
+ elog (ERROR , "could not free OpenSSL BIO structure" );
173
173
174
174
PG_RETURN_TEXT_P (result );
175
175
}
@@ -311,7 +311,7 @@ X509_NAME_to_text(X509_NAME *name)
311
311
if (membuf == NULL )
312
312
ereport (ERROR ,
313
313
(errcode (ERRCODE_OUT_OF_MEMORY ),
314
- errmsg ("failed to create BIO" )));
314
+ errmsg ("could not create OpenSSL BIO structure " )));
315
315
316
316
(void ) BIO_set_close (membuf , BIO_CLOSE );
317
317
for (i = 0 ; i < count ; i ++ )
@@ -321,15 +321,15 @@ X509_NAME_to_text(X509_NAME *name)
321
321
if (nid == NID_undef )
322
322
ereport (ERROR ,
323
323
(errcode (ERRCODE_INVALID_PARAMETER_VALUE ),
324
- errmsg ("failed to get NID for ASN1_OBJECT object" )));
324
+ errmsg ("could not get NID for ASN1_OBJECT object" )));
325
325
v = X509_NAME_ENTRY_get_data (e );
326
326
field_name = OBJ_nid2sn (nid );
327
327
if (field_name == NULL )
328
328
field_name = OBJ_nid2ln (nid );
329
329
if (field_name == NULL )
330
330
ereport (ERROR ,
331
331
(errcode (ERRCODE_INVALID_PARAMETER_VALUE ),
332
- errmsg ("failed to convert NID %d to an ASN1_OBJECT structure" , nid )));
332
+ errmsg ("could not convert NID %d to an ASN1_OBJECT structure" , nid )));
333
333
BIO_printf (membuf , "/%s=" , field_name );
334
334
ASN1_STRING_print_ex (membuf , v ,
335
335
((ASN1_STRFLGS_RFC2253 & ~ASN1_STRFLGS_ESC_MSB )
@@ -348,7 +348,7 @@ X509_NAME_to_text(X509_NAME *name)
348
348
if (dp != sp )
349
349
pfree (dp );
350
350
if (BIO_free (membuf ) != 1 )
351
- elog (ERROR , "failed to free OpenSSL BIO structure" );
351
+ elog (ERROR , "could not free OpenSSL BIO structure" );
352
352
353
353
PG_RETURN_TEXT_P (result );
354
354
}
0 commit comments