comparison ecdsa.c @ 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 c339657c9758
children aaf576b27a10
comparison
equal deleted inserted replaced
1106:2052b53d3034 1107:4f3335bba3d9
143 char key_ident[30]; 143 char key_ident[30];
144 144
145 curve = curve_for_dp(key->dp); 145 curve = curve_for_dp(key->dp);
146 snprintf(key_ident, sizeof(key_ident), "ecdsa-sha2-%s", curve->name); 146 snprintf(key_ident, sizeof(key_ident), "ecdsa-sha2-%s", curve->name);
147 buf_putstring(buf, (const unsigned char *) key_ident, strlen(key_ident)); 147 buf_putstring(buf, (const unsigned char *) key_ident, strlen(key_ident));
148 buf_putstring(buf, curve->name, strlen(curve->name)); 148 buf_putstring(buf, (const unsigned char *) curve->name, strlen(curve->name));
149 buf_put_ecc_raw_pubkey_string(buf, key); 149 buf_put_ecc_raw_pubkey_string(buf, key);
150 } 150 }
151 151
152 void buf_put_ecdsa_priv_key(buffer *buf, ecc_key *key) { 152 void buf_put_ecdsa_priv_key(buffer *buf, ecc_key *key) {
153 buf_put_ecdsa_pub_key(buf, key); 153 buf_put_ecdsa_pub_key(buf, key);