1
0
Fork 0
mirror of https://repo.or.cz/socat.git synced 2025-07-16 08:03:24 +00:00

OpenSSL options min-version, max-version

This commit is contained in:
Gerhard Rieger 2020-12-27 20:25:10 +01:00
parent beed38655f
commit de2f2c471b
10 changed files with 248 additions and 23 deletions

8
xio.h
View file

@ -229,8 +229,14 @@ typedef struct single {
#if WITH_OPENSSL
struct {
struct timeval connect_timeout; /* how long to hang in connect() */
SSL_CTX* ctx; /* for freeing on close */
SSL *ssl;
SSL_CTX* ctx;
#if HAVE_SSL_CTX_set_min_proto_version || defined(SSL_CTX_set_min_proto_version)
char *min_proto_version;
#endif
#if HAVE_SSL_CTX_set_max_proto_version || defined(SSL_CTX_set_max_proto_version)
char *max_proto_version;
#endif
} openssl;
#endif /* WITH_OPENSSL */
#if WITH_TUN