comparison common-algo.c @ 1273:139935236c72

const variables
author Francois Perrad <francois.perrad@gadz.org>
date Fri, 01 Jan 2016 09:20:50 +0100
parents 739b3909c499
children 56aba7dedbea eed9376a4ad6
comparison
equal deleted inserted replaced
1272:bdc28287f077 1273:139935236c72
263 263
264 /* These can't be const since dropbear_ecc_fill_dp() fills out 264 /* These can't be const since dropbear_ecc_fill_dp() fills out
265 ecc_curve at runtime */ 265 ecc_curve at runtime */
266 #ifdef DROPBEAR_ECDH 266 #ifdef DROPBEAR_ECDH
267 #ifdef DROPBEAR_ECC_256 267 #ifdef DROPBEAR_ECC_256
268 static struct dropbear_kex kex_ecdh_nistp256 = {DROPBEAR_KEX_ECDH, NULL, 0, &ecc_curve_nistp256, &sha256_desc }; 268 static const struct dropbear_kex kex_ecdh_nistp256 = {DROPBEAR_KEX_ECDH, NULL, 0, &ecc_curve_nistp256, &sha256_desc };
269 #endif 269 #endif
270 #ifdef DROPBEAR_ECC_384 270 #ifdef DROPBEAR_ECC_384
271 static struct dropbear_kex kex_ecdh_nistp384 = {DROPBEAR_KEX_ECDH, NULL, 0, &ecc_curve_nistp384, &sha384_desc }; 271 static const struct dropbear_kex kex_ecdh_nistp384 = {DROPBEAR_KEX_ECDH, NULL, 0, &ecc_curve_nistp384, &sha384_desc };
272 #endif 272 #endif
273 #ifdef DROPBEAR_ECC_521 273 #ifdef DROPBEAR_ECC_521
274 static struct dropbear_kex kex_ecdh_nistp521 = {DROPBEAR_KEX_ECDH, NULL, 0, &ecc_curve_nistp521, &sha512_desc }; 274 static const struct dropbear_kex kex_ecdh_nistp521 = {DROPBEAR_KEX_ECDH, NULL, 0, &ecc_curve_nistp521, &sha512_desc };
275 #endif 275 #endif
276 #endif /* DROPBEAR_ECDH */ 276 #endif /* DROPBEAR_ECDH */
277 277
278 #ifdef DROPBEAR_CURVE25519 278 #ifdef DROPBEAR_CURVE25519
279 /* Referred to directly */ 279 /* Referred to directly */