Mercurial > dropbear
comparison agentfwd.h @ 1682:a53e7d2d60be
rsa-sha256 for ssh-agent
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Mon, 25 May 2020 20:23:02 +0800 |
parents | 06d52bcb8094 |
children |
comparison
equal
deleted
inserted
replaced
1681:435cfb9ec96e | 1682:a53e7d2d60be |
---|---|
30 #include "auth.h" | 30 #include "auth.h" |
31 #include "list.h" | 31 #include "list.h" |
32 | 32 |
33 #if DROPBEAR_CLI_AGENTFWD | 33 #if DROPBEAR_CLI_AGENTFWD |
34 | 34 |
35 /* From OpenSSH authfd.h */ | |
36 #define SSH_AGENT_RSA_SHA2_256 0x02 | |
37 | |
35 /* An agent reply can be reasonably large, as it can | 38 /* An agent reply can be reasonably large, as it can |
36 * contain a list of all public keys held by the agent. | 39 * contain a list of all public keys held by the agent. |
37 * 10000 is arbitrary */ | 40 * 10000 is arbitrary */ |
38 #define MAX_AGENT_REPLY 10000 | 41 #define MAX_AGENT_REPLY 10000 |
39 | 42 |
40 /* client functions */ | 43 /* client functions */ |
41 void cli_load_agent_keys(m_list * ret_list); | 44 void cli_load_agent_keys(m_list * ret_list); |
42 void agent_buf_sign(buffer *sigblob, sign_key *key, | 45 void agent_buf_sign(buffer *sigblob, sign_key *key, |
43 const buffer *data_buf); | 46 const buffer *data_buf, enum signature_type type); |
44 void cli_setup_agent(const struct Channel *channel); | 47 void cli_setup_agent(const struct Channel *channel); |
45 | 48 |
46 #ifdef __hpux | 49 #ifdef __hpux |
47 #define seteuid(a) setresuid(-1, (a), -1) | 50 #define seteuid(a) setresuid(-1, (a), -1) |
48 #define setegid(a) setresgid(-1, (a), -1) | 51 #define setegid(a) setresgid(-1, (a), -1) |