Mercurial > dropbear
comparison agentfwd.h @ 579:8c737cd7c1af
merge of '48fdaa8706d1acda35e9d564adc9a1fbc96c18c8'
and '658fd03abd21e0da7c4c89b9fff9dc693c72daae'
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sat, 27 Feb 2010 11:53:18 +0000 |
parents | 52d7301e46bd |
children | 405418f7dc5e |
comparison
equal
deleted
inserted
replaced
577:69e98c45db7c | 579:8c737cd7c1af |
---|---|
21 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | 21 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
22 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | 22 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
23 * SOFTWARE. */ | 23 * SOFTWARE. */ |
24 #ifndef _AGENTFWD_H_ | 24 #ifndef _AGENTFWD_H_ |
25 #define _AGENTFWD_H_ | 25 #define _AGENTFWD_H_ |
26 #ifndef DISABLE_AGENTFWD | |
27 | 26 |
28 #include "includes.h" | 27 #include "includes.h" |
29 #include "chansession.h" | 28 #include "chansession.h" |
30 #include "channel.h" | 29 #include "channel.h" |
30 #include "auth.h" | |
31 #include "list.h" | |
31 | 32 |
32 int agentreq(struct ChanSess * chansess); | 33 /* An agent reply can be reasonably large, as it can |
33 void agentsetauth(struct ChanSess *chansess); | 34 * contain a list of all public keys held by the agent. |
34 void agentcleanup(struct ChanSess * chansess); | 35 * 10000 is arbitrary */ |
35 void agentset(struct ChanSess *chansess); | 36 #define MAX_AGENT_REPLY 10000 |
37 | |
38 int svr_agentreq(struct ChanSess * chansess); | |
39 void svr_agentcleanup(struct ChanSess * chansess); | |
40 void svr_agentset(struct ChanSess *chansess); | |
41 | |
42 /* client functions */ | |
43 void cli_load_agent_keys(m_list * ret_list); | |
44 void agent_buf_sign(buffer *sigblob, sign_key *key, | |
45 const unsigned char *data, unsigned int len); | |
46 void cli_setup_agent(struct Channel *channel); | |
47 | |
36 | 48 |
37 #ifdef __hpux | 49 #ifdef __hpux |
38 #define seteuid(a) setresuid(-1, (a), -1) | 50 #define seteuid(a) setresuid(-1, (a), -1) |
39 #define setegid(a) setresgid(-1, (a), -1) | 51 #define setegid(a) setresgid(-1, (a), -1) |
40 #endif | 52 #endif |
41 | 53 |
42 #endif /* DROPBEAR_AGENTFWD */ | 54 extern const struct ChanType cli_chan_agent; |
55 | |
43 #endif /* _AGENTFWD_H_ */ | 56 #endif /* _AGENTFWD_H_ */ |