Skip to content

Commit

Permalink
* Commit an amendment to the latest SSL error hack.
Browse files Browse the repository at this point in the history
  • Loading branch information
iProgramMC committed Jun 8, 2024
1 parent e3d0419 commit cd4b17c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions deps/httplib/httplib.h
Original file line number Diff line number Diff line change
Expand Up @@ -7542,6 +7542,9 @@ bool ssl_connect_or_accept_nonblocking(socket_t sock, SSL *ssl,
}
// To debug an issue, setting a global:
g_latestSSLError = err;
if (err == SSL_ERROR_SYSCALL) {
g_latestSSLError = 0x80000000 | ERR_get_error(); // hope that OpenSSL doesn't set that 31st bit
}
return false;
}
return true;
Expand Down

0 comments on commit cd4b17c

Please sign in to comment.