aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls/tlsv1_common.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2011-11-27 20:33:54 (GMT)
committerJouni Malinen <j@w1.fi>2011-11-27 20:33:54 (GMT)
commitcdc6e5d0840c9c44e47b63a6740ecb20c6fe6865 (patch)
treeacfa6ad1e22c15d9c75f666bde22151a1d5344bd /src/tls/tlsv1_common.c
parent48f24f93a5d58464baf694ac1786340760a91a84 (diff)
downloadhostap-cdc6e5d0840c9c44e47b63a6740ecb20c6fe6865.zip
hostap-cdc6e5d0840c9c44e47b63a6740ecb20c6fe6865.tar.gz
hostap-cdc6e5d0840c9c44e47b63a6740ecb20c6fe6865.tar.bz2
TLS: Add support for SHA256-based cipher suites from RFC 5246
Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src/tls/tlsv1_common.c')
-rw-r--r--src/tls/tlsv1_common.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/tls/tlsv1_common.c b/src/tls/tlsv1_common.c
index 17fc8a1..871359a 100644
--- a/src/tls/tlsv1_common.c
+++ b/src/tls/tlsv1_common.c
@@ -52,7 +52,15 @@ static const struct tls_cipher_suite tls_cipher_suites[] = {
{ TLS_RSA_WITH_AES_256_CBC_SHA, TLS_KEY_X_RSA, TLS_CIPHER_AES_256_CBC,
TLS_HASH_SHA },
{ TLS_DH_anon_WITH_AES_256_CBC_SHA, TLS_KEY_X_DH_anon,
- TLS_CIPHER_AES_256_CBC, TLS_HASH_SHA }
+ TLS_CIPHER_AES_256_CBC, TLS_HASH_SHA },
+ { TLS_RSA_WITH_AES_128_CBC_SHA256, TLS_KEY_X_RSA,
+ TLS_CIPHER_AES_128_CBC, TLS_HASH_SHA256 },
+ { TLS_RSA_WITH_AES_256_CBC_SHA256, TLS_KEY_X_RSA,
+ TLS_CIPHER_AES_256_CBC, TLS_HASH_SHA256 },
+ { TLS_DH_anon_WITH_AES_128_CBC_SHA256, TLS_KEY_X_DH_anon,
+ TLS_CIPHER_AES_128_CBC, TLS_HASH_SHA256 },
+ { TLS_DH_anon_WITH_AES_256_CBC_SHA256, TLS_KEY_X_DH_anon,
+ TLS_CIPHER_AES_256_CBC, TLS_HASH_SHA256 }
};
#define NUM_ELEMS(a) (sizeof(a) / sizeof((a)[0]))