# HG changeset patch
# User Gaƫl PORTAY <gael.portay@gmail.com>
# Date 1430567981 -7200
# Node ID 4f3335bba3d9ed991eba5f7d020935d604e4cd20
# Parent  2052b53d3034f0604c730e54eca491473139a282
Turn dropbear_ecc_curve's name into const char *

diff -r 2052b53d3034 -r 4f3335bba3d9 ecc.h
--- a/ecc.h	Sat May 02 22:37:08 2015 +0200
+++ b/ecc.h	Sat May 02 13:59:41 2015 +0200
@@ -12,7 +12,7 @@
 	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;
diff -r 2052b53d3034 -r 4f3335bba3d9 ecdsa.c
--- 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);
 }