diff options
author | Matt Johnston <matt@ucc.asn.au> | 2004-07-28 16:44:16 +0000 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2004-07-28 16:44:16 +0000 |
commit | 33d80f3294df8b5229463589a6a9723bb6191ee8 (patch) | |
tree | ba72557d5adc76bb9bf156c5e54e29bcd66df9d2 /signkey.c | |
parent | 4f3a2de383a3c7ece24e9ae01507ed9fc93b4e20 (diff) | |
download | dropbear-33d80f3294df8b5229463589a6a9723bb6191ee8.tar.gz |
Client mostly works up to password auth
Need to rework algo-choosing etc, since server is now broken.
Diffstat (limited to 'signkey.c')
-rw-r--r-- | signkey.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -52,8 +52,12 @@ int buf_get_pub_key(buffer *buf, sign_key *key, int *type) { unsigned char* ident; unsigned int len; + TRACE(("enter buf_get_pub_key")); + printhex(buf_getptr(buf, 0x99), 0x99); + ident = buf_getstring(buf, &len); + #ifdef DROPBEAR_DSS if (memcmp(ident, SSH_SIGNKEY_DSS, len) == 0 && (*type == DROPBEAR_SIGNKEY_ANY @@ -78,6 +82,7 @@ int buf_get_pub_key(buffer *buf, sign_key *key, int *type) { return buf_get_rsa_pub_key(buf, key->rsakey); } #endif + TRACE(("leave buf_get_pub_key: didn't match the type we want (%d versus '%s'len %d)", *type, ident, len)); m_free(ident); @@ -352,6 +357,8 @@ int buf_verify(buffer * buf, sign_key *key, const unsigned char *data, unsigned char * ident = NULL; unsigned int identlen = 0; + TRACE(("enter buf_verify")); + bloblen = buf_getint(buf); ident = buf_getstring(buf, &identlen); |