diff options
author | Matt Johnston <matt@ucc.asn.au> | 2014-06-25 23:37:44 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2014-06-25 23:37:44 +0800 |
commit | 6b5317e7cc448ace03e21575e852ef5c634d3c09 (patch) | |
tree | 8bc0164e081f4b0ef67b193fdbedd3a48dfd27c3 /signkey.c | |
parent | 2a1d28ea3a0a164593c7819ec1c2489224ed68d5 (diff) |
Fix compiling with ECDSA and DSS disabled
Diffstat (limited to 'signkey.c')
-rw-r--r-- | signkey.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -106,6 +106,7 @@ enum signkey_type signkey_type_from_name(const char* name, unsigned int namelen) 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 @@ signkey_key_ptr(sign_key *key, enum signkey_type type) { case DROPBEAR_SIGNKEY_ECDSA_NISTP521: return (void**)&key->ecckey521; #endif +#endif /* DROPBEAR_ECDSA */ #ifdef DROPBEAR_RSA case DROPBEAR_SIGNKEY_RSA: return (void**)&key->rsakey; |