mirror of https://github.com/wolfSSL/wolfBoot.git
Removed dead code
parent
6b5b1ed854
commit
2193dcf5b1
24
src/image.c
24
src/image.c
|
@ -86,30 +86,6 @@ static int wolfBoot_verify_signature(uint8_t *hash, uint8_t *sig)
|
|||
}
|
||||
#endif
|
||||
|
||||
#if 0
|
||||
static uint8_t find_header(uint8_t *haystack, uint8_t type, uint8_t **ptr)
|
||||
{
|
||||
uint8_t *p = haystack;
|
||||
while (*p != 0) {
|
||||
if (*p == HDR_PADDING) {
|
||||
p++;
|
||||
continue;
|
||||
}
|
||||
if (*p == type) {
|
||||
p++;
|
||||
*ptr = (p + 1);
|
||||
return *p;
|
||||
}
|
||||
p++;
|
||||
p += (*p + 1);
|
||||
}
|
||||
*ptr = NULL;
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
static uint8_t get_header_ext(struct wolfBoot_image *img, uint8_t type, uint8_t **ptr);
|
||||
|
||||
static uint8_t get_header(struct wolfBoot_image *img, uint8_t type, uint8_t **ptr)
|
||||
|
|
|
@ -228,7 +228,6 @@ void wolfBoot_success(void)
|
|||
hal_flash_lock();
|
||||
}
|
||||
|
||||
|
||||
uint8_t wolfBoot_find_header(uint8_t *haystack, uint8_t type, uint8_t **ptr)
|
||||
{
|
||||
uint8_t *p = haystack;
|
||||
|
|
Loading…
Reference in New Issue