forked from espressif/esp-idf
wpa_supplicant: more wpa2_enterprise fixes
Merges https://github.com/espressif/esp-idf/pull/2386 Closes https://github.com/espressif/esp-idf/issues/2383 Closes https://github.com/espressif/esp-idf/issues/2381
This commit is contained in:
committed by
Ivan Grokhotkov
parent
91f579d714
commit
171f54bd7e
@@ -363,7 +363,9 @@ struct tlsv1_server * tlsv1_server_init(struct tlsv1_credentials *cred)
|
||||
suites = conn->cipher_suites;
|
||||
suites[count++] = TLS_RSA_WITH_AES_256_CBC_SHA;
|
||||
suites[count++] = TLS_RSA_WITH_AES_128_CBC_SHA;
|
||||
#ifdef CONFIG_DES3
|
||||
suites[count++] = TLS_RSA_WITH_3DES_EDE_CBC_SHA;
|
||||
#endif
|
||||
suites[count++] = TLS_RSA_WITH_RC4_128_SHA;
|
||||
suites[count++] = TLS_RSA_WITH_RC4_128_MD5;
|
||||
conn->num_cipher_suites = count;
|
||||
@@ -471,12 +473,16 @@ int tlsv1_server_get_cipher(struct tlsv1_server *conn, char *buf,
|
||||
case TLS_RSA_WITH_RC4_128_SHA:
|
||||
cipher = "RC4-SHA";
|
||||
break;
|
||||
#ifdef CONFIG_DES
|
||||
case TLS_RSA_WITH_DES_CBC_SHA:
|
||||
cipher = "DES-CBC-SHA";
|
||||
break;
|
||||
#endif
|
||||
#ifdef CONFIG_DES3
|
||||
case TLS_RSA_WITH_3DES_EDE_CBC_SHA:
|
||||
cipher = "DES-CBC3-SHA";
|
||||
break;
|
||||
#endif
|
||||
case TLS_DH_anon_WITH_AES_128_CBC_SHA:
|
||||
cipher = "ADH-AES-128-SHA";
|
||||
break;
|
||||
|
Reference in New Issue
Block a user