diff options
author | Gaël PORTAY <gael.portay@gmail.com> | 2015-05-02 13:59:41 +0200 |
---|---|---|
committer | Gaël PORTAY <gael.portay@gmail.com> | 2015-05-05 20:39:14 +0200 |
commit | 449ddae628ea23f8b1e7179ab3ff2c81cffa57a0 (patch) | |
tree | ea0d73683635308bff95cd84127d1afc4b88944b | |
parent | 6b90885d4f8699e8607481422a43ec72fa84f295 (diff) |
Turn dropbear_ecc_curve's name into const char *
-rw-r--r-- | ecc.h | 2 | ||||
-rw-r--r-- | ecdsa.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -12,7 +12,7 @@ struct dropbear_ecc_curve { 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; @@ -145,7 +145,7 @@ void buf_put_ecdsa_pub_key(buffer *buf, ecc_key *key) { 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); } |