From da313c80664183885fb3a3ce9c01700ee8bc38bf Mon Sep 17 00:00:00 2001 From: Soikk Date: Sun, 20 Apr 2025 20:38:45 +0200 Subject: Changed Makefile line endings, upgraded IPC --- src/net/net.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/net') diff --git a/src/net/net.c b/src/net/net.c index 6379c2d..d0bf233 100755 --- a/src/net/net.c +++ b/src/net/net.c @@ -181,10 +181,10 @@ int setup_https(http_worker *hw, str certfile, str keyfile){ return 1; } //SSL_CTX_set_verify(hw->ssl_ctx, SSL_VERIFY_PEER, NULL); - if(SSL_CTX_load_verify_locations(hw->ssl_ctx, "ssl/mkarchive.net/ca_bundle.crt", NULL) <= 0){ + /*if(SSL_CTX_load_verify_locations(hw->ssl_ctx, "ssl/mkarchive.net/ca_bundle.crt", NULL) <= 0){ log_error("Verifying certificate locations"); return 1; - } + }*/ if(SSL_CTX_use_certificate_file(hw->ssl_ctx, certfile.ptr, SSL_FILETYPE_PEM) <= 0){ log_error("Using certificate file"); return 1; @@ -199,6 +199,7 @@ int setup_https(http_worker *hw, str certfile, str keyfile){ return 1; } SSL_set_accept_state(hw->ssl); + hw->secure = 1; return 0; } @@ -216,6 +217,7 @@ void reset_https(http_worker *hw){ void terminate_https(http_worker *hw){ if(hw != NULL){ + hw->secure = 0; if(hw->ssl != NULL){ SSL_free(hw->ssl); hw->ssl = NULL; -- cgit v1.2.3