diff options
author | Thorsten Horstmann <thorsten.horstmann@web.de> | 2015-02-24 20:51:18 +0800 |
---|---|---|
committer | Thorsten Horstmann <thorsten.horstmann@web.de> | 2015-02-24 20:51:18 +0800 |
commit | ab9439519ac3ca1ce5b273587544da3494f87308 (patch) | |
tree | 0d26af69620cabf404afe2fac5e66a924323578f /keyimport.c | |
parent | abeb9d64a398cb38348f95b8d93b888f4e726cd0 (diff) |
Fix for old compilers, variable declarations at beginning of functions
and /**/ comments
Diffstat (limited to 'keyimport.c')
-rw-r--r-- | keyimport.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/keyimport.c b/keyimport.c index 6f2634f..54eb5c3 100644 --- a/keyimport.c +++ b/keyimport.c @@ -1046,6 +1046,7 @@ static int openssh_write(const char *filename, sign_key *key, const void* curve_oid = NULL; unsigned long pubkey_size = 2*curve_size+1; unsigned int k_size; + int err = 0; /* version. less than 10 bytes */ buf_incrwritepos(seq_buf, @@ -1091,7 +1092,7 @@ static int openssh_write(const char *filename, sign_key *key, buf_incrwritepos(seq_buf, ber_write_id_len(buf_getwriteptr(seq_buf, 10), 3, 1+pubkey_size, 0)); buf_putbyte(seq_buf, 0); - int err = ecc_ansi_x963_export(*eck, buf_getwriteptr(seq_buf, pubkey_size), &pubkey_size); + err = ecc_ansi_x963_export(*eck, buf_getwriteptr(seq_buf, pubkey_size), &pubkey_size); if (err != CRYPT_OK) { dropbear_exit("ECC error"); } |