diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-08-04 00:29:19 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-08-04 00:29:19 +0300 |
commit | e33d2383d1ed4805583e6562b2f47e018457e854 (patch) | |
tree | 2a9807551752c0557b34746519413a009c90089c /esp8266/etshal.h | |
parent | bf47b71b787657eca1d489f92517aa60c9a38008 (diff) |
esp8266/modesp: Add check_fw() function to check integrity of the firmware.
Requires firmware generated by the latest makeimg.py (which stores size
and md5 of the firmware together with the firmware itself).
Diffstat (limited to 'esp8266/etshal.h')
-rw-r--r-- | esp8266/etshal.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/esp8266/etshal.h b/esp8266/etshal.h index 0185a9e22..dd61ddec9 100644 --- a/esp8266/etshal.h +++ b/esp8266/etshal.h @@ -20,6 +20,13 @@ void ets_timer_arm_new(os_timer_t *tim, uint32_t millis, bool repeat, bool is_mi void ets_timer_setfn(os_timer_t *tim, ETSTimerFunc callback, void *cb_data); void ets_timer_disarm(os_timer_t *tim); +// Opaque structure +typedef char MD5_CTX[64]; + +void MD5Init(MD5_CTX *context); +void MD5Update(MD5_CTX *context, const void *data, unsigned int len); +void MD5Final(unsigned char digest[16], MD5_CTX *context); + // These prototypes are for recent SDKs with "malloc tracking" void *pvPortMalloc(unsigned sz, const char *fname, int line); void vPortFree(void *p, const char *fname, int line); |