diff 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
line wrap: on
line diff
--- a/ecdsa.c	Sat May 02 22:37:08 2015 +0200
+++ b/ecdsa.c	Sat May 02 13:59:41 2015 +0200
@@ -145,7 +145,7 @@
 	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);
 }