summaryrefslogtreecommitdiff
path: root/src/lib/libssl/s3_clnt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl/s3_clnt.c')
-rw-r--r--src/lib/libssl/s3_clnt.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/lib/libssl/s3_clnt.c b/src/lib/libssl/s3_clnt.c
index e7741826ae..260154a097 100644
--- a/src/lib/libssl/s3_clnt.c
+++ b/src/lib/libssl/s3_clnt.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: s3_clnt.c,v 1.99 2014/12/10 15:43:31 jsing Exp $ */ 1/* $OpenBSD: s3_clnt.c,v 1.100 2014/12/14 14:34:43 jsing Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -465,14 +465,10 @@ ssl3_connect(SSL *s)
465 if (ret <= 0) 465 if (ret <= 0)
466 goto end; 466 goto end;
467 467
468#ifdef OPENSSL_NO_NEXTPROTONEG
469 s->state = SSL3_ST_CW_FINISHED_A;
470#else
471 if (s->s3->next_proto_neg_seen) 468 if (s->s3->next_proto_neg_seen)
472 s->state = SSL3_ST_CW_NEXT_PROTO_A; 469 s->state = SSL3_ST_CW_NEXT_PROTO_A;
473 else 470 else
474 s->state = SSL3_ST_CW_FINISHED_A; 471 s->state = SSL3_ST_CW_FINISHED_A;
475#endif
476 s->init_num = 0; 472 s->init_num = 0;
477 473
478 s->session->cipher = s->s3->tmp.new_cipher; 474 s->session->cipher = s->s3->tmp.new_cipher;
@@ -489,7 +485,6 @@ ssl3_connect(SSL *s)
489 485
490 break; 486 break;
491 487
492#ifndef OPENSSL_NO_NEXTPROTONEG
493 case SSL3_ST_CW_NEXT_PROTO_A: 488 case SSL3_ST_CW_NEXT_PROTO_A:
494 case SSL3_ST_CW_NEXT_PROTO_B: 489 case SSL3_ST_CW_NEXT_PROTO_B:
495 ret = ssl3_send_next_proto(s); 490 ret = ssl3_send_next_proto(s);
@@ -497,7 +492,6 @@ ssl3_connect(SSL *s)
497 goto end; 492 goto end;
498 s->state = SSL3_ST_CW_FINISHED_A; 493 s->state = SSL3_ST_CW_FINISHED_A;
499 break; 494 break;
500#endif
501 495
502 case SSL3_ST_CW_FINISHED_A: 496 case SSL3_ST_CW_FINISHED_A:
503 case SSL3_ST_CW_FINISHED_B: 497 case SSL3_ST_CW_FINISHED_B:
@@ -2634,7 +2628,6 @@ err:
2634 return (0); 2628 return (0);
2635} 2629}
2636 2630
2637#ifndef OPENSSL_NO_NEXTPROTONEG
2638int 2631int
2639ssl3_send_next_proto(SSL *s) 2632ssl3_send_next_proto(SSL *s)
2640{ 2633{
@@ -2658,7 +2651,6 @@ ssl3_send_next_proto(SSL *s)
2658 2651
2659 return (ssl3_do_write(s, SSL3_RT_HANDSHAKE)); 2652 return (ssl3_do_write(s, SSL3_RT_HANDSHAKE));
2660} 2653}
2661#endif /* !OPENSSL_NO_NEXTPROTONEG */
2662 2654
2663/* 2655/*
2664 * Check to see if handshake is full or resumed. Usually this is just a 2656 * Check to see if handshake is full or resumed. Usually this is just a