Skip to content

Commit 6ade243

Browse files
committed
Cleanup signature example
1 parent ccfd909 commit 6ade243

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

signature/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This example creates a signature from a hash of the file and signs it using a ge
1111

1212
```
1313
$ make
14-
$ ./firmware [filename] [sig] [hash]
14+
$ ./signature [filename] [sig] [hash]
1515
```
1616

1717
## Usage

signature/signature.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
2020
*/
2121

22-
#include <wolfssl/options.h>
22+
#ifndef WOLFSSL_USER_SETTINGS
23+
#include <wolfssl/options.h>
24+
#endif
2325

2426
#include <wolfssl/ssl.h>
2527
#include <wolfssl/wolfcrypt/ecc.h>
@@ -395,7 +397,7 @@ int main(int argc, char** argv)
395397
int ret = 0;
396398
int fileLen;
397399
byte* fileBuf = NULL;
398-
int verifyFileLen;
400+
int verifyFileLen = 0;
399401
byte* verifyFileBuf = NULL;
400402
const char* verify_file = NULL;
401403
enum wc_SignatureType sig_type = WC_SIGNATURE_TYPE_NONE;

0 commit comments

Comments
 (0)