FreeRDP
|
#include <winpr/crt.h>
#include <winpr/stream.h>
#include <freerdp/api.h>
#include <freerdp/settings.h>
#include <freerdp/channels/scard.h>
#include <freerdp/utils/smartcard_operations.h>
Functions | |
FREERDP_API void | smartcard_call_context_free (scard_call_context *ctx) |
FREERDP_API scard_call_context * | smartcard_call_context_new (const rdpSettings *settings) |
FREERDP_API BOOL | smartcard_call_context_signal_stop (scard_call_context *ctx, BOOL reset) |
FREERDP_API BOOL | smartcard_call_context_add (scard_call_context *ctx, const char *name) |
FREERDP_API BOOL | smartcard_call_cancel_context (scard_call_context *ctx, SCARDCONTEXT context) |
FREERDP_API BOOL | smartcard_call_cancel_all_context (scard_call_context *ctx) |
FREERDP_API BOOL | smartcard_call_release_context (scard_call_context *ctx, SCARDCONTEXT context) |
FREERDP_API BOOL | smartcard_call_is_configured (scard_call_context *ctx) |
FREERDP_API BOOL | smarcard_call_set_callbacks (scard_call_context *ctx, void *userdata, void *(*fn_new)(void *, SCARDCONTEXT), void(*fn_free)(void *)) |
FREERDP_API void * | smartcard_call_get_context (scard_call_context *ctx, SCARDCONTEXT hContext) |
FREERDP_API LONG | smartcard_irp_device_control_call (scard_call_context *context, wStream *out, UINT32 *pIoStatus, SMARTCARD_OPERATION *operation) |
FREERDP_API BOOL smarcard_call_set_callbacks | ( | scard_call_context * | ctx, |
void * | userdata, | ||
void *(*)(void *, SCARDCONTEXT) | fn_new, | ||
void(*)(void *) | fn_free | ||
) |
FREERDP_API BOOL smartcard_call_cancel_all_context | ( | scard_call_context * | ctx | ) |
FREERDP_API BOOL smartcard_call_cancel_context | ( | scard_call_context * | ctx, |
SCARDCONTEXT | context | ||
) |
FREERDP_API BOOL smartcard_call_context_add | ( | scard_call_context * | ctx, |
const char * | name | ||
) |
FREERDP_API void smartcard_call_context_free | ( | scard_call_context * | ctx | ) |
FREERDP_API scard_call_context* smartcard_call_context_new | ( | const rdpSettings * | settings | ) |
FREERDP_API BOOL smartcard_call_context_signal_stop | ( | scard_call_context * | ctx, |
BOOL | reset | ||
) |
FREERDP_API void* smartcard_call_get_context | ( | scard_call_context * | ctx, |
SCARDCONTEXT | hContext | ||
) |
FREERDP_API BOOL smartcard_call_is_configured | ( | scard_call_context * | ctx | ) |
FREERDP_API BOOL smartcard_call_release_context | ( | scard_call_context * | ctx, |
SCARDCONTEXT | context | ||
) |
FREERDP_API LONG smartcard_irp_device_control_call | ( | scard_call_context * | context, |
wStream * | out, | ||
UINT32 * | pIoStatus, | ||
SMARTCARD_OPERATION * | operation | ||
) |
[MS-RDPESC] 3.2.5.1: Sending Outgoing Messages: the output buffer length SHOULD be set to 2048
Since it's a SHOULD and not a MUST, we don't care about it, but we still reserve at least 2048 bytes.
[MS-RPCE] 2.2.6.3 Primitive Type Serialization The type MUST be aligned on an 8-byte boundary. If the size of the primitive type is not a multiple of 8 bytes, the data MUST be padded.