comparison signkey.c @ 1510:eb4c7052f51d coverity

merge coverity up to date
author Matt Johnston <matt@ucc.asn.au>
date Sat, 17 Feb 2018 11:29:17 +0800
parents 2d450c1056e3
children 5916af64acd4
comparison
equal deleted inserted replaced
1509:3520d7c25363 1510:eb4c7052f51d
76 && memcmp(fixed_name, name, namelen) == 0) { 76 && memcmp(fixed_name, name, namelen) == 0) {
77 77
78 #if DROPBEAR_ECDSA 78 #if DROPBEAR_ECDSA
79 /* Some of the ECDSA key sizes are defined even if they're not compiled in */ 79 /* Some of the ECDSA key sizes are defined even if they're not compiled in */
80 if (0 80 if (0
81 #ifndef DROPBEAR_ECC_256 81 #if !DROPBEAR_ECC_256
82 || i == DROPBEAR_SIGNKEY_ECDSA_NISTP256 82 || i == DROPBEAR_SIGNKEY_ECDSA_NISTP256
83 #endif 83 #endif
84 #ifndef DROPBEAR_ECC_384 84 #if !DROPBEAR_ECC_384
85 || i == DROPBEAR_SIGNKEY_ECDSA_NISTP384 85 || i == DROPBEAR_SIGNKEY_ECDSA_NISTP384
86 #endif 86 #endif
87 #ifndef DROPBEAR_ECC_521 87 #if !DROPBEAR_ECC_521
88 || i == DROPBEAR_SIGNKEY_ECDSA_NISTP521 88 || i == DROPBEAR_SIGNKEY_ECDSA_NISTP521
89 #endif 89 #endif
90 ) { 90 ) {
91 TRACE(("attempt to use ecdsa type %d not compiled in", i)) 91 TRACE(("attempt to use ecdsa type %d not compiled in", i))
92 return DROPBEAR_SIGNKEY_NONE; 92 return DROPBEAR_SIGNKEY_NONE;