Mercurial > dropbear
diff signkey.c @ 316:dc6173e09ff7 ucc-axis-hack
smaller yet again
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 28 Mar 2006 16:04:11 +0000 |
parents | eb7b9f2bb8e8 |
children |
line wrap: on
line diff
--- a/signkey.c Mon Mar 27 08:36:44 2006 +0000 +++ b/signkey.c Tue Mar 28 16:04:11 2006 +0000 @@ -259,6 +259,9 @@ TRACE(("leave sign_key_free")) } +/* don't need fingerprints */ +#if 0 + static char hexdig(unsigned char x) { if (x > 0xf) @@ -353,6 +356,7 @@ return sign_key_sha1_fingerprint(keyblob, keybloblen); #endif } +#endif void buf_put_sign(buffer* buf, sign_key *key, int type, const unsigned char *data, unsigned int len) { @@ -384,6 +388,7 @@ } #ifdef DROPBEAR_SIGNKEY_VERIFY +#error Get rid of this line if you intended to have pubkey auth /* Return DROPBEAR_SUCCESS or DROPBEAR_FAILURE. * If FAILURE is returned, the position of * buf is undefined. If SUCCESS is returned, buf will be positioned after the @@ -428,6 +433,7 @@ #endif /* DROPBEAR_SIGNKEY_VERIFY */ #ifdef DROPBEAR_KEY_LINES /* ie we're using authorized_keys or known_hosts */ +#error Get rid of this line if you intended to have pubkey auth /* Returns DROPBEAR_SUCCESS or DROPBEAR_FAILURE when given a buffer containing * a key, a key, and a type. The buffer is positioned at the start of the