diff options
Diffstat (limited to 'src/include/common/openssl.h')
-rw-r--r-- | src/include/common/openssl.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/include/common/openssl.h b/src/include/common/openssl.h new file mode 100644 index 00000000000..47fa1299945 --- /dev/null +++ b/src/include/common/openssl.h @@ -0,0 +1,28 @@ +/*------------------------------------------------------------------------- + * + * openssl.h + * OpenSSL supporting functionality shared between frontend and backend + * + * Portions Copyright (c) 1996-2020, PostgreSQL Global Development Group + * Portions Copyright (c) 1994, Regents of the University of California + * + * IDENTIFICATION + * src/include/common/openssl.h + * + *------------------------------------------------------------------------- + */ +#ifndef COMMON_OPENSSL_H +#define COMMON_OPENSSL_H + +#ifdef USE_OPENSSL +#include <openssl/ssl.h> + +/* src/common/protocol_openssl.c */ +#ifndef SSL_CTX_set_min_proto_version +extern int SSL_CTX_set_min_proto_version(SSL_CTX *ctx, int version); +extern int SSL_CTX_set_max_proto_version(SSL_CTX *ctx, int version); +#endif + +#endif + +#endif /* COMMON_OPENSSL_H */ |