[nla,transport] move public key retrieval to transport IO.

This commit is contained in:
Vic Lee
2024-01-03 00:00:14 +08:00
committed by Martin Fleisz
parent 87557b1e4e
commit 33447dc16e
4 changed files with 38 additions and 8 deletions

View File

@@ -41,6 +41,8 @@ extern "C"
typedef BOOL (*pTransportAttach)(rdpTransport* transport, int sockfd);
typedef int (*pTransportRWFkt)(rdpTransport* transport, wStream* s);
typedef SSIZE_T (*pTransportRead)(rdpTransport* transport, BYTE* data, size_t bytes);
typedef BOOL (*pTransportGetPublicKey)(rdpTransport* transport, const BYTE** data,
DWORD* length);
struct rdp_transport_io
{
@@ -52,6 +54,7 @@ extern "C"
pTransportRWFkt ReadPdu; /* Reads a whole PDU from the transport */
pTransportRWFkt WritePdu; /* Writes a whole PDU to the transport */
pTransportRead ReadBytes; /* Reads up to a requested amount of bytes from the transport */
pTransportGetPublicKey GetPublicKey;
};
typedef struct rdp_transport_io rdpTransportIo;