Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Benjamin <davidben@chromium.org>2014-11-01 10:42:00 +0300
committerAdam Langley <agl@google.com>2014-11-11 01:45:17 +0300
commit6867f4854eeb9e904880e5c41d8bab76a24bda09 (patch)
treeac902442256726628bde8a0dae680a31c2a9967f /ssl/d1_pkt.c
parentd8138e91d0613ebb373fe4c2beb39e53df43f59d (diff)
Remove #if 0'd code documenting an old bug.
It was a bug anyway. Change-Id: I59d680ce3615a4b24e72a9b6fa16939d83cc15ac Reviewed-on: https://boringssl-review.googlesource.com/2234 Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'ssl/d1_pkt.c')
-rw-r--r--ssl/d1_pkt.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/ssl/d1_pkt.c b/ssl/d1_pkt.c
index 2022ece9..dae47d71 100644
--- a/ssl/d1_pkt.c
+++ b/ssl/d1_pkt.c
@@ -1104,15 +1104,7 @@ start:
if (((s->state&SSL_ST_MASK) == SSL_ST_OK) &&
!(s->s3->flags & SSL3_FLAGS_NO_RENEGOTIATE_CIPHERS))
{
-#if 0 /* worked only because C operator preferences are not as expected (and
- * because this is not really needed for clients except for detecting
- * protocol violations): */
- s->state=SSL_ST_BEFORE|(s->server)
- ?SSL_ST_ACCEPT
- :SSL_ST_CONNECT;
-#else
s->state = s->server ? SSL_ST_ACCEPT : SSL_ST_CONNECT;
-#endif
s->renegotiate=1;
s->new_session=1;
}