2012-08-15 01:09:01 +04:00
|
|
|
/**
|
2012-10-09 07:02:04 +04:00
|
|
|
* FreeRDP: A Remote Desktop Protocol Implementation
|
2012-08-15 01:09:01 +04:00
|
|
|
* Smartcard Device Service Virtual Channel
|
|
|
|
*
|
|
|
|
* Copyright 2011 O.S. Systems Software Ltda.
|
|
|
|
* Copyright 2011 Eduardo Fiss Beloni <beloni@ossystems.com.br>
|
2015-07-03 14:09:03 +03:00
|
|
|
* Copyright 2015 Thincast Technologies GmbH
|
|
|
|
* Copyright 2015 DI (FH) Martin Haimberger <martin.haimberger@thincast.com>
|
2012-08-15 01:09:01 +04:00
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
2011-10-15 19:30:10 +04:00
|
|
|
|
2012-11-21 20:56:40 +04:00
|
|
|
#ifndef FREERDP_CHANNEL_SMARTCARD_CLIENT_MAIN_H
|
|
|
|
#define FREERDP_CHANNEL_SMARTCARD_CLIENT_MAIN_H
|
2011-10-15 19:30:10 +04:00
|
|
|
|
2014-08-11 11:12:01 +04:00
|
|
|
#include <freerdp/channels/log.h>
|
2012-10-09 05:00:07 +04:00
|
|
|
#include <freerdp/channels/rdpdr.h>
|
2011-10-15 19:30:10 +04:00
|
|
|
|
2012-11-21 21:53:54 +04:00
|
|
|
#include <winpr/crt.h>
|
2014-04-04 01:29:12 +04:00
|
|
|
#include <winpr/wlog.h>
|
2012-09-19 01:33:52 +04:00
|
|
|
#include <winpr/synch.h>
|
2014-04-03 23:27:55 +04:00
|
|
|
#include <winpr/smartcard.h>
|
2013-11-04 05:46:40 +04:00
|
|
|
#include <winpr/collections.h>
|
2012-09-19 01:33:52 +04:00
|
|
|
|
2021-12-14 14:59:16 +03:00
|
|
|
#include <freerdp/utils/smartcard_operations.h>
|
|
|
|
#include <freerdp/utils/smartcard_call.h>
|
2014-04-04 02:47:18 +04:00
|
|
|
|
2021-02-06 14:21:03 +03:00
|
|
|
#define TAG CHANNELS_TAG("smartcard.client")
|
2012-08-02 02:05:45 +04:00
|
|
|
|
2022-02-14 16:59:22 +03:00
|
|
|
typedef struct
|
2011-10-15 19:30:10 +04:00
|
|
|
{
|
|
|
|
DEVICE device;
|
|
|
|
|
2012-11-21 21:53:54 +04:00
|
|
|
HANDLE thread;
|
2021-12-14 14:59:16 +03:00
|
|
|
scard_call_context* callctx;
|
2013-11-04 05:46:40 +04:00
|
|
|
wMessageQueue* IrpQueue;
|
2014-05-07 01:42:10 +04:00
|
|
|
wListDictionary* rgOutstandingMessages;
|
2015-07-15 10:50:35 +03:00
|
|
|
rdpContext* rdpcontext;
|
2022-02-14 16:59:22 +03:00
|
|
|
} SMARTCARD_DEVICE;
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
HANDLE thread;
|
|
|
|
SCARDCONTEXT hContext;
|
|
|
|
wMessageQueue* IrpQueue;
|
|
|
|
SMARTCARD_DEVICE* smartcard;
|
|
|
|
} SMARTCARD_CONTEXT;
|
2014-05-12 19:28:20 +04:00
|
|
|
|
2012-11-21 20:56:40 +04:00
|
|
|
#endif /* FREERDP_CHANNEL_SMARTCARD_CLIENT_MAIN_H */
|