From 71ea1c015f98a40dbcf7a1d68df2cc88ffce7585 Mon Sep 17 00:00:00 2001 From: Susant Sahani Date: Thu, 16 May 2024 21:29:51 +0530 Subject: [PATCH 1/2] TLS: Set SSL_MODE_AUTO_RETRY to SSL --- src/netlog/netlog-tls.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/netlog/netlog-tls.c b/src/netlog/netlog-tls.c index 0d29c7f..de988cb 100644 --- a/src/netlog/netlog-tls.c +++ b/src/netlog/netlog-tls.c @@ -221,7 +221,6 @@ int tls_connect(TLSManager *m, SocketAddress *address) { return log_error_errno(SYNTHETIC_ERRNO(EIO), "Failed to SSL_set_fd: %s", ERR_error_string(ERR_get_error(), NULL)); - /* Cerification verification */ if (m->auth_mode != OPEN_SSL_CERTIFICATE_AUTH_MODE_NONE && m->auth_mode != OPEN_SSL_CERTIFICATE_AUTH_MODE_INVALID) { log_debug("TLS: enable certificate verification"); @@ -234,7 +233,9 @@ int tls_connect(TLSManager *m, SocketAddress *address) { log_debug("TLS: disable certificate verification"); SSL_CTX_set_verify(ctx, SSL_VERIFY_NONE, NULL); } + SSL_CTX_set_default_verify_paths(ctx); + SSL_set_mode(ssl, SSL_MODE_AUTO_RETRY); r = SSL_connect(ssl); if (r <= 0) From f8a97e25f0c3ddc7a4997aeec9aea88a33bf9d68 Mon Sep 17 00:00:00 2001 From: Susant Sahani Date: Thu, 16 May 2024 21:36:02 +0530 Subject: [PATCH 2/2] doc: Set languange to en --- doc/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/conf.py b/doc/conf.py index 51f52e9..248667b 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -63,7 +63,7 @@ # # This is also used if you do content translation via gettext catalogs. # Usually you set "language" from the command line for these cases. -language = None +language = 'en' # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files.