mirror of
https://github.com/postgres/postgres.git
synced 2025-05-21 15:54:08 +03:00
Minor refactoring: initialize_SSL() only returns 0, so it should return
"void" rather than "int".
This commit is contained in:
parent
c4826cf0b0
commit
570b726533
@ -11,7 +11,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $PostgreSQL: pgsql/src/backend/libpq/be-secure.c,v 1.62 2006/03/05 15:58:27 momjian Exp $
|
* $PostgreSQL: pgsql/src/backend/libpq/be-secure.c,v 1.63 2006/03/21 18:18:35 neilc Exp $
|
||||||
*
|
*
|
||||||
* Since the server static private key ($DataDir/server.key)
|
* Since the server static private key ($DataDir/server.key)
|
||||||
* will normally be stored unencrypted so that the database
|
* will normally be stored unencrypted so that the database
|
||||||
@ -110,7 +110,7 @@ static DH *load_dh_buffer(const char *, size_t);
|
|||||||
static DH *tmp_dh_cb(SSL *s, int is_export, int keylength);
|
static DH *tmp_dh_cb(SSL *s, int is_export, int keylength);
|
||||||
static int verify_cb(int, X509_STORE_CTX *);
|
static int verify_cb(int, X509_STORE_CTX *);
|
||||||
static void info_cb(const SSL *ssl, int type, int args);
|
static void info_cb(const SSL *ssl, int type, int args);
|
||||||
static int initialize_SSL(void);
|
static void initialize_SSL(void);
|
||||||
static void destroy_SSL(void);
|
static void destroy_SSL(void);
|
||||||
static int open_server_SSL(Port *);
|
static int open_server_SSL(Port *);
|
||||||
static void close_SSL(Port *);
|
static void close_SSL(Port *);
|
||||||
@ -204,13 +204,11 @@ KWbuHn491xNO25CQWMtem80uKw+pTnisBRF/454n1Jnhub144YRBoN8CAQI=\n\
|
|||||||
int
|
int
|
||||||
secure_initialize(void)
|
secure_initialize(void)
|
||||||
{
|
{
|
||||||
int r = 0;
|
|
||||||
|
|
||||||
#ifdef USE_SSL
|
#ifdef USE_SSL
|
||||||
r = initialize_SSL();
|
initialize_SSL();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return r;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -712,7 +710,7 @@ info_cb(const SSL *ssl, int type, int args)
|
|||||||
/*
|
/*
|
||||||
* Initialize global SSL context.
|
* Initialize global SSL context.
|
||||||
*/
|
*/
|
||||||
static int
|
static void
|
||||||
initialize_SSL(void)
|
initialize_SSL(void)
|
||||||
{
|
{
|
||||||
struct stat buf;
|
struct stat buf;
|
||||||
@ -802,8 +800,6 @@ initialize_SSL(void)
|
|||||||
SSL_VERIFY_CLIENT_ONCE),
|
SSL_VERIFY_CLIENT_ONCE),
|
||||||
verify_cb);
|
verify_cb);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user