summaryrefslogtreecommitdiff
path: root/src/lib/libssl/s3_srvr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl/s3_srvr.c')
-rw-r--r--src/lib/libssl/s3_srvr.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/lib/libssl/s3_srvr.c b/src/lib/libssl/s3_srvr.c
index d734c359fb..c3b5ff33ff 100644
--- a/src/lib/libssl/s3_srvr.c
+++ b/src/lib/libssl/s3_srvr.c
@@ -258,7 +258,6 @@ int ssl3_accept(SSL *s)
258 } 258 }
259 259
260 s->init_num=0; 260 s->init_num=0;
261 s->s3->flags &= ~SSL3_FLAGS_SGC_RESTART_DONE;
262 261
263 if (s->state != SSL_ST_RENEGOTIATE) 262 if (s->state != SSL_ST_RENEGOTIATE)
264 { 263 {
@@ -756,14 +755,6 @@ int ssl3_check_client_hello(SSL *s)
756 int ok; 755 int ok;
757 long n; 756 long n;
758 757
759 /* We only allow the client to restart the handshake once per
760 * negotiation. */
761 if (s->s3->flags & SSL3_FLAGS_SGC_RESTART_DONE)
762 {
763 SSLerr(SSL_F_SSL3_CHECK_CLIENT_HELLO, SSL_R_MULTIPLE_SGC_RESTARTS);
764 return -1;
765 }
766
767 /* this function is called when we really expect a Certificate message, 758 /* this function is called when we really expect a Certificate message,
768 * so permit appropriate message length */ 759 * so permit appropriate message length */
769 n=s->method->ssl_get_message(s, 760 n=s->method->ssl_get_message(s,
@@ -792,7 +783,6 @@ int ssl3_check_client_hello(SSL *s)
792 s->s3->tmp.ecdh = NULL; 783 s->s3->tmp.ecdh = NULL;
793 } 784 }
794#endif 785#endif
795 s->s3->flags |= SSL3_FLAGS_SGC_RESTART_DONE;
796 return 2; 786 return 2;
797 } 787 }
798 return 1; 788 return 1;
@@ -2140,7 +2130,6 @@ int ssl3_get_client_key_exchange(SSL *s)
2140 if (i <= 0) 2130 if (i <= 0)
2141 { 2131 {
2142 SSLerr(SSL_F_SSL3_GET_CLIENT_KEY_EXCHANGE,ERR_R_DH_LIB); 2132 SSLerr(SSL_F_SSL3_GET_CLIENT_KEY_EXCHANGE,ERR_R_DH_LIB);
2143 BN_clear_free(pub);
2144 goto err; 2133 goto err;
2145 } 2134 }
2146 2135