Mercurial > dropbear
diff keyimport.c @ 1250:2bb4c662d1c2
more hard tab
author | Francois Perrad <francois.perrad@gadz.org> |
---|---|
date | Fri, 01 Jan 2016 15:02:09 +0100 |
parents | 6aeadee3f16b |
children | 56aba7dedbea 34e6127ef02e |
line wrap: on
line diff
--- a/keyimport.c Thu Dec 31 15:59:01 2015 +0100 +++ b/keyimport.c Fri Jan 01 15:02:09 2016 +0100 @@ -194,13 +194,13 @@ 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 @@ datalen -= n; fwrite(out, 1, outlen, fp); fputc('\n', fp); - } + } } /* * Read an ASN.1/BER identifier and length pair. @@ -1056,7 +1056,7 @@ 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 */