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
3ecfdcea
Commit
3ecfdcea
authored
May 06, 2006
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue a log message if a CRL file exists and the SSL library does not
support CRL certificates.
parent
25c1c3cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
src/backend/libpq/be-secure.c
src/backend/libpq/be-secure.c
+11
-5
No files found.
src/backend/libpq/be-secure.c
View file @
3ecfdcea
...
...
@@ -11,7 +11,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/libpq/be-secure.c,v 1.6
7 2006/05/04 22:18:38 tgl
Exp $
* $PostgreSQL: pgsql/src/backend/libpq/be-secure.c,v 1.6
8 2006/05/06 01:31:38 momjian
Exp $
*
* Since the server static private key ($DataDir/server.key)
* will normally be stored unencrypted so that the database
...
...
@@ -795,7 +795,6 @@ initialize_SSL(void)
}
else
{
#ifdef X509_V_FLAG_CRL_CHECK
/*
* Check the Certificate Revocation List (CRL) if file exists.
* http://searchsecurity.techtarget.com/sDefinition/0,,sid14_gci803160,00.html
...
...
@@ -804,10 +803,18 @@ initialize_SSL(void)
if
(
cvstore
)
{
/* Set the flags to check against the complete CRL chain */
if
(
X509_STORE_load_locations
(
cvstore
,
ROOT_CRL_FILE
,
NULL
)
!=
0
)
/* setting the flags to check against the complete CRL chain */
X509_STORE_set_flags
(
cvstore
,
/* OpenSSL 0.96 does not support X509_V_FLAG_CRL_CHECK */
#ifdef X509_V_FLAG_CRL_CHECK
X509_STORE_set_flags
(
cvstore
,
X509_V_FLAG_CRL_CHECK
|
X509_V_FLAG_CRL_CHECK_ALL
);
#else
ereport
(
LOG
,
(
errmsg
(
"SSL Certificate Revocation List (CRL) file
\"
%s
\"
ignored"
,
ROOT_CRL_FILE
),
errdetail
(
"Installed SSL library does not support CRL."
)));
#endif
else
{
/* Not fatal - we do not require CRL */
...
...
@@ -817,7 +824,6 @@ initialize_SSL(void)
errdetail
(
"Will not check certificates against CRL."
)));
}
}
#endif
/* X509_V_FLAG_CRL_CHECK */
SSL_CTX_set_verify
(
SSL_context
,
(
SSL_VERIFY_PEER
|
...
...
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