Use ssh-dss, not ssh-dsa.

This commit is contained in:
Michael Jumper 2013-12-02 02:18:43 -08:00
parent 84c484aa72
commit f1236a9ca1
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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);