mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 12:23:32 +01:00
Use SSL_clear_mode where available.
This commit is contained in:
parent
92b297bb58
commit
22da5001b5
@ -2223,6 +2223,14 @@ tor_tls_handshake(tor_tls_t *tls)
|
||||
return r;
|
||||
}
|
||||
|
||||
/* SSL_clear_mode was introduced in 0.9.8m */
|
||||
#ifndef SSL_clear_mode
|
||||
static void SSL_clear_mode(SSL *s, unsigned long m)
|
||||
{
|
||||
s->mode &= ~m;
|
||||
}
|
||||
#endif
|
||||
|
||||
/** Perform the final part of the intial TLS handshake on <b>tls</b>. This
|
||||
* should be called for the first handshake only: it determines whether the v1
|
||||
* or the v2 handshake was used, and adjusts things for the renegotiation
|
||||
|
Loading…
Reference in New Issue
Block a user