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-12-12 02:04:54 +0300
committerAdam Langley <agl@google.com>2014-12-14 01:30:08 +0300
commit138c2ac627cee80ef2bea4536f9da42c2d22e8dd (patch)
treeeab5ad327a2d24e15cea1f5559b916a797819da7 /ssl/d1_clnt.c
parent28014cb4f29ca235dbb12bc0cef601e1500977ef (diff)
Drop unnecessary version checks.
These may as well be replaced with assertions. Get them out of the way of the initialization. Change-Id: Ie4ab8bdc018e4a1def7d3f6b3b172a77896bfc0a Reviewed-on: https://boringssl-review.googlesource.com/2563 Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'ssl/d1_clnt.c')
-rw-r--r--ssl/d1_clnt.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/ssl/d1_clnt.c b/ssl/d1_clnt.c
index 746f2600..c787167a 100644
--- a/ssl/d1_clnt.c
+++ b/ssl/d1_clnt.c
@@ -137,6 +137,7 @@ int dtls1_connect(SSL *s)
assert(s->handshake_func == dtls1_connect);
assert(!s->server);
+ assert(SSL_IS_DTLS(s));
ERR_clear_error();
ERR_clear_system_error();
@@ -164,13 +165,6 @@ int dtls1_connect(SSL *s)
if (cb != NULL) cb(s,SSL_CB_HANDSHAKE_START,1);
- if ((s->version & 0xff00 ) != (DTLS1_VERSION & 0xff00))
- {
- OPENSSL_PUT_ERROR(SSL, dtls1_connect, ERR_R_INTERNAL_ERROR);
- ret = -1;
- goto end;
- }
-
if (s->init_buf == NULL)
{
if ((buf=BUF_MEM_new()) == NULL)