Use ssh-dss, not ssh-dsa.
This commit is contained in:
parent
84c484aa72
commit
f1236a9ca1
@ -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;
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user