41 #ifndef __winscard_msg_h__ 42 #define __winscard_msg_h__ 47 #define PROTOCOL_VERSION_MAJOR 4 49 #define PROTOCOL_VERSION_MINOR 3 144 char szReader[MAX_READERNAME];
145 uint32_t dwShareMode;
146 uint32_t dwPreferredProtocols;
148 uint32_t dwActiveProtocol;
160 uint32_t dwShareMode;
161 uint32_t dwPreferredProtocols;
162 uint32_t dwInitialization;
163 uint32_t dwActiveProtocol;
175 uint32_t dwDisposition;
198 uint32_t dwDisposition;
232 uint32_t ioSendPciProtocol;
233 uint32_t ioSendPciLength;
234 uint32_t cbSendLength;
235 uint32_t ioRecvPciProtocol;
236 uint32_t ioRecvPciLength;
237 uint32_t pcbRecvLength;
249 uint32_t dwControlCode;
250 uint32_t cbSendLength;
251 uint32_t cbRecvLength;
252 uint32_t dwBytesReturned;
276 int32_t ListenExistingSocket(
int fd);
279 char *getSocketName(
void);
283 uint64_t buffer_size, int32_t filedes,
long timeOut);
285 uint64_t size,
void *data);
287 LONG
MessageSend(
void *buffer, uint64_t buffer_size, int32_t filedes);
used by SCardBeginTransaction()
contained in SCARD_CONNECT Messages.
wait for a reader state change
contained in SCARD_CANCEL Messages.
contained in SCARD_TRANSMIT Messages.
void ClientCloseSession(uint32_t)
Closes the socket used by the client to communicate with the server.
contained in SCARD_END_TRANSACTION Messages.
int32_t ClientSetupSession(uint32_t *)
Prepares a communication channel for the client to talk to the server.
#define MAX_BUFFER_SIZE
Maximum Tx/Rx Buffer for short APDU.
get the client/server protocol version
used by SCardEstablishContext()
int32_t minor
IPC minor PROTOCOL_VERSION_MINOR.
used by SCardEndTransaction()
contained in SCARD_DISCONNECT Messages.
Information contained in SCARD_RELEASE_CONTEXT Messages.
contained in SCARD_BEGIN_TRANSACTION Messages.
Information contained in SCARD_ESTABLISH_CONTEXT Messages.
LONG MessageSendWithHeader(uint32_t command, uint32_t dwClientID, uint64_t size, void *data)
Wrapper for the MessageSend() function.
Information transmitted in CMD_VERSION Messages.
used by SCardReleaseContext()
contained in SCARD_STATUS Messages.
contained in SCARD_RECONNECT Messages.
uint32_t timeOut
timeout in ms
contained in SCARD_GET_ATTRIB and Messages.
Information contained in CMD_WAIT_READER_STATE_CHANGE Messages.
INTERNAL int32_t InitializeSocket(void)
Prepares the communication channel used by the server to talk to the clients.
pcsc_msg_commands
Commands available to use in the field sharedSegmentMsg.command.
LONG MessageReceiveTimeout(uint32_t command, void *buffer, uint64_t buffer_size, int32_t filedes, long timeOut)
Called by the Client to get the reponse from the server or vice-versa.
stop waiting for a reader state change
LONG MessageSend(void *buffer, uint64_t buffer_size, int32_t filedes)
Sends a menssage from client to server or vice-versa.
used by SCardListReaders()
INTERNAL int32_t ProcessEventsServer(uint32_t *pdwClientID)
Acquires a socket passed in from systemd.
used by SCardDisconnect()
contained in SCARD_CONTROL Messages.
LONG MessageReceive(void *buffer, uint64_t buffer_size, int32_t filedes)
Called by the Client to get the reponse from the server or vice-versa.
int32_t major
IPC major PROTOCOL_VERSION_MAJOR.