Mercurial > dropbear
comparison signkey.c @ 1684:d5d25ce2a2ed
cast to fix warning
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 26 May 2020 19:57:28 +0800 |
parents | 435cfb9ec96e |
children | 064f5be2fc45 |
comparison
equal
deleted
inserted
replaced
1683:41bf8f216644 | 1684:d5d25ce2a2ed |
---|---|
167 #if DROPBEAR_RSA_SHA1 | 167 #if DROPBEAR_RSA_SHA1 |
168 if (sigtype == DROPBEAR_SIGNATURE_RSA_SHA1) { | 168 if (sigtype == DROPBEAR_SIGNATURE_RSA_SHA1) { |
169 return DROPBEAR_SIGNKEY_RSA; | 169 return DROPBEAR_SIGNKEY_RSA; |
170 } | 170 } |
171 #endif | 171 #endif |
172 assert(sigtype < DROPBEAR_SIGNKEY_NUM_NAMED); | 172 assert((int)sigtype < (int)DROPBEAR_SIGNKEY_NUM_NAMED); |
173 return (enum signkey_type)sigtype; | 173 return (enum signkey_type)sigtype; |
174 } | 174 } |
175 | 175 |
176 /* Returns a pointer to the key part specific to "type". | 176 /* Returns a pointer to the key part specific to "type". |
177 Be sure to check both (ret != NULL) and (*ret != NULL) */ | 177 Be sure to check both (ret != NULL) and (*ret != NULL) */ |