PostgreSQL Source Code  git master
openssl.h
Go to the documentation of this file.
1 /*-------------------------------------------------------------------------
2  *
3  * openssl.h
4  * OpenSSL supporting functionality shared between frontend and backend
5  *
6  * Portions Copyright (c) 1996-2020, PostgreSQL Global Development Group
7  * Portions Copyright (c) 1994, Regents of the University of California
8  *
9  * IDENTIFICATION
10  * src/include/common/openssl.h
11  *
12  *-------------------------------------------------------------------------
13  */
14 #ifndef COMMON_OPENSSL_H
15 #define COMMON_OPENSSL_H
16 
17 #ifdef USE_OPENSSL
18 #include <openssl/ssl.h>
19 
20 /* src/common/protocol_openssl.c */
21 #ifndef SSL_CTX_set_min_proto_version
22 extern int SSL_CTX_set_min_proto_version(SSL_CTX *ctx, int version);
23 extern int SSL_CTX_set_max_proto_version(SSL_CTX *ctx, int version);
24 #endif
25 
26 #endif
27 
28 #endif /* COMMON_OPENSSL_H */
int SSL_CTX_set_min_proto_version(SSL_CTX *ctx, int version)
int SSL_CTX_set_max_proto_version(SSL_CTX *ctx, int version)