TLS: Allow TLS v1.2 to be negotiated
Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
f0b1c5f7b3
commit
4b919be289
1 changed files with 4 additions and 0 deletions
|
@ -99,6 +99,10 @@ static int tls_process_client_hello(struct tlsv1_server *conn, u8 ct,
|
||||||
|
|
||||||
if (TLS_VERSION == TLS_VERSION_1)
|
if (TLS_VERSION == TLS_VERSION_1)
|
||||||
conn->rl.tls_version = TLS_VERSION_1;
|
conn->rl.tls_version = TLS_VERSION_1;
|
||||||
|
#ifdef CONFIG_TLSV12
|
||||||
|
else if (conn->client_version >= TLS_VERSION_1_2)
|
||||||
|
conn->rl.tls_version = TLS_VERSION_1_2;
|
||||||
|
#endif /* CONFIG_TLSV12 */
|
||||||
else if (conn->client_version > TLS_VERSION_1_1)
|
else if (conn->client_version > TLS_VERSION_1_1)
|
||||||
conn->rl.tls_version = TLS_VERSION_1_1;
|
conn->rl.tls_version = TLS_VERSION_1_1;
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Reference in a new issue