From: Nick Mathewson Date: Wed, 13 May 2015 15:24:47 +0000 (-0400) Subject: Use SSL_clear_mode where available. X-Git-Tag: tor-0.2.7.2-alpha~103^2~12 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=22da5001b5c1fbd3230176d389fab12cb86a69bc;p=thirdparty%2Ftor.git Use SSL_clear_mode where available. --- diff --git a/src/common/tortls.c b/src/common/tortls.c index 4a15670156..6093286637 100644 --- a/src/common/tortls.c +++ b/src/common/tortls.c @@ -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 tls. 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