mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-02 03:52:49 -05:00
Build outgoing SSH agent requests in a strbuf.
This simplifies the client code both in ssh.c and in the client side of Pageant. I've cheated a tiny bit by preparing agent requests in a strbuf that has space reserved at the front for the packet frame, which makes life easier for the code that sends them off.
This commit is contained in:
4
putty.h
4
putty.h
@ -1292,10 +1292,10 @@ void crypto_wrapup();
|
||||
*/
|
||||
typedef struct agent_pending_query agent_pending_query;
|
||||
agent_pending_query *agent_query(
|
||||
void *in, int inlen, void **out, int *outlen,
|
||||
strbuf *in, void **out, int *outlen,
|
||||
void (*callback)(void *, void *, int), void *callback_ctx);
|
||||
void agent_cancel_query(agent_pending_query *);
|
||||
void agent_query_synchronous(void *in, int inlen, void **out, int *outlen);
|
||||
void agent_query_synchronous(strbuf *in, void **out, int *outlen);
|
||||
int agent_exists(void);
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user