Turn dropbear_ecc_curve's name into const char *

This commit is contained in:
Gaël PORTAY 2015-05-02 13:59:41 +02:00
parent 6b90885d4f
commit 449ddae628
2 changed files with 2 additions and 2 deletions

2
ecc.h
View File

@ -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;

View File

@ -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);
}