1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-11 11:08:02 -06:00

EMV keyfile support: Overall code improvements and bug fixes

This commit is contained in:
Mounir IDRASSI
2023-06-29 00:06:20 +02:00
parent 502ab9112a
commit 034b64f415
81 changed files with 4654 additions and 1574 deletions

27
src/Common/SCard.h Normal file
View File

@@ -0,0 +1,27 @@
#ifndef TC_HEADER_Common_SCard
#define TC_HEADER_Common_SCard
#include "Platform/PlatformBase.h"
#include "SCardManager.h"
namespace VeraCrypt
{
class SCard
{
protected:
shared_ptr<SCardReader> m_reader;
public:
static SCardManager manager;
SCard();
SCard(size_t slotId);
SCard(const SCard& other);
SCard(SCard&& other);
SCard& operator = (const SCard& other);
SCard& operator = (SCard&& other);
virtual ~SCard();
bool IsCardHandleValid() const;
};
}
#endif // TC_HEADER_Common_SCard