From 9180e065a00586441b0e59a09d9f2d7b4a94774a Mon Sep 17 00:00:00 2001 From: Evengard Date: Sat, 2 May 2020 20:29:31 +0300 Subject: [PATCH] Some weirdness fixes --- src/Mayaqua/Network.c | 2 +- src/Mayaqua/Network.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mayaqua/Network.c b/src/Mayaqua/Network.c index 6b621759..b79238f7 100644 --- a/src/Mayaqua/Network.c +++ b/src/Mayaqua/Network.c @@ -5732,7 +5732,7 @@ SSL_PIPE *NewSslPipeEx(bool server_mode, X *x, K *k, DH_CTX *dh, bool verify_pee SSL_CTX_set_ssl_version(ssl_ctx, SSLv23_method()); SSL_CTX_set_options(ssl_ctx, SSL_OP_NO_SSLv2); -#ifdef SSL_OP_NO_SSLv3 +#ifdef SSL_OP_NO_TLSv1_3 SSL_CTX_set_options(ssl_ctx, SSL_OP_NO_TLSv1_3); // For some reason pppd under linux doesn't like it #endif diff --git a/src/Mayaqua/Network.h b/src/Mayaqua/Network.h index 2019da20..1744ff70 100644 --- a/src/Mayaqua/Network.h +++ b/src/Mayaqua/Network.h @@ -1135,7 +1135,7 @@ UINT SecureRecv(SOCK *sock, void *data, UINT size); bool StartSSL(SOCK *sock, X *x, K *priv); bool StartSSLEx(SOCK *sock, X *x, K *priv, UINT ssl_timeout, char *sni_hostname); bool AddChainSslCert(struct ssl_ctx_st *ctx, X *x); -void AddChainSslCertOnDirectory(struct ssl_st *ctx); +void AddChainSslCertOnDirectory(struct ssl_ctx_st *ctx); bool SendAll(SOCK *sock, void *data, UINT size, bool secure); void SendAdd(SOCK *sock, void *data, UINT size); bool SendNow(SOCK *sock, int secure);