Skip to content

Commit 750a0e6

Browse files
author
PostgreSQL Daemon
committed
From the SSL_CTX_new man page: "SSLv23_method(void), SSLv23_server_method(void), SSLv23_client_method(void) A TLS/SSL connection established with these methods will understand the SSLv2, SSLv3, and TLSv1 protocol. A client will send out SSLv2 client hello messages and will indicate that it also understands SSLv3 and TLSv1. A server will understand SSLv2, SSLv3, and TLSv1 client hello messages. This is the best choice when compatibility is a concern." This will maintain backwards compatibility for those us that don't use TLS connections ...
1 parent 46a4351 commit 750a0e6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/backend/libpq/be-secure.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*
1212
*
1313
* IDENTIFICATION
14-
* $Header: /cvsroot/pgsql/src/backend/libpq/be-secure.c,v 1.19 2002/12/14 18:39:14 momjian Exp $
14+
* $Header: /cvsroot/pgsql/src/backend/libpq/be-secure.c,v 1.20 2002/12/18 13:15:12 pgsql Exp $
1515
*
1616
* Since the server static private key ($DataDir/server.key)
1717
* will normally be stored unencrypted so that the database
@@ -587,7 +587,7 @@ initialize_SSL(void)
587587
{
588588
SSL_library_init();
589589
SSL_load_error_strings();
590-
SSL_context = SSL_CTX_new(TLSv1_method());
590+
SSL_context = SSL_CTX_new(SSLv23_method());
591591
if (!SSL_context)
592592
{
593593
postmaster_error("failed to create SSL context: %s",

src/interfaces/libpq/fe-secure.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*
1212
*
1313
* IDENTIFICATION
14-
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-secure.c,v 1.17 2002/12/12 22:42:39 momjian Exp $
14+
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-secure.c,v 1.18 2002/12/18 13:15:15 pgsql Exp $
1515
*
1616
* NOTES
1717
* The client *requires* a valid server certificate. Since
@@ -714,7 +714,7 @@ initialize_SSL(PGconn *conn)
714714
{
715715
SSL_library_init();
716716
SSL_load_error_strings();
717-
SSL_context = SSL_CTX_new(TLSv1_method());
717+
SSL_context = SSL_CTX_new(SSLv23_method());
718718
if (!SSL_context)
719719
{
720720
printfPQExpBuffer(&conn->errorMessage,

0 commit comments

Comments
 (0)