@@ -124,7 +124,7 @@ ASN1_STRING_to_text(ASN1_STRING *str)
124
124
if (membuf == NULL )
125
125
ereport (ERROR ,
126
126
(errcode (ERRCODE_OUT_OF_MEMORY ),
127
- errmsg ("failed to create OpenSSL BIO structure" )));
127
+ errmsg ("could not create OpenSSL BIO structure" )));
128
128
(void ) BIO_set_close (membuf , BIO_CLOSE );
129
129
ASN1_STRING_print_ex (membuf , str ,
130
130
((ASN1_STRFLGS_RFC2253 & ~ASN1_STRFLGS_ESC_MSB )
@@ -141,7 +141,7 @@ ASN1_STRING_to_text(ASN1_STRING *str)
141
141
if (dp != sp )
142
142
pfree (dp );
143
143
if (BIO_free (membuf ) != 1 )
144
- elog (ERROR , "failed to free OpenSSL BIO structure" );
144
+ elog (ERROR , "could not free OpenSSL BIO structure" );
145
145
146
146
PG_RETURN_TEXT_P (result );
147
147
}
@@ -283,7 +283,7 @@ X509_NAME_to_text(X509_NAME *name)
283
283
if (membuf == NULL )
284
284
ereport (ERROR ,
285
285
(errcode (ERRCODE_OUT_OF_MEMORY ),
286
- errmsg ("failed to create BIO" )));
286
+ errmsg ("could not create OpenSSL BIO structure " )));
287
287
288
288
(void ) BIO_set_close (membuf , BIO_CLOSE );
289
289
for (i = 0 ; i < count ; i ++ )
@@ -293,15 +293,15 @@ X509_NAME_to_text(X509_NAME *name)
293
293
if (nid == NID_undef )
294
294
ereport (ERROR ,
295
295
(errcode (ERRCODE_INVALID_PARAMETER_VALUE ),
296
- errmsg ("failed to get NID for ASN1_OBJECT object" )));
296
+ errmsg ("could not get NID for ASN1_OBJECT object" )));
297
297
v = X509_NAME_ENTRY_get_data (e );
298
298
field_name = OBJ_nid2sn (nid );
299
299
if (field_name == NULL )
300
300
field_name = OBJ_nid2ln (nid );
301
301
if (field_name == NULL )
302
302
ereport (ERROR ,
303
303
(errcode (ERRCODE_INVALID_PARAMETER_VALUE ),
304
- errmsg ("failed to convert NID %d to an ASN1_OBJECT structure" , nid )));
304
+ errmsg ("could not convert NID %d to an ASN1_OBJECT structure" , nid )));
305
305
BIO_printf (membuf , "/%s=" , field_name );
306
306
ASN1_STRING_print_ex (membuf , v ,
307
307
((ASN1_STRFLGS_RFC2253 & ~ASN1_STRFLGS_ESC_MSB )
@@ -320,7 +320,7 @@ X509_NAME_to_text(X509_NAME *name)
320
320
if (dp != sp )
321
321
pfree (dp );
322
322
if (BIO_free (membuf ) != 1 )
323
- elog (ERROR , "failed to free OpenSSL BIO structure" );
323
+ elog (ERROR , "could not free OpenSSL BIO structure" );
324
324
325
325
PG_RETURN_TEXT_P (result );
326
326
}
0 commit comments