summaryrefslogtreecommitdiff
path: root/dss.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2004-07-28 16:44:16 +0000
committerMatt Johnston <matt@ucc.asn.au>2004-07-28 16:44:16 +0000
commit33d80f3294df8b5229463589a6a9723bb6191ee8 (patch)
treeba72557d5adc76bb9bf156c5e54e29bcd66df9d2 /dss.c
parent4f3a2de383a3c7ece24e9ae01507ed9fc93b4e20 (diff)
downloaddropbear-33d80f3294df8b5229463589a6a9723bb6191ee8.tar.gz
Client mostly works up to password auth
Need to rework algo-choosing etc, since server is now broken.
Diffstat (limited to 'dss.c')
-rw-r--r--dss.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/dss.c b/dss.c
index ebe80c6..74b92c7 100644
--- a/dss.c
+++ b/dss.c
@@ -45,6 +45,7 @@
* Returns DROPBEAR_SUCCESS or DROPBEAR_FAILURE */
int buf_get_dss_pub_key(buffer* buf, dss_key *key) {
+ TRACE(("enter buf_get_dss_pub_key"));
assert(key != NULL);
key->p = m_malloc(sizeof(mp_int));
key->q = m_malloc(sizeof(mp_int));
@@ -58,14 +59,17 @@ int buf_get_dss_pub_key(buffer* buf, dss_key *key) {
|| buf_getmpint(buf, key->q) == DROPBEAR_FAILURE
|| buf_getmpint(buf, key->g) == DROPBEAR_FAILURE
|| buf_getmpint(buf, key->y) == DROPBEAR_FAILURE) {
+ TRACE(("leave buf_get_dss_pub_key: failed reading mpints"));
return DROPBEAR_FAILURE;
}
if (mp_count_bits(key->p) < MIN_DSS_KEYLEN) {
dropbear_log(LOG_WARNING, "DSS key too short");
+ TRACE(("leave buf_get_dss_pub_key: short key"));
return DROPBEAR_FAILURE;
}
+ TRACE(("leave buf_get_dss_pub_key: success"));
return DROPBEAR_SUCCESS;
}