comparison 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
comparison
equal deleted inserted replaced
934:68723d66dec6 935:25692c60479e
104 104
105 /* Returns a pointer to the key part specific to "type" */ 105 /* Returns a pointer to the key part specific to "type" */
106 void ** 106 void **
107 signkey_key_ptr(sign_key *key, enum signkey_type type) { 107 signkey_key_ptr(sign_key *key, enum signkey_type type) {
108 switch (type) { 108 switch (type) {
109 #ifdef DROPBEAR_ECDSA
109 #ifdef DROPBEAR_ECC_256 110 #ifdef DROPBEAR_ECC_256
110 case DROPBEAR_SIGNKEY_ECDSA_NISTP256: 111 case DROPBEAR_SIGNKEY_ECDSA_NISTP256:
111 return (void**)&key->ecckey256; 112 return (void**)&key->ecckey256;
112 #endif 113 #endif
113 #ifdef DROPBEAR_ECC_384 114 #ifdef DROPBEAR_ECC_384
116 #endif 117 #endif
117 #ifdef DROPBEAR_ECC_521 118 #ifdef DROPBEAR_ECC_521
118 case DROPBEAR_SIGNKEY_ECDSA_NISTP521: 119 case DROPBEAR_SIGNKEY_ECDSA_NISTP521:
119 return (void**)&key->ecckey521; 120 return (void**)&key->ecckey521;
120 #endif 121 #endif
122 #endif /* DROPBEAR_ECDSA */
121 #ifdef DROPBEAR_RSA 123 #ifdef DROPBEAR_RSA
122 case DROPBEAR_SIGNKEY_RSA: 124 case DROPBEAR_SIGNKEY_RSA:
123 return (void**)&key->rsakey; 125 return (void**)&key->rsakey;
124 #endif 126 #endif
125 #ifdef DROPBEAR_DSS 127 #ifdef DROPBEAR_DSS