[or-cvs] r13690: <weasel> tortls.c: In function `tor_tls_client_is_using_v2_c (tor/trunk/src/common)

arma at seul.org arma at seul.org
Sun Feb 24 00:35:21 UTC 2008


Author: arma
Date: 2008-02-23 19:35:20 -0500 (Sat, 23 Feb 2008)
New Revision: 13690

Modified:
   tor/trunk/src/common/tortls.c
Log:
<weasel> tortls.c: In function `tor_tls_client_is_using_v2_ciphers':
<weasel> tortls.c:634: warning: passing arg 1 of `SSL_get_session' discards
qualifiers from pointer target type

Nick, see if you like this patch.


Modified: tor/trunk/src/common/tortls.c
===================================================================
--- tor/trunk/src/common/tortls.c	2008-02-24 00:20:43 UTC (rev 13689)
+++ tor/trunk/src/common/tortls.c	2008-02-24 00:35:20 UTC (rev 13690)
@@ -631,7 +631,7 @@
   SSL_SESSION *session;
   /* If we reached this point, we just got a client hello.  See if there is
    * a cipher list. */
-  if (!(session = SSL_get_session(ssl))) {
+  if (!(session = SSL_get_session((SSL *)ssl))) {
     log_warn(LD_NET, "No session on TLS?");
     return 0;
   }



More information about the tor-commits mailing list