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