diff options
| author | PostgreSQL Daemon <webmaster@postgresql.org> | 2002-12-18 13:15:15 +0000 | 
|---|---|---|
| committer | PostgreSQL Daemon <webmaster@postgresql.org> | 2002-12-18 13:15:15 +0000 | 
| commit | 750a0e676e1f8f71bf1c6aba05d3264a7c57218b (patch) | |
| tree | b528b0062aa72f383ebe6ac0566e1d9683896453 /src/interfaces/libpq/fe-secure.c | |
| parent | 46a4351dcda7abcf403d2e4d9fc00e30a6628d1e (diff) | |
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 ...
Diffstat (limited to 'src/interfaces/libpq/fe-secure.c')
| -rw-r--r-- | src/interfaces/libpq/fe-secure.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interfaces/libpq/fe-secure.c b/src/interfaces/libpq/fe-secure.c index b0cec2608a5..6f613aec069 100644 --- a/src/interfaces/libpq/fe-secure.c +++ b/src/interfaces/libpq/fe-secure.c @@ -11,7 +11,7 @@   *   *   * IDENTIFICATION - *	  $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-secure.c,v 1.17 2002/12/12 22:42:39 momjian Exp $ + *	  $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-secure.c,v 1.18 2002/12/18 13:15:15 pgsql Exp $   *   * NOTES   *	  The client *requires* a valid server certificate.  Since @@ -714,7 +714,7 @@ initialize_SSL(PGconn *conn)  	{  		SSL_library_init();  		SSL_load_error_strings(); -		SSL_context = SSL_CTX_new(TLSv1_method()); +		SSL_context = SSL_CTX_new(SSLv23_method());  		if (!SSL_context)  		{  			printfPQExpBuffer(&conn->errorMessage,  | 
