| /*------------------------------------------------------------------------- | |
| * | |
| * openssl.h | |
| * OpenSSL supporting functionality shared between frontend and backend | |
| * | |
| * Portions Copyright (c) 1996-2024, PostgreSQL Global Development Group | |
| * Portions Copyright (c) 1994, Regents of the University of California | |
| * | |
| * IDENTIFICATION | |
| * src/include/common/openssl.h | |
| * | |
| *------------------------------------------------------------------------- | |
| */ | |
| /* | |
| * OpenSSL doesn't provide any very nice way to identify the min/max | |
| * protocol versions the library supports, so we fake it as best we can. | |
| * Note in particular that this doesn't account for restrictions that | |
| * might be specified in the installation's openssl.cnf. | |
| * | |
| * We disable SSLv3 and older in library setup, so TLSv1 is the oldest | |
| * protocol version of interest. | |
| */ | |
| /* src/common/protocol_openssl.c */ | |
| 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); | |