[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Use SSL_clear_mode where available.



commit 22da5001b5c1fbd3230176d389fab12cb86a69bc
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Wed May 13 11:24:47 2015 -0400

    Use SSL_clear_mode where available.
---
 src/common/tortls.c |    8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/common/tortls.c b/src/common/tortls.c
index 4a15670..6093286 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



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits