Mercurial > dropbear
changeset 1107:4f3335bba3d9
Turn dropbear_ecc_curve's name into const char *
author | Gaël PORTAY <gael.portay@gmail.com> |
---|---|
date | Sat, 02 May 2015 13:59:41 +0200 |
parents | 2052b53d3034 |
children | 2ebf450edc2d |
files | ecc.h ecdsa.c |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/ecc.h Sat May 02 22:37:08 2015 +0200 +++ b/ecc.h Sat May 02 13:59:41 2015 +0200 @@ -12,7 +12,7 @@ int ltc_size; /* to match the byte sizes in ltc_ecc_sets[] */ const ltc_ecc_set_type *dp; /* curve domain parameters */ const struct ltc_hash_descriptor *hash_desc; - const unsigned char *name; + const char *name; }; extern struct dropbear_ecc_curve ecc_curve_nistp256;
--- a/ecdsa.c Sat May 02 22:37:08 2015 +0200 +++ b/ecdsa.c Sat May 02 13:59:41 2015 +0200 @@ -145,7 +145,7 @@ curve = curve_for_dp(key->dp); snprintf(key_ident, sizeof(key_ident), "ecdsa-sha2-%s", curve->name); buf_putstring(buf, (const unsigned char *) key_ident, strlen(key_ident)); - buf_putstring(buf, curve->name, strlen(curve->name)); + buf_putstring(buf, (const unsigned char *) curve->name, strlen(curve->name)); buf_put_ecc_raw_pubkey_string(buf, key); }