1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-29 05:21:37 +03:00

Client version number comes from client hello and not the record layer. This was causing issues in Chrome

git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@229 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
This commit is contained in:
cameronrich
2013-01-06 12:38:42 +00:00
parent df4606a991
commit f74c9cafca
2 changed files with 3 additions and 4 deletions

View File

@ -122,7 +122,7 @@ static int process_client_hello(SSL *ssl)
int i, j, cs_len, id_len, offset = 6 + SSL_RANDOM_SIZE;
int ret = SSL_OK;
uint8_t version = (record_buf[1] << 4) + record_buf[2];
uint8_t version = (buf[4] << 4) + buf[5];
ssl->version = ssl->client_version = version;
if (version > SSL_PROTOCOL_VERSION_MAX)