mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-12 01:53:07 +03:00
Fix connection options and update github pubkey (#5120)
As part of the "clear connection configuration for reused objects" patch, a ::stop would reset the self-signed, trust anchors, etc. WiFiClient, unfortunately, calls ::stop as part of the connection process, so all of these settings were lost. Now only clear the connection settings on ::stop if we've already been connected. Also update the github public key which changed yet again. Fixes #5086
This commit is contained in:
committed by
Develo
parent
991d738176
commit
cd43337f4f
@ -179,7 +179,10 @@ void WiFiClientSecure::stop() {
|
||||
_client->abort();
|
||||
}
|
||||
WiFiClient::stop();
|
||||
_clearAuthenticationSettings();
|
||||
// Only if we've already connected, clear the connection options
|
||||
if (_handshake_done) {
|
||||
_clearAuthenticationSettings();
|
||||
}
|
||||
_freeSSL();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user