Skip to content
Snippets Groups Projects
Commit 449ddae6 authored by Gaël PORTAY's avatar Gaël PORTAY
Browse files

Turn dropbear_ecc_curve's name into const char *

parent 6b90885d
Branches
Tags
No related merge requests found
......@@ -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);
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment