summaryrefslogtreecommitdiff
path: root/lib/libssl/s3_pkt.c
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2014-04-17 23:35:41 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2014-04-17 23:35:41 +0000
commiteb74fae5997a015328501cbe38bdcaaca56a4eaa (patch)
tree58b670ebaa103259ed10a9b2e474ef78f0d5054f /lib/libssl/s3_pkt.c
parentf4e07dfcc44f54f9ad150dc673707ca42457574a (diff)
whack a bunch of disabled code. ok beck lteo
Diffstat (limited to 'lib/libssl/s3_pkt.c')
-rw-r--r--lib/libssl/s3_pkt.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/lib/libssl/s3_pkt.c b/lib/libssl/s3_pkt.c
index d6c8756a1ac..e901268a341 100644
--- a/lib/libssl/s3_pkt.c
+++ b/lib/libssl/s3_pkt.c
@@ -313,9 +313,6 @@ again:
ssl_minor= *(p++);
version = (ssl_major << 8)|ssl_minor;
n2s(p, rr->length);
-#if 0
- fprintf(stderr, "Record type=%d, Length=%d\n", rr->type, rr->length);
-#endif
/* Lets check version */
if (!s->first_packet) {
@@ -495,10 +492,6 @@ again:
if (rr->length == 0)
goto again;
-#if 0
- fprintf(stderr, "Ultimate Record type=%d, Length=%d\n", rr->type, rr->length);
-#endif
-
return (1);
f_err:
@@ -1214,14 +1207,7 @@ start:
if ((s->s3->handshake_fragment_len >= 4) && !s->in_handshake) {
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;
}