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
c8041474
Commit
c8041474
authored
Sep 04, 2006
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing gettext calls for some SSL errors.
parent
70bc947d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
src/backend/libpq/be-secure.c
src/backend/libpq/be-secure.c
+3
-3
src/interfaces/libpq/fe-secure.c
src/interfaces/libpq/fe-secure.c
+4
-4
No files found.
src/backend/libpq/be-secure.c
View file @
c8041474
...
...
@@ -11,7 +11,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/libpq/be-secure.c,v 1.7
1 2006/07/14 14:52:19 momjian
Exp $
* $PostgreSQL: pgsql/src/backend/libpq/be-secure.c,v 1.7
2 2006/09/04 14:57:27 petere
Exp $
*
* Since the server static private key ($DataDir/server.key)
* will normally be stored unencrypted so that the database
...
...
@@ -986,11 +986,11 @@ SSLerrmessage(void)
errcode
=
ERR_get_error
();
if
(
errcode
==
0
)
return
"No SSL error reported"
;
return
_
(
"no SSL error reported"
)
;
errreason
=
ERR_reason_error_string
(
errcode
);
if
(
errreason
!=
NULL
)
return
errreason
;
snprintf
(
errbuf
,
sizeof
(
errbuf
),
"SSL error code %lu"
,
errcode
);
snprintf
(
errbuf
,
sizeof
(
errbuf
),
_
(
"SSL error code %lu"
)
,
errcode
);
return
errbuf
;
}
...
...
src/interfaces/libpq/fe-secure.c
View file @
c8041474
...
...
@@ -11,7 +11,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-secure.c,v 1.8
5 2006/07/14 16:59:19 tgl
Exp $
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-secure.c,v 1.8
6 2006/09/04 14:57:27 petere
Exp $
*
* NOTES
* [ Most of these notes are wrong/obsolete, but perhaps not all ]
...
...
@@ -1000,7 +1000,7 @@ close_SSL(PGconn *conn)
* return NULL if it doesn't recognize the error code. We don't
* want to return NULL ever.
*/
static
char
ssl_nomem
[]
=
"
O
ut of memory allocating error description"
;
static
char
ssl_nomem
[]
=
"
o
ut of memory allocating error description"
;
#define SSL_ERR_LEN 128
...
...
@@ -1017,7 +1017,7 @@ SSLerrmessage(void)
errcode
=
ERR_get_error
();
if
(
errcode
==
0
)
{
s
trcpy
(
errbuf
,
"No SSL error reported"
);
s
nprintf
(
errbuf
,
SSL_ERR_LEN
,
libpq_gettext
(
"no SSL error reported"
)
);
return
errbuf
;
}
errreason
=
ERR_reason_error_string
(
errcode
);
...
...
@@ -1027,7 +1027,7 @@ SSLerrmessage(void)
errbuf
[
SSL_ERR_LEN
-
1
]
=
'\0'
;
return
errbuf
;
}
snprintf
(
errbuf
,
SSL_ERR_LEN
,
"SSL error code %lu"
,
errcode
);
snprintf
(
errbuf
,
SSL_ERR_LEN
,
libpq_gettext
(
"SSL error code %lu"
)
,
errcode
);
return
errbuf
;
}
...
...
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