Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion signature/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 4 additions & 2 deletions signature/signature.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/

#include <wolfssl/options.h>
#ifndef WOLFSSL_USER_SETTINGS
#include <wolfssl/options.h>
#endif

#include <wolfssl/ssl.h>
#include <wolfssl/wolfcrypt/ecc.h>
Expand Down Expand Up @@ -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;
Expand Down