mirror of
https://github.com/clearml/dropbear
synced 2025-01-31 02:46:58 +00:00
Turn dropbear_ecc_curve's name into const char *
This commit is contained in:
parent
6b90885d4f
commit
449ddae628
2
ecc.h
2
ecc.h
@ -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;
|
||||
|
2
ecdsa.c
2
ecdsa.c
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user