mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-16 18:47:32 -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
aqsync.c
4
aqsync.c
@ -11,11 +11,11 @@
|
||||
|
||||
#include "putty.h"
|
||||
|
||||
void agent_query_synchronous(void *in, int inlen, void **out, int *outlen)
|
||||
void agent_query_synchronous(strbuf *query, void **out, int *outlen)
|
||||
{
|
||||
agent_pending_query *pending;
|
||||
|
||||
pending = agent_query(in, inlen, out, outlen, NULL, 0);
|
||||
pending = agent_query(query, out, outlen, NULL, 0);
|
||||
assert(!pending);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user