Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit625f488

Browse files
committed
Fix error message wording in previous sslinfo commit
1 parent7febdf3 commit625f488

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

‎contrib/sslinfo/sslinfo.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ ASN1_STRING_to_text(ASN1_STRING *str)
124124
if (membuf==NULL)
125125
ereport(ERROR,
126126
(errcode(ERRCODE_OUT_OF_MEMORY),
127-
errmsg("failed to create OpenSSL BIO structure")));
127+
errmsg("could not create OpenSSL BIO structure")));
128128
(void)BIO_set_close(membuf,BIO_CLOSE);
129129
ASN1_STRING_print_ex(membuf,str,
130130
((ASN1_STRFLGS_RFC2253& ~ASN1_STRFLGS_ESC_MSB)
@@ -141,7 +141,7 @@ ASN1_STRING_to_text(ASN1_STRING *str)
141141
if (dp!=sp)
142142
pfree(dp);
143143
if (BIO_free(membuf)!=1)
144-
elog(ERROR,"failed to free OpenSSL BIO structure");
144+
elog(ERROR,"could not free OpenSSL BIO structure");
145145

146146
PG_RETURN_TEXT_P(result);
147147
}
@@ -283,7 +283,7 @@ X509_NAME_to_text(X509_NAME *name)
283283
if (membuf==NULL)
284284
ereport(ERROR,
285285
(errcode(ERRCODE_OUT_OF_MEMORY),
286-
errmsg("failed to create BIO")));
286+
errmsg("could not createOpenSSLBIO structure")));
287287

288288
(void)BIO_set_close(membuf,BIO_CLOSE);
289289
for (i=0;i<count;i++)
@@ -293,15 +293,15 @@ X509_NAME_to_text(X509_NAME *name)
293293
if (nid==NID_undef)
294294
ereport(ERROR,
295295
(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")));
297297
v=X509_NAME_ENTRY_get_data(e);
298298
field_name=OBJ_nid2sn(nid);
299299
if (field_name==NULL)
300300
field_name=OBJ_nid2ln(nid);
301301
if (field_name==NULL)
302302
ereport(ERROR,
303303
(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)));
305305
BIO_printf(membuf,"/%s=",field_name);
306306
ASN1_STRING_print_ex(membuf,v,
307307
((ASN1_STRFLGS_RFC2253& ~ASN1_STRFLGS_ESC_MSB)
@@ -320,7 +320,7 @@ X509_NAME_to_text(X509_NAME *name)
320320
if (dp!=sp)
321321
pfree(dp);
322322
if (BIO_free(membuf)!=1)
323-
elog(ERROR,"failed to free OpenSSL BIO structure");
323+
elog(ERROR,"could not free OpenSSL BIO structure");
324324

325325
PG_RETURN_TEXT_P(result);
326326
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp