File tree 2 files changed +12
-5
lines changed
libraries/ESP8266WiFi/src
2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change 1
1
#include " Updater.h"
2
- #include " Arduino.h"
3
2
#include " eboot_command.h"
4
3
#include < esp8266_peri.h>
5
4
11
10
#endif
12
11
13
12
#if ARDUINO_SIGNING
14
- #include " ../../libraries/ESP8266WiFi/src/BearSSLHelpers.h"
15
- static BearSSL::PublicKey signPubKey (signing_pubkey);
16
- static BearSSL::HashSHA256 hash;
17
- static BearSSL::SigningVerifier sign (&signPubKey);
13
+ extern UpdaterHashClass& hash;
14
+ extern UpdaterVerifyClass& sign;
18
15
#endif
19
16
20
17
extern " C" {
Original file line number Diff line number Diff line change @@ -900,4 +900,14 @@ make_stack_thunk(br_ssl_engine_sendrec_buf);
900
900
901
901
#endif
902
902
903
+ #if ARDUINO_SIGNING
904
+ namespace {
905
+ static PublicKey signPubKey (signing_pubkey);
906
+ static HashSHA256 __hash;
907
+ static SigningVerifier __sign (&signPubKey);
908
+ }
909
+ extern UpdaterHashClass& hash = __hash;
910
+ extern UpdaterVerifyClass& sign = __sign;
911
+ #endif
912
+
903
913
};
You can’t perform that action at this time.
0 commit comments