File tree 2 files changed +13
-8
lines changed
libraries/ESP8266WiFi/src
2 files changed +13
-8
lines changed Original file line number Diff line number Diff line change 10
10
#endif
11
11
12
12
#if ARDUINO_SIGNING
13
- namespace BearSSL {
13
+ namespace esp8266 {
14
14
extern UpdaterHashClass& hash;
15
15
extern UpdaterVerifyClass& sign;
16
16
}
@@ -38,7 +38,7 @@ UpdaterClass::UpdaterClass()
38
38
, _progress_callback(nullptr )
39
39
{
40
40
#if ARDUINO_SIGNING
41
- installSignature (&BearSSL ::hash, &BearSSL ::sign);
41
+ installSignature (&esp8266 ::hash, &esp8266 ::sign);
42
42
#endif
43
43
}
44
44
Original file line number Diff line number Diff line change @@ -904,13 +904,18 @@ make_stack_thunk(br_ssl_engine_sendrec_buf);
904
904
905
905
#endif
906
906
907
+ };
908
+
907
909
#if ARDUINO_SIGNING
908
- static PublicKey signPubKey (signing_pubkey);
909
- static HashSHA256 __hash;
910
- static SigningVerifier __sign (&signPubKey);
910
+ namespace {
911
+ static BearSSL::PublicKey signPubKey (signing_pubkey);
912
+ static BearSSL::HashSHA256 __hash;
913
+ static BearSSL::SigningVerifier __sign (&signPubKey);
914
+ };
911
915
912
- UpdaterHashClass& hash = __hash;
913
- UpdaterVerifyClass& sign = __sign;
916
+ namespace esp8266 {
917
+ UpdaterHashClass& hash = __hash;
918
+ UpdaterVerifyClass& sign = __sign;
919
+ };
914
920
#endif
915
921
916
- };
You can’t perform that action at this time.
0 commit comments