Mercurial > dropbear
comparison signkey.c @ 107:d3eb1fa8484e
Nasty.
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 24 Aug 2004 18:12:18 +0000 |
parents | b0316ce64e4b |
children | 0cfba3034be5 |
comparison
equal
deleted
inserted
replaced
106:e13f8a712a1c | 107:d3eb1fa8484e |
---|---|
151 ident = buf_getstring(buf, &len); | 151 ident = buf_getstring(buf, &len); |
152 keytype = signkey_type_from_name(ident, len); | 152 keytype = signkey_type_from_name(ident, len); |
153 m_free(ident); | 153 m_free(ident); |
154 | 154 |
155 if (*type != DROPBEAR_SIGNKEY_ANY && *type != keytype) { | 155 if (*type != DROPBEAR_SIGNKEY_ANY && *type != keytype) { |
156 TRACE(("wrong key type: %d %d", *type, keytype)); | |
156 return DROPBEAR_FAILURE; | 157 return DROPBEAR_FAILURE; |
157 } | 158 } |
158 | 159 |
159 *type = keytype; | 160 *type = keytype; |
160 | 161 |