Skip to content

Commit 91427a1

Browse files
Keep client certs when server authentication set (esp8266#7464)
WiFiClientSecure.setInsecure() was clearing the secret key (but not the _chain public client cert) incorrectly. The other server authentication modes also had the same effect. The only way for it to work would be if the app first set the server authentication method and then the client keys. There's no good reason for this. Adjust the connection to only clear the server id methods and leave the client ID untouched. Fixes esp8266#7455
1 parent c3c61a5 commit 91427a1

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.cpp

-3
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,8 @@ void WiFiClientSecure::_clearAuthenticationSettings() {
9696
_use_fingerprint = false;
9797
_use_self_signed = false;
9898
_knownkey = nullptr;
99-
_sk = nullptr;
10099
_ta = nullptr;
101100
_axtls_ta = nullptr;
102-
_axtls_chain = nullptr;
103-
_axtls_sk = nullptr;
104101
}
105102

106103

0 commit comments

Comments
 (0)