diff options
author | Matt Johnston <matt@ucc.asn.au> | 2013-11-14 21:36:45 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2013-11-14 21:36:45 +0800 |
commit | a65f84db38eebcde867ab4bfc5b916f61e95bfa2 (patch) | |
tree | d5c32671e64204b67b96dcbf2d9d2b828c11b7b9 /ecdsa.c | |
parent | 8c8ecec3e96525d498077da81084302371bab4da (diff) |
- Some fixes for old compilers like tru64 v4 from Daniel Richard G.
- Don't warn about blocking random device for prngd
Diffstat (limited to 'ecdsa.c')
-rw-r--r-- | ecdsa.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -36,6 +36,7 @@ enum signkey_type ecdsa_signkey_type(ecc_key * key) { ecc_key *gen_ecdsa_priv_key(unsigned int bit_size) { const ltc_ecc_set_type *dp = NULL; // curve domain parameters + ecc_key *new_key = NULL; switch (bit_size) { #ifdef DROPBEAR_ECC_256 case 256: @@ -67,7 +68,7 @@ ecc_key *gen_ecdsa_priv_key(unsigned int bit_size) { , bit_size); } - ecc_key *new_key = m_malloc(sizeof(*new_key)); + new_key = m_malloc(sizeof(*new_key)); if (ecc_make_key_ex(NULL, dropbear_ltc_prng, new_key, dp) != CRYPT_OK) { dropbear_exit("ECC error"); } |