comparison signkey.c @ 989:73ea0dce9a57 pam

Merge up to date
author Matt Johnston <matt@ucc.asn.au>
date Fri, 23 Jan 2015 21:38:47 +0800
parents 25692c60479e
children 0da8ba489c23
comparison
equal deleted inserted replaced
925:bae0b34bc059 989:73ea0dce9a57
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