mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-19 23:22:16 +03:00
Keep client certs when server authentication set (#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 #7455
This commit is contained in:
parent
c3c61a5f75
commit
91427a1695
@ -96,11 +96,8 @@ void WiFiClientSecure::_clearAuthenticationSettings() {
|
|||||||
_use_fingerprint = false;
|
_use_fingerprint = false;
|
||||||
_use_self_signed = false;
|
_use_self_signed = false;
|
||||||
_knownkey = nullptr;
|
_knownkey = nullptr;
|
||||||
_sk = nullptr;
|
|
||||||
_ta = nullptr;
|
_ta = nullptr;
|
||||||
_axtls_ta = nullptr;
|
_axtls_ta = nullptr;
|
||||||
_axtls_chain = nullptr;
|
|
||||||
_axtls_sk = nullptr;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user