Mercurial > dropbear
comparison dropbearkey.c @ 165:0cfba3034be5
Fixed DEBUG_TRACE macro so that we don't get semicolons left about the place
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sun, 02 Jan 2005 20:25:56 +0000 |
parents | c85c88500ea6 |
children | 740e782679be bc7c134982df |
comparison
equal
deleted
inserted
replaced
161:b9d3f725e00b | 165:0cfba3034be5 |
---|---|
164 | 164 |
165 if (strlen(typetext) == 3) { | 165 if (strlen(typetext) == 3) { |
166 #ifdef DROPBEAR_RSA | 166 #ifdef DROPBEAR_RSA |
167 if (strncmp(typetext, "rsa", 3) == 0) { | 167 if (strncmp(typetext, "rsa", 3) == 0) { |
168 keytype = DROPBEAR_SIGNKEY_RSA; | 168 keytype = DROPBEAR_SIGNKEY_RSA; |
169 TRACE(("type is rsa")); | 169 TRACE(("type is rsa")) |
170 } | 170 } |
171 #endif | 171 #endif |
172 #ifdef DROPBEAR_DSS | 172 #ifdef DROPBEAR_DSS |
173 if (strncmp(typetext, "dss", 3) == 0) { | 173 if (strncmp(typetext, "dss", 3) == 0) { |
174 keytype = DROPBEAR_SIGNKEY_DSS; | 174 keytype = DROPBEAR_SIGNKEY_DSS; |
175 TRACE(("type is dss")); | 175 TRACE(("type is dss")) |
176 } | 176 } |
177 #endif | 177 #endif |
178 } | 178 } |
179 if (keytype == -1) { | 179 if (keytype == -1) { |
180 fprintf(stderr, "Unknown key type '%s'\n", typetext); | 180 fprintf(stderr, "Unknown key type '%s'\n", typetext); |