Skip to content

Commit 11e5bee

Browse files
Merge pull request #407 from philljj/tiny_cleanup_xmss
xmss_example: tiny cleanup to match g++ warning fix.
2 parents 1e1e79d + ae6318e commit 11e5bee

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

pq/stateful_hash_sig/xmss_example.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,11 @@
3232
static void dump_hex(const char * what, const uint8_t * buf, size_t len);
3333
static void print_usage(void);
3434
#if !defined WOLFSSL_XMSS_VERIFY_ONLY
35-
static int write_key_file(const byte * priv, word32 privSz, void * context);
36-
static int read_key_file(byte * priv, word32 privSz, void * context);
3735
static int do_xmss_example(const char * params, size_t sigs_to_do);
36+
static enum wc_XmssRc write_key_file(const byte * priv, word32 privSz,
37+
void * context);
38+
static enum wc_XmssRc read_key_file(byte * priv, word32 privSz, void * context);
39+
3840

3941
static WC_RNG rng;
4042
static byte * read_buf = NULL;
@@ -85,7 +87,7 @@ print_usage(void)
8587
exit(EXIT_FAILURE);
8688
}
8789

88-
static int
90+
enum wc_XmssRc
8991
write_key_file(const byte * priv,
9092
word32 privSz,
9193
void * context)
@@ -152,7 +154,7 @@ write_key_file(const byte * priv,
152154
return WC_XMSS_RC_SAVED_TO_NV_MEMORY;
153155
}
154156

155-
static int
157+
enum wc_XmssRc
156158
read_key_file(byte * priv,
157159
word32 privSz,
158160
void * context)

0 commit comments

Comments
 (0)