diff options
author | Matt Johnston <matt@ucc.asn.au> | 2017-05-18 22:59:38 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2017-05-18 22:59:38 +0800 |
commit | 45b27b0194d3981082128a78e3d7102c190a812a (patch) | |
tree | 6520ac7fb580a0cffd925d0bf9a77d15f6c71a27 /gensignkey.c | |
parent | 2a921c2c25658425af1ea9a8bf8b9de3f3647aef (diff) | |
parent | 9f674382d55cb3b8effcb53cf8d7c2d368675f3d (diff) |
merge 2017.75
Diffstat (limited to 'gensignkey.c')
-rw-r--r-- | gensignkey.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gensignkey.c b/gensignkey.c index 7bfc786..4691de0 100644 --- a/gensignkey.c +++ b/gensignkey.c @@ -53,15 +53,15 @@ out: static int get_default_bits(enum signkey_type keytype) { switch (keytype) { -#ifdef DROPBEAR_RSA +#if DROPBEAR_RSA case DROPBEAR_SIGNKEY_RSA: return RSA_DEFAULT_SIZE; #endif -#ifdef DROPBEAR_DSS +#if DROPBEAR_DSS case DROPBEAR_SIGNKEY_DSS: return DSS_DEFAULT_SIZE; #endif -#ifdef DROPBEAR_ECDSA +#if DROPBEAR_ECDSA case DROPBEAR_SIGNKEY_ECDSA_KEYGEN: return ECDSA_DEFAULT_SIZE; case DROPBEAR_SIGNKEY_ECDSA_NISTP521: @@ -94,17 +94,17 @@ int signkey_generate(enum signkey_type keytype, int bits, const char* filename, seedrandom(); switch(keytype) { -#ifdef DROPBEAR_RSA +#if DROPBEAR_RSA case DROPBEAR_SIGNKEY_RSA: key->rsakey = gen_rsa_priv_key(bits); break; #endif -#ifdef DROPBEAR_DSS +#if DROPBEAR_DSS case DROPBEAR_SIGNKEY_DSS: key->dsskey = gen_dss_priv_key(bits); break; #endif -#ifdef DROPBEAR_ECDSA +#if DROPBEAR_ECDSA case DROPBEAR_SIGNKEY_ECDSA_KEYGEN: case DROPBEAR_SIGNKEY_ECDSA_NISTP521: case DROPBEAR_SIGNKEY_ECDSA_NISTP384: |