# HG changeset patch # User Francois Perrad # Date 1451636450 -3600 # Node ID 139935236c72ded48e28cf18a91d29907fe614d0 # Parent bdc28287f077324d060248eccaaabb2799943d0a const variables diff -r bdc28287f077 -r 139935236c72 common-algo.c --- a/common-algo.c Fri Jan 01 09:15:41 2016 +0100 +++ b/common-algo.c Fri Jan 01 09:20:50 2016 +0100 @@ -265,13 +265,13 @@ ecc_curve at runtime */ #ifdef DROPBEAR_ECDH #ifdef DROPBEAR_ECC_256 -static struct dropbear_kex kex_ecdh_nistp256 = {DROPBEAR_KEX_ECDH, NULL, 0, &ecc_curve_nistp256, &sha256_desc }; +static const struct dropbear_kex kex_ecdh_nistp256 = {DROPBEAR_KEX_ECDH, NULL, 0, &ecc_curve_nistp256, &sha256_desc }; #endif #ifdef DROPBEAR_ECC_384 -static struct dropbear_kex kex_ecdh_nistp384 = {DROPBEAR_KEX_ECDH, NULL, 0, &ecc_curve_nistp384, &sha384_desc }; +static const struct dropbear_kex kex_ecdh_nistp384 = {DROPBEAR_KEX_ECDH, NULL, 0, &ecc_curve_nistp384, &sha384_desc }; #endif #ifdef DROPBEAR_ECC_521 -static struct dropbear_kex kex_ecdh_nistp521 = {DROPBEAR_KEX_ECDH, NULL, 0, &ecc_curve_nistp521, &sha512_desc }; +static const struct dropbear_kex kex_ecdh_nistp521 = {DROPBEAR_KEX_ECDH, NULL, 0, &ecc_curve_nistp521, &sha512_desc }; #endif #endif /* DROPBEAR_ECDH */ diff -r bdc28287f077 -r 139935236c72 signkey.c --- a/signkey.c Fri Jan 01 09:15:41 2016 +0100 +++ b/signkey.c Fri Jan 01 09:20:50 2016 +0100 @@ -29,7 +29,7 @@ #include "ssh.h" #include "ecdsa.h" -static const char *signkey_names[DROPBEAR_SIGNKEY_NUM_NAMED] = { +static const char * const signkey_names[DROPBEAR_SIGNKEY_NUM_NAMED] = { #ifdef DROPBEAR_RSA "ssh-rsa", #endif