Skip to content

Commit 69311c8

Browse files
s-hadingerearlephilhower
authored andcommitted
Added BR_OPT_NO_RENEGOTIATION flag to forbid TLS renegociation (esp8266#6165)
1 parent 455583b commit 69311c8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -827,6 +827,7 @@ extern "C" {
827827
uint16_t suites[cipher_cnt];
828828
memcpy_P(suites, cipher_list, cipher_cnt * sizeof(cipher_list[0]));
829829
br_ssl_client_zero(cc);
830+
br_ssl_engine_add_flags(&cc->eng, BR_OPT_NO_RENEGOTIATION); // forbid SSL renegociation, as we free the Private Key after handshake
830831
br_ssl_engine_set_versions(&cc->eng, BR_TLS10, BR_TLS12);
831832
br_ssl_engine_set_suites(&cc->eng, suites, (sizeof suites) / (sizeof suites[0]));
832833
br_ssl_client_set_default_rsapub(cc);

0 commit comments

Comments
 (0)