merged SSL fix from RC_0_16
This commit is contained in:
parent
75ba9333e6
commit
d782fc224c
|
@ -23,6 +23,7 @@
|
|||
* fix uTP edge case where udp socket buffer fills up
|
||||
* fix nagle implementation in uTP
|
||||
|
||||
* fix SSL authentication issue
|
||||
* deprecate std::wstring overloads. long live utf-8
|
||||
* improve time-critical pieces feature (streaming)
|
||||
* introduce bandwidth exhaustion attack-mitigation in allowed-fast pieces
|
||||
|
|
|
@ -588,7 +588,10 @@ namespace aux {
|
|||
if (!t->ssl_ctx()) return SSL_TLSEXT_ERR_ALERT_FATAL;
|
||||
|
||||
// use this torrent's certificate
|
||||
SSL_set_SSL_CTX(s, t->ssl_ctx()->native_handle());
|
||||
SSL_CTX *torrent_context = t->ssl_ctx()->native_handle();
|
||||
|
||||
SSL_set_SSL_CTX(s, torrent_context);
|
||||
SSL_set_verify(s, SSL_CTX_get_verify_mode(torrent_context), SSL_CTX_get_verify_callback(torrent_context));
|
||||
|
||||
return SSL_TLSEXT_ERR_OK;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue