From 6ade24305bafaf337cc22022115d6cb39f7f4f0f Mon Sep 17 00:00:00 2001 From: Eric Blankenhorn Date: Thu, 13 Apr 2023 10:24:10 -0500 Subject: [PATCH] Cleanup signature example --- signature/README.md | 2 +- signature/signature.c | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/signature/README.md b/signature/README.md index 2b24229c..12880458 100644 --- a/signature/README.md +++ b/signature/README.md @@ -11,7 +11,7 @@ This example creates a signature from a hash of the file and signs it using a ge ``` $ make -$ ./firmware [filename] [sig] [hash] +$ ./signature [filename] [sig] [hash] ``` ## Usage diff --git a/signature/signature.c b/signature/signature.c index 3d8a09f2..966b12d2 100644 --- a/signature/signature.c +++ b/signature/signature.c @@ -19,7 +19,9 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ -#include +#ifndef WOLFSSL_USER_SETTINGS + #include +#endif #include #include @@ -395,7 +397,7 @@ int main(int argc, char** argv) int ret = 0; int fileLen; byte* fileBuf = NULL; - int verifyFileLen; + int verifyFileLen = 0; byte* verifyFileBuf = NULL; const char* verify_file = NULL; enum wc_SignatureType sig_type = WC_SIGNATURE_TYPE_NONE;