8000 Fix reverse dependency core Updater -> library ESP8266WiFi by dok-net · Pull Request #6398 · esp8266/Arduino · GitHub
[go: up one dir, main page]

Skip to content

Fix reverse dependency core Updater -> library ESP8266WiFi #6398

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Aug 28, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
After review remarks by @earlephilhower
  • Loading branch information
dok-net committed Aug 18, 2019
commit e7232da7a6593a42cbed68c98de7e9aceb474489
6 changes: 3 additions & 3 deletions cores/esp8266/Updater.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

#if ARDUINO_SIGNING
namespace esp8266 {
extern UpdaterHashClass& hash;
extern UpdaterVerifyClass& sign;
extern UpdaterHashClass& updaterSigningHash;
extern UpdaterVerifyClass& updaterSigningVerifier;
}
#endif

Expand All @@ -38,7 +38,7 @@ UpdaterClass::UpdaterClass()
, _progress_callback(nullptr)
{
#if ARDUINO_SIGNING
installSignature(&esp8266::hash, &esp8266::sign);
installSignature(&esp8266::updaterSigningHash, &esp8266::updaterSigningVerifier);
#endif
}

Expand Down
10 changes: 5 additions & 5 deletions libraries/ESP8266WiFi/src/BearSSLHelpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -908,14 +908,14 @@ make_stack_thunk(br_ssl_engine_sendrec_buf);

#if ARDUINO_SIGNING
namespace {
static BearSSL::PublicKey signPubKey(signing_pubkey);
static BearSSL::HashSHA256 __hash;
static BearSSL::SigningVerifier __sign(&signPubKey);
static BearSSL::PublicKey signingPubKey(signing_pubkey);
static BearSSL::HashSHA256 __signingHash;
static BearSSL::SigningVerifier __signingVerifier(&signingPubKey);
};

namespace esp8266 {
UpdaterHashClass& hash = __hash;
UpdaterVerifyClass& sign = __sign;
UpdaterHashClass& updaterSigningHash = __signingHash;
UpdaterVerifyClass& updaterSigningVerifier = __signingVerifier;
};
#endif

0