Skip to content

Commit 4be40bc

Browse files
committed
Skip ':' inside SHA1 signatures in WiFiClientSecure.cpp .
Improves the convenience of the verification of fingerprints. As ':' are commonly inserted by web browser inside the SHA1 of https web sites, this created false problems with signatures "not matching". Now, copied and pasted signature from Firefox simply because the verify function will skipped them...
1 parent 4014f91 commit 4be40bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/ESP8266WiFi/src/WiFiClientSecure.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ bool WiFiClientSecure::verify(const char* fp, const char* url) {
327327
int len = strlen(fp);
328328
int pos = 0;
329329
for (size_t i = 0; i < sizeof(sha1); ++i) {
330-
while (pos < len && fp[pos] == ' ') {
330+
while (pos < len && ((fp[pos] == ' ') || (fp[pos] == ':'))) {
331331
++pos;
332332
}
333333
if (pos > len - 2) {

0 commit comments

Comments
 (0)