Skip to content

Commit

Permalink
- Add required BearSSL include in header. (#7310)
Browse files Browse the repository at this point in the history
Co-authored-by: Anders <andlo151@student.liu.se>
  • Loading branch information
aerlon and aerlon authored May 18, 2020
1 parent 4519db8 commit 1b20cd6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions cores/esp8266/Crypto.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,9 @@
THE SOFTWARE.
*/

#include <bearssl/bearssl.h>
#include "Crypto.h"
#include <TypeConversion.h>

#include <bearssl/bearssl.h>
#include <assert.h>

namespace TypeCast = experimental::TypeConversion;
Expand Down
4 changes: 2 additions & 2 deletions cores/esp8266/Crypto.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#define __ESP8266_ARDUINO_CRYPTO_H__

#include <Arduino.h>
#include <bearssl/bearssl_kdf.h>

namespace experimental
{
Expand Down Expand Up @@ -745,8 +746,7 @@ struct HKDF

private:

// Use an opaque type to avoid #include <bearssl/bearssl.h> which drags the lib declarations into userland. The global scope prefix is required for compilation to succeed, it seems.
::br_hkdf_context hkdfContext;
br_hkdf_context hkdfContext;
};


Expand Down

0 comments on commit 1b20cd6

Please sign in to comment.