Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
665a00c9
Commit
665a00c9
authored
Sep 08, 2015
by
Alvaro Herrera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix error message wording in previous sslinfo commit
parent
49124613
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
contrib/sslinfo/sslinfo.c
contrib/sslinfo/sslinfo.c
+7
-7
No files found.
contrib/sslinfo/sslinfo.c
View file @
665a00c9
...
...
@@ -149,7 +149,7 @@ ASN1_STRING_to_text(ASN1_STRING *str)
if
(
membuf
==
NULL
)
ereport
(
ERROR
,
(
errcode
(
ERRCODE_OUT_OF_MEMORY
),
errmsg
(
"
failed to
create OpenSSL BIO structure"
)));
errmsg
(
"
could not
create OpenSSL BIO structure"
)));
(
void
)
BIO_set_close
(
membuf
,
BIO_CLOSE
);
ASN1_STRING_print_ex
(
membuf
,
str
,
((
ASN1_STRFLGS_RFC2253
&
~
ASN1_STRFLGS_ESC_MSB
)
...
...
@@ -163,7 +163,7 @@ ASN1_STRING_to_text(ASN1_STRING *str)
if
(
dp
!=
sp
)
pfree
(
dp
);
if
(
BIO_free
(
membuf
)
!=
1
)
elog
(
ERROR
,
"
failed to
free OpenSSL BIO structure"
);
elog
(
ERROR
,
"
could not
free OpenSSL BIO structure"
);
PG_RETURN_TEXT_P
(
result
);
}
...
...
@@ -305,7 +305,7 @@ X509_NAME_to_text(X509_NAME *name)
if
(
membuf
==
NULL
)
ereport
(
ERROR
,
(
errcode
(
ERRCODE_OUT_OF_MEMORY
),
errmsg
(
"
failed to create BIO
"
)));
errmsg
(
"
could not create OpenSSL BIO structure
"
)));
(
void
)
BIO_set_close
(
membuf
,
BIO_CLOSE
);
for
(
i
=
0
;
i
<
count
;
i
++
)
...
...
@@ -315,7 +315,7 @@ X509_NAME_to_text(X509_NAME *name)
if
(
nid
==
NID_undef
)
ereport
(
ERROR
,
(
errcode
(
ERRCODE_INVALID_PARAMETER_VALUE
),
errmsg
(
"
failed to
get NID for ASN1_OBJECT object"
)));
errmsg
(
"
could not
get NID for ASN1_OBJECT object"
)));
v
=
X509_NAME_ENTRY_get_data
(
e
);
field_name
=
OBJ_nid2sn
(
nid
);
if
(
field_name
==
NULL
)
...
...
@@ -323,7 +323,7 @@ X509_NAME_to_text(X509_NAME *name)
if
(
field_name
==
NULL
)
ereport
(
ERROR
,
(
errcode
(
ERRCODE_INVALID_PARAMETER_VALUE
),
errmsg
(
"
failed to
convert NID %d to an ASN1_OBJECT structure"
,
nid
)));
errmsg
(
"
could not
convert NID %d to an ASN1_OBJECT structure"
,
nid
)));
BIO_printf
(
membuf
,
"/%s="
,
field_name
);
ASN1_STRING_print_ex
(
membuf
,
v
,
((
ASN1_STRFLGS_RFC2253
&
~
ASN1_STRFLGS_ESC_MSB
)
...
...
@@ -339,7 +339,7 @@ X509_NAME_to_text(X509_NAME *name)
if
(
dp
!=
sp
)
pfree
(
dp
);
if
(
BIO_free
(
membuf
)
!=
1
)
elog
(
ERROR
,
"
failed to
free OpenSSL BIO structure"
);
elog
(
ERROR
,
"
could not
free OpenSSL BIO structure"
);
PG_RETURN_TEXT_P
(
result
);
}
...
...
@@ -523,6 +523,6 @@ ssl_extension_info(PG_FUNCTION_ARGS)
SRF_RETURN_NEXT
(
funcctx
,
result
);
}
/*
Do when there is no more left
*/
/*
All done
*/
SRF_RETURN_DONE
(
funcctx
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment