1
0
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:
Earle F. Philhower, III 2020-07-17 14:02:17 -07:00 committed by GitHub
parent c3c61a5f75
commit 91427a1695
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
} }