diff signkey.c @ 935:25692c60479e

Fix compiling with ECDSA and DSS disabled
author Matt Johnston <matt@ucc.asn.au>
date Wed, 25 Jun 2014 23:37:44 +0800
parents 30ab30e46452
children 0da8ba489c23
line wrap: on
line diff
--- a/signkey.c	Tue May 20 21:21:02 2014 +0800
+++ b/signkey.c	Wed Jun 25 23:37:44 2014 +0800
@@ -106,6 +106,7 @@
 void **
 signkey_key_ptr(sign_key *key, enum signkey_type type) {
 	switch (type) {
+#ifdef DROPBEAR_ECDSA
 #ifdef DROPBEAR_ECC_256
 		case DROPBEAR_SIGNKEY_ECDSA_NISTP256:
 			return (void**)&key->ecckey256;
@@ -118,6 +119,7 @@
 		case DROPBEAR_SIGNKEY_ECDSA_NISTP521:
 			return (void**)&key->ecckey521;
 #endif
+#endif /* DROPBEAR_ECDSA */
 #ifdef DROPBEAR_RSA
 		case DROPBEAR_SIGNKEY_RSA:
 			return (void**)&key->rsakey;