mirror of
https://github.com/clearml/dropbear
synced 2025-03-04 02:57:46 +00:00
const variables
This commit is contained in:
parent
c5b77e1b49
commit
893d7be5bf
@ -265,13 +265,13 @@ static const struct dropbear_kex kex_dh_group16_sha512 = {DROPBEAR_KEX_NORMAL_DH
|
|||||||
ecc_curve at runtime */
|
ecc_curve at runtime */
|
||||||
#ifdef DROPBEAR_ECDH
|
#ifdef DROPBEAR_ECDH
|
||||||
#ifdef DROPBEAR_ECC_256
|
#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
|
#endif
|
||||||
#ifdef DROPBEAR_ECC_384
|
#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
|
#endif
|
||||||
#ifdef DROPBEAR_ECC_521
|
#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
|
||||||
#endif /* DROPBEAR_ECDH */
|
#endif /* DROPBEAR_ECDH */
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
#include "ssh.h"
|
#include "ssh.h"
|
||||||
#include "ecdsa.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
|
#ifdef DROPBEAR_RSA
|
||||||
"ssh-rsa",
|
"ssh-rsa",
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user