diff --git a/include/wolfboot/wolfboot.h b/include/wolfboot/wolfboot.h index b46bcd4d5..20d48ab0e 100644 --- a/include/wolfboot/wolfboot.h +++ b/include/wolfboot/wolfboot.h @@ -271,7 +271,7 @@ void wolfBoot_update_trigger(void); void wolfBoot_success(void); uint32_t wolfBoot_image_size(uint8_t *image); uint32_t wolfBoot_get_blob_version(uint8_t *blob); -uint32_t wolfBoot_get_blob_type(uint8_t *blob); +uint16_t wolfBoot_get_blob_type(uint8_t *blob); uint32_t wolfBoot_get_blob_diffbase_version(uint8_t *blob); /* Get partition ID from manifest header */ diff --git a/src/libwolfboot.c b/src/libwolfboot.c index f73c4c699..9d9c5490f 100644 --- a/src/libwolfboot.c +++ b/src/libwolfboot.c @@ -1075,9 +1075,9 @@ uint32_t wolfBoot_get_blob_version(uint8_t *blob) * * @return The type of the blob, or 0 if the blob is invalid. */ -uint32_t wolfBoot_get_blob_type(uint8_t *blob) +uint16_t wolfBoot_get_blob_type(uint8_t *blob) { - uint32_t *volatile type_field = NULL; + uint16_t *volatile type_field = NULL; uint32_t *magic = NULL; uint8_t *img_bin = blob; #if defined(EXT_ENCRYPTED) && defined(MMU)