diff options
| author | Soikk | 2025-04-20 20:38:45 +0200 |
|---|---|---|
| committer | Soikk | 2025-04-20 20:38:45 +0200 |
| commit | da313c80664183885fb3a3ce9c01700ee8bc38bf (patch) | |
| tree | 2deb23473cad95a16b7c9ec9bd28e7b25b93141d /src/net | |
| parent | d2ba110a8cc15ab4b967296cc02715f9c6e3cf21 (diff) | |
| download | soikk-server-da313c80664183885fb3a3ce9c01700ee8bc38bf.tar.xz soikk-server-da313c80664183885fb3a3ce9c01700ee8bc38bf.tar.zst | |
Changed Makefile line endings, upgraded IPC
Diffstat (limited to 'src/net')
| -rwxr-xr-x | src/net/net.c | 6 |
1 files changed, 4 insertions, 2 deletions
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; |
