Tidy up comments.
authorRob Stradling <rob@comodo.com>
Tue, 10 Sep 2013 10:50:05 +0000 (11:50 +0100)
committerBen Laurie <ben@links.org>
Mon, 16 Sep 2013 13:03:21 +0000 (14:03 +0100)
ssl/s3_lib.c
ssl/ssl3.h
ssl/t1_lib.c

index 26c0e96aed58796d5cf2fd7f5654ee16871c1316..2250faa2e28855fa0dfa6de484dbf2eb303e34d2 100644 (file)
@@ -3068,8 +3068,8 @@ void ssl3_clear(SSL *s)
        s->s3->tlsext_custom_types_count = 0;   
 #ifndef OPENSSL_NO_EC
        s->s3->is_probably_safari = 0;
-#endif /* OPENSSL_NO_EC */
-#endif /* OPENSSL_NO_TLSEXT */
+#endif /* !OPENSSL_NO_EC */
+#endif /* !OPENSSL_NO_TLSEXT */
 
        rp = s->s3->rbuf.buf;
        wp = s->s3->wbuf.buf;
index 56416078ad1d1993127b61b4ab1b7af0d2b8e386..a142bbf30cbaed7a6ad2782457ae443ddc2d8031 100644 (file)
@@ -586,9 +586,9 @@ typedef struct ssl3_state_st
         * running on OS X 10.6 or newer. We wish to know this because Safari
         * on 10.8 .. 10.8.3 has broken ECDHE-ECDSA support. */
        char is_probably_safari;
-#endif /* OPENSSL_NO_EC */
+#endif /* !OPENSSL_NO_EC */
 
-#endif /* OPENSSL_NO_TLSEXT */
+#endif /* !OPENSSL_NO_TLSEXT */
        } SSL3_STATE;
 
 #endif
index a240587eecbd40ccea5e07f33c2ea14d717f369c..f13ca49484d0feb819713130f66e690ab657261f 100644 (file)
@@ -1843,7 +1843,7 @@ static void ssl_check_for_safari(SSL *s, const unsigned char *data, const unsign
 
        s->s3->is_probably_safari = 1;
 }
-#endif /* OPENSSL_NO_EC */
+#endif /* !OPENSSL_NO_EC */
 
 static int ssl_scan_clienthello_tlsext(SSL *s, unsigned char **p, unsigned char *d, int n, int *al) 
        {       
@@ -1868,7 +1868,7 @@ static int ssl_scan_clienthello_tlsext(SSL *s, unsigned char **p, unsigned char
 #ifndef OPENSSL_NO_EC
        if (s->options & SSL_OP_SAFARI_ECDHE_ECDSA_BUG)
                ssl_check_for_safari(s, data, d, n);
-#endif /* OPENSSL_NO_EC */
+#endif /* !OPENSSL_NO_EC */
 
        /* Clear any signature algorithms extension received */
        if (s->cert->peer_sigalgs)