summaryrefslogtreecommitdiffhomepage
path: root/gensignkey.c
diff options
context:
space:
mode:
Diffstat (limited to 'gensignkey.c')
-rw-r--r--gensignkey.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/gensignkey.c b/gensignkey.c
index e6c40e0..cdc16e6 100644
--- a/gensignkey.c
+++ b/gensignkey.c
@@ -52,28 +52,28 @@ out:
/* returns 0 on failure */
static int get_default_bits(enum signkey_type keytype)
{
- switch (keytype) {
+ switch (keytype) {
#ifdef DROPBEAR_RSA
- case DROPBEAR_SIGNKEY_RSA:
- return RSA_DEFAULT_SIZE;
+ case DROPBEAR_SIGNKEY_RSA:
+ return RSA_DEFAULT_SIZE;
#endif
#ifdef DROPBEAR_DSS
- case DROPBEAR_SIGNKEY_DSS:
- return DSS_DEFAULT_SIZE;
+ case DROPBEAR_SIGNKEY_DSS:
+ return DSS_DEFAULT_SIZE;
#endif
#ifdef DROPBEAR_ECDSA
- case DROPBEAR_SIGNKEY_ECDSA_KEYGEN:
- return ECDSA_DEFAULT_SIZE;
- case DROPBEAR_SIGNKEY_ECDSA_NISTP521:
- return 521;
- case DROPBEAR_SIGNKEY_ECDSA_NISTP384:
- return 384;
- case DROPBEAR_SIGNKEY_ECDSA_NISTP256:
- return 256;
+ case DROPBEAR_SIGNKEY_ECDSA_KEYGEN:
+ return ECDSA_DEFAULT_SIZE;
+ case DROPBEAR_SIGNKEY_ECDSA_NISTP521:
+ return 521;
+ case DROPBEAR_SIGNKEY_ECDSA_NISTP384:
+ return 384;
+ case DROPBEAR_SIGNKEY_ECDSA_NISTP256:
+ return 256;
#endif
- default:
- return 0;
- }
+ default:
+ return 0;
+ }
}
int signkey_generate(enum signkey_type keytype, int bits, const char* filename)