mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-29 05:21:37 +03:00
Fixed variable length macs used by gnutls.
git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@205 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
This commit is contained in:
@ -124,9 +124,10 @@ static int process_client_hello(SSL *ssl)
|
||||
|
||||
/* should be v3.1 (TLSv1) or better - we'll send in v3.1 mode anyway */
|
||||
uint8_t version = (record_buf[1] << 4) + record_buf[2];
|
||||
|
||||
if (version > SSL_PROTOCOL_VERSION)
|
||||
version = SSL_PROTOCOL_VERSION;
|
||||
else if (ssl->version < SSL_PROTOCOL_MIN_VERSION)
|
||||
else if (version < SSL_PROTOCOL_MIN_VERSION)
|
||||
{
|
||||
ret = SSL_ERROR_INVALID_VERSION;
|
||||
ssl_display_error(ret);
|
||||
|
Reference in New Issue
Block a user