TLS: Add support for TLS v1.1 (RFC 4346) with internal TLS

This is disabled by defautl and can be enabled with CONFIG_TLSV11=y
build configuration parameter.
This commit is contained in:
Jouni Malinen 2011-09-25 17:24:46 +03:00
parent 3bff59f857
commit 5c47af9a7a
13 changed files with 157 additions and 32 deletions

View file

@ -1,6 +1,6 @@
/*
* TLSv1 Record Protocol
* Copyright (c) 2006-2007, Jouni Malinen <j@w1.fi>
* TLS v1.0 (RFC 2246) and v1.1 (RFC 4346) Record Protocol
* Copyright (c) 2006-2011, Jouni Malinen <j@w1.fi>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
@ -35,6 +35,8 @@ enum {
};
struct tlsv1_record_layer {
u16 tls_version;
u8 write_mac_secret[TLS_MAX_WRITE_MAC_SECRET_LEN];
u8 read_mac_secret[TLS_MAX_WRITE_MAC_SECRET_LEN];
u8 write_key[TLS_MAX_WRITE_KEY_LEN];