aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2015-05-13 11:24:47 -0400
committerNick Mathewson <nickm@torproject.org>2015-05-13 11:24:47 -0400
commit22da5001b5c1fbd3230176d389fab12cb86a69bc (patch)
tree58e02ec28989072bc0fbf4a65c8015b8f0237a7d /src
parent92b297bb589e51e2f2653dd9c1a8dc1a86b6b7ad (diff)
downloadtor-22da5001b5c1fbd3230176d389fab12cb86a69bc.tar.gz
tor-22da5001b5c1fbd3230176d389fab12cb86a69bc.zip
Use SSL_clear_mode where available.
Diffstat (limited to 'src')
-rw-r--r--src/common/tortls.c8
1 files changed, 8 insertions, 0 deletions
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 <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