diff options
author | Matt Johnston <matt@ucc.asn.au> | 2016-03-15 21:41:06 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2016-03-15 21:41:06 +0800 |
commit | 645b2541732cebbccd499c4e8bf18f86d77bff0f (patch) | |
tree | 3e6f647d212466933d744e47dcdbcf97ff00ecfc /keyimport.c | |
parent | fdc61f3ab2c07f3f8d0546ee83b1a6776cc1786e (diff) | |
parent | 9bda22e70219c3056c07837803d0289b76453adb (diff) |
Merge branch '20151231_indent' of https://github.com/fperrad/dropbear into fperrad-20151231_indent
Diffstat (limited to 'keyimport.c')
-rw-r--r-- | keyimport.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/keyimport.c b/keyimport.c index d45914f..66a6df7 100644 --- a/keyimport.c +++ b/keyimport.c @@ -194,13 +194,13 @@ static void base64_encode_fp(FILE * fp, unsigned char *data, int datalen, int cpl) { unsigned char out[100]; - int n; + int n; unsigned long outlen; int rawcpl; rawcpl = cpl * 3 / 4; dropbear_assert((unsigned int)cpl < sizeof(out)); - while (datalen > 0) { + while (datalen > 0) { n = (datalen < rawcpl ? datalen : rawcpl); outlen = sizeof(out); base64_encode(data, n, out, &outlen); @@ -208,7 +208,7 @@ static void base64_encode_fp(FILE * fp, unsigned char *data, datalen -= n; fwrite(out, 1, outlen, fp); fputc('\n', fp); - } + } } /* * Read an ASN.1/BER identifier and length pair. @@ -1056,7 +1056,7 @@ static int openssh_write(const char *filename, sign_key *key, dropbear_assert(k_size <= curve_size); buf_incrwritepos(seq_buf, ber_write_id_len(buf_getwriteptr(seq_buf, 10), 4, k_size, 0)); - mp_to_unsigned_bin((*eck)->k, buf_getwriteptr(seq_buf, k_size)); + mp_to_unsigned_bin((*eck)->k, buf_getwriteptr(seq_buf, k_size)); buf_incrwritepos(seq_buf, k_size); /* SECGCurveNames */ |