Mercurial > dropbear
comparison cli-authpubkey.c @ 1682:a53e7d2d60be
rsa-sha256 for ssh-agent
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Mon, 25 May 2020 20:23:02 +0800 |
parents | 435cfb9ec96e |
children | d18fa38c1fd4 |
comparison
equal
deleted
inserted
replaced
1681:435cfb9ec96e | 1682:a53e7d2d60be |
---|---|
128 // TODO: rsa-sha256 agent | 128 // TODO: rsa-sha256 agent |
129 if (key->source == SIGNKEY_SOURCE_AGENT) { | 129 if (key->source == SIGNKEY_SOURCE_AGENT) { |
130 /* Format the agent signature ourselves, as buf_put_sign would. */ | 130 /* Format the agent signature ourselves, as buf_put_sign would. */ |
131 buffer *sigblob; | 131 buffer *sigblob; |
132 sigblob = buf_new(MAX_PUBKEY_SIZE); | 132 sigblob = buf_new(MAX_PUBKEY_SIZE); |
133 agent_buf_sign(sigblob, key, data_buf); | 133 agent_buf_sign(sigblob, key, data_buf, sigtype); |
134 buf_putbufstring(buf, sigblob); | 134 buf_putbufstring(buf, sigblob); |
135 buf_free(sigblob); | 135 buf_free(sigblob); |
136 } else | 136 } else |
137 #endif /* DROPBEAR_CLI_AGENTFWD */ | 137 #endif /* DROPBEAR_CLI_AGENTFWD */ |
138 { | 138 { |