From b20140f86747e0570770e78a6fec220c7b77e1d0 Mon Sep 17 00:00:00 2001 From: anmaped Date: Sat, 15 Oct 2016 02:39:10 +0100 Subject: [PATCH] axTLS fails to aws iot with SSL_ERROR_INVALID_HANDSHAKE. It is a wrong OFFSET. (#27) --- ssl/tls1_clnt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssl/tls1_clnt.c b/ssl/tls1_clnt.c index 59db8c1d7..81738cfb4 100644 --- a/ssl/tls1_clnt.c +++ b/ssl/tls1_clnt.c @@ -350,7 +350,7 @@ static int process_server_hello(SSL *ssl) offset += 2; // ignore compression PARANOIA_CHECK(pkt_size, offset); - ssl->dc->bm_proc_index = offset+1; + ssl->dc->bm_proc_index = offset; PARANOIA_CHECK(pkt_size, offset); // no extensions