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. */
28
WINPR_ATTR_NODISCARD
29
int
lsa4posix_client_connect(
void
);
30
31
void
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. */
37
WINPR_ATTR_NODISCARD
38
NTSTATUS 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 */
LSA_MSG_HDR
Definition
lsa_proto.h:54
LsaProtoReader
Definition
lsa_proto.h:69
wStream
Definition
include/winpr/stream.h:42
winpr
libwinpr
sspicli
lsa_transport.h
Generated by
1.15.0