@@ -149,7 +149,7 @@ ASN1_STRING_to_text(ASN1_STRING *str)
149
149
if (membuf == NULL )
150
150
ereport (ERROR ,
151
151
(errcode (ERRCODE_OUT_OF_MEMORY ),
152
- errmsg ("failed to create OpenSSL BIO structure" )));
152
+ errmsg ("could not create OpenSSL BIO structure" )));
153
153
(void ) BIO_set_close (membuf , BIO_CLOSE );
154
154
ASN1_STRING_print_ex (membuf , str ,
155
155
((ASN1_STRFLGS_RFC2253 & ~ASN1_STRFLGS_ESC_MSB )
@@ -163,7 +163,7 @@ ASN1_STRING_to_text(ASN1_STRING *str)
163
163
if (dp != sp )
164
164
pfree (dp );
165
165
if (BIO_free (membuf ) != 1 )
166
- elog (ERROR , "failed to free OpenSSL BIO structure" );
166
+ elog (ERROR , "could not free OpenSSL BIO structure" );
167
167
168
168
PG_RETURN_TEXT_P (result );
169
169
}
@@ -305,7 +305,7 @@ X509_NAME_to_text(X509_NAME *name)
305
305
if (membuf == NULL )
306
306
ereport (ERROR ,
307
307
(errcode (ERRCODE_OUT_OF_MEMORY ),
308
- errmsg ("failed to create BIO" )));
308
+ errmsg ("could not create OpenSSL BIO structure " )));
309
309
310
310
(void ) BIO_set_close (membuf , BIO_CLOSE );
311
311
for (i = 0 ; i < count ; i ++ )
@@ -315,15 +315,15 @@ X509_NAME_to_text(X509_NAME *name)
315
315
if (nid == NID_undef )
316
316
ereport (ERROR ,
317
317
(errcode (ERRCODE_INVALID_PARAMETER_VALUE ),
318
- errmsg ("failed to get NID for ASN1_OBJECT object" )));
318
+ errmsg ("could not get NID for ASN1_OBJECT object" )));
319
319
v = X509_NAME_ENTRY_get_data (e );
320
320
field_name = OBJ_nid2sn (nid );
321
321
if (field_name == NULL )
322
322
field_name = OBJ_nid2ln (nid );
323
323
if (field_name == NULL )
324
324
ereport (ERROR ,
325
325
(errcode (ERRCODE_INVALID_PARAMETER_VALUE ),
326
- errmsg ("failed to convert NID %d to an ASN1_OBJECT structure" , nid )));
326
+ errmsg ("could not convert NID %d to an ASN1_OBJECT structure" , nid )));
327
327
BIO_printf (membuf , "/%s=" , field_name );
328
328
ASN1_STRING_print_ex (membuf , v ,
329
329
((ASN1_STRFLGS_RFC2253 & ~ASN1_STRFLGS_ESC_MSB )
@@ -339,7 +339,7 @@ X509_NAME_to_text(X509_NAME *name)
339
339
if (dp != sp )
340
340
pfree (dp );
341
341
if (BIO_free (membuf ) != 1 )
342
- elog (ERROR , "failed to free OpenSSL BIO structure" );
342
+ elog (ERROR , "could not free OpenSSL BIO structure" );
343
343
344
344
PG_RETURN_TEXT_P (result );
345
345
}
@@ -523,6 +523,6 @@ ssl_extension_info(PG_FUNCTION_ARGS)
523
523
SRF_RETURN_NEXT (funcctx , result );
524
524
}
525
525
526
- /* Do when there is no more left */
526
+ /* All done */
527
527
SRF_RETURN_DONE (funcctx );
528
528
}
0 commit comments