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;