FreeRDP
Loading...
Searching...
No Matches
lsa_transport.h
1
17
18#ifndef WINPR_SSPICLI_LSA_TRANSPORT_H
19#define WINPR_SSPICLI_LSA_TRANSPORT_H
20
21#include <winpr/wtypes.h>
22#include <winpr/nt.h>
23
24#include "lsa_proto.h"
25
26/* Connect to the per-user lsa4posix daemon. Returns a socket fd, or -1 if the daemon or its
27 * private socket directory is not available. */
28WINPR_ATTR_NODISCARD
29int lsa4posix_client_connect(void);
30
31void lsa4posix_client_close(int fd);
32
33/* Send one request payload (always freed) and receive one response. On success *response holds
34 * the response buffer the reader decodes in place: read fields from reader, then call
35 * lsa_proto_reader_done() and free *response. The envelope (type, response flag, request id) is
36 * validated. */
37WINPR_ATTR_NODISCARD
38NTSTATUS lsa4posix_transact(int fd, UINT16 expectType, wStream* request, UINT32 requestId,
39 LsaProtoReader* reader, LSA_MSG_HDR* respHdr, wStream** response);
40
41#endif /* WINPR_SSPICLI_LSA_TRANSPORT_H */