From f1236a9ca1250a042d00d3f39db10c7876f91c77 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Mon, 2 Dec 2013 02:18:43 -0800 Subject: [PATCH] Use ssh-dss, not ssh-dsa. --- src/protocols/ssh/ssh_agent.c | 2 +- src/protocols/ssh/ssh_key.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/protocols/ssh/ssh_agent.c b/src/protocols/ssh/ssh_agent.c index f530184b..ee774694 100644 --- a/src/protocols/ssh/ssh_agent.c +++ b/src/protocols/ssh/ssh_agent.c @@ -78,7 +78,7 @@ void ssh_auth_agent_sign(ssh_auth_agent* agent, char* data, int data_length) { if (key->type == SSH_KEY_RSA) buffer_write_string(&pos, "ssh-rsa", 7); else if (key->type == SSH_KEY_DSA) - buffer_write_string(&pos, "ssh-dsa", 7); + buffer_write_string(&pos, "ssh-dss", 7); else return; diff --git a/src/protocols/ssh/ssh_key.c b/src/protocols/ssh/ssh_key.c index 9ed4f082..07d62ce7 100644 --- a/src/protocols/ssh/ssh_key.c +++ b/src/protocols/ssh/ssh_key.c @@ -114,7 +114,7 @@ ssh_key* ssh_key_alloc(char* data, int length, char* passphrase) { pos = public_key; /* Derive public key */ - buffer_write_string(&pos, "ssh-dsa", sizeof("ssh-dsa")-1); + buffer_write_string(&pos, "ssh-dss", sizeof("ssh-dss")-1); buffer_write_bignum(&pos, dsa_key->p); buffer_write_bignum(&pos, dsa_key->q); buffer_write_bignum(&pos, dsa_key->g);