Tidy up comments.
authorRob Stradling <rob@comodo.com>
Tue, 10 Sep 2013 10:06:55 +0000 (11:06 +0100)
committerBen Laurie <ben@links.org>
Mon, 16 Sep 2013 14:07:52 +0000 (15:07 +0100)
ssl/s3_lib.c
ssl/ssl3.h
ssl/t1_lib.c

index c2428f48224f354e08e8142532684b180662a814..86a8bc56a76640aa93606c036b324b8a4de21f0c 100644 (file)
@@ -3040,8 +3040,8 @@ void ssl3_clear(SSL *s)
 #ifndef OPENSSL_NO_TLSEXT
 #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 208b39243ed58351916e22e9d82a9e61d8c60ab8..cb8b2492ec976704c89ecc32e8009f051398ead4 100644 (file)
@@ -546,8 +546,8 @@ 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_TLSEXT */
+#endif /* !OPENSSL_NO_EC */
+#endif /* !OPENSSL_NO_TLSEXT */
        } SSL3_STATE;
 
 #endif
index f671d1d9c321e8b5edc542ca8e82cd744926e9c7..f93216d4540299356b78271d70484708b50cca82 100644 (file)
@@ -947,7 +947,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 */
 
 int ssl_parse_clienthello_tlsext(SSL *s, unsigned char **p, unsigned char *d, int n, int *al)
        {
@@ -972,7 +972,7 @@ int ssl_parse_clienthello_tlsext(SSL *s, unsigned char **p, unsigned char *d, in
 #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 */
 
        if (data >= (d+n-2))
                goto ri_check;