comparison agentfwd.h @ 1459:06d52bcb8094

Pointer parameter could be declared as pointing to const
author Francois Perrad <francois.perrad@gadz.org>
date Sat, 19 Aug 2017 17:16:13 +0200
parents 750ec4ec4cbe
children a53e7d2d60be
comparison
equal deleted inserted replaced
1458:bdd3802c8ac6 1459:06d52bcb8094
38 #define MAX_AGENT_REPLY 10000 38 #define MAX_AGENT_REPLY 10000
39 39
40 /* client functions */ 40 /* client functions */
41 void cli_load_agent_keys(m_list * ret_list); 41 void cli_load_agent_keys(m_list * ret_list);
42 void agent_buf_sign(buffer *sigblob, sign_key *key, 42 void agent_buf_sign(buffer *sigblob, sign_key *key,
43 buffer *data_buf); 43 const buffer *data_buf);
44 void cli_setup_agent(struct Channel *channel); 44 void cli_setup_agent(const struct Channel *channel);
45 45
46 #ifdef __hpux 46 #ifdef __hpux
47 #define seteuid(a) setresuid(-1, (a), -1) 47 #define seteuid(a) setresuid(-1, (a), -1)
48 #define setegid(a) setresgid(-1, (a), -1) 48 #define setegid(a) setresgid(-1, (a), -1)
49 #endif 49 #endif
54 54
55 #if DROPBEAR_SVR_AGENTFWD 55 #if DROPBEAR_SVR_AGENTFWD
56 56
57 int svr_agentreq(struct ChanSess * chansess); 57 int svr_agentreq(struct ChanSess * chansess);
58 void svr_agentcleanup(struct ChanSess * chansess); 58 void svr_agentcleanup(struct ChanSess * chansess);
59 void svr_agentset(struct ChanSess *chansess); 59 void svr_agentset(const struct ChanSess *chansess);
60 60
61 #endif /* DROPBEAR_SVR_AGENTFWD */ 61 #endif /* DROPBEAR_SVR_AGENTFWD */
62 62
63 #endif /* DROPBEAR_AGENTFWD_H_ */ 63 #endif /* DROPBEAR_AGENTFWD_H_ */