1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-19 23:22:16 +03:00

- Add required BearSSL include in header. (#7310)

Co-authored-by: Anders <andlo151@student.liu.se>
This commit is contained in:
aerlon 2020-05-18 19:54:25 +02:00 committed by GitHub
parent 4519db85e9
commit 1b20cd6263
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 4 deletions

View File

@ -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;

View File

@ -27,6 +27,7 @@
#define __ESP8266_ARDUINO_CRYPTO_H__
#include <Arduino.h>
#include <bearssl/bearssl_kdf.h>
namespace experimental
{
@ -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;
};