mirror of
https://github.com/proxytunnel/proxytunnel.git
synced 2026-01-23 02:34:59 +00:00
Apply patch to fix: #57
This commit is contained in:
parent
e2a214d942
commit
4bac945fc7
3 changed files with 9 additions and 2 deletions
4
CHANGES
4
CHANGES
|
|
@ -1,3 +1,7 @@
|
|||
Changes to proxytunnel 1.10.20220528 -- Sat 28 May 2022 03:54:20 PM CEST
|
||||
|
||||
- Patch from https://github.com/ZjYwMj fixes https://github.com/proxytunnel/proxytunnel/issues/57
|
||||
|
||||
Changes to proxytunnel 1.10.20210609 -- Wed Jun 9 11:55:54 CEST 2021
|
||||
|
||||
- No functional changes
|
||||
|
|
|
|||
|
|
@ -341,8 +341,10 @@ int stream_enable_ssl(PTSTREAM *pts, const char *proxy_arg) {
|
|||
message( "Set SNI hostname to %s\n", peer_host);
|
||||
}
|
||||
res = SSL_set_tlsext_host_name(ssl, peer_host);
|
||||
if (res < 0) {
|
||||
message( "TLS SNI error, giving up: SSL_set_tlsext_host_name returned error message:\n %u\n", res );
|
||||
if (res != SSL_TLSEXT_ERR_OK) {
|
||||
unsigned long ssl_err = (res == SSL_TLSEXT_ERR_ALERT_WARNING ? SSL_TLSEXT_ERR_ALERT_WARNING : ERR_get_error());
|
||||
message( "SSL_set_tlsext_host_name returned: %lu (0x%lx). "
|
||||
"TLS SNI error, giving up\n", ssl_err, ssl_err );
|
||||
exit( 1 );
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@
|
|||
|
||||
#ifdef USE_SSL
|
||||
#include <openssl/crypto.h>
|
||||
#include <openssl/err.h>
|
||||
#include <openssl/x509.h>
|
||||
#include <openssl/pem.h>
|
||||
#include <openssl/ssl.h>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue