summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Stradling <rob@comodo.com>2013-09-10 12:45:34 +0100
committerBen Laurie <ben@links.org>2013-10-04 14:55:01 +0100
commita4bfeff254bb7a7243b4e0277b3818a5b9732285 (patch)
tree1a0dededea5b4afc5d334911908ac5ecddca0470
parent43433b3852e4f9de68af70e52f59e31a898262d6 (diff)
Tidy up comments.
-rw-r--r--ssl/s3_lib.c4
-rw-r--r--ssl/ssl3.h4
-rw-r--r--ssl/t1_lib.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/ssl/s3_lib.c b/ssl/s3_lib.c
index bdfb26db20..531063679d 100644
--- a/ssl/s3_lib.c
+++ b/ssl/s3_lib.c
@@ -1737,8 +1737,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;
diff --git a/ssl/ssl3.h b/ssl/ssl3.h
index 4cc063821a..2a83a2ad21 100644
--- a/ssl/ssl3.h
+++ b/ssl/ssl3.h
@@ -467,8 +467,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;
diff --git a/ssl/t1_lib.c b/ssl/t1_lib.c
index 98e86bff98..09b06a5af7 100644
--- a/ssl/t1_lib.c
+++ b/ssl/t1_lib.c
@@ -425,7 +425,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)
{
@@ -441,7 +441,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;