store headers only once, refs #7
This commit is contained in:
51
actlibrary/include/actSCardLock.h
Normal file
51
actlibrary/include/actSCardLock.h
Normal file
@@ -0,0 +1,51 @@
|
||||
// ---------------------------------------------------------------------------
|
||||
// Name: actSCardLock.h
|
||||
// Product: cv act library
|
||||
// Purpose: Smartcard transaction lock
|
||||
//
|
||||
// Copyright: (c) 2009 cv cryptovision GmbH
|
||||
// all rights reserved
|
||||
// Licence: The conditions for the use of this software are regulated
|
||||
// in the cv act library licence agreement.
|
||||
//
|
||||
// Autor: Markus Tesche
|
||||
// Date: 07/10/2009
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
#ifndef ACT_SCardLock_H
|
||||
#define ACT_SCardLock_H
|
||||
|
||||
#include "actEnv.h"
|
||||
|
||||
#if defined(ACT_64)
|
||||
# define LOCK_SIZE 32
|
||||
#else
|
||||
# define LOCK_SIZE 16
|
||||
#endif
|
||||
|
||||
namespace act
|
||||
{
|
||||
class ISCardOS;
|
||||
|
||||
class SCardLock
|
||||
{
|
||||
private:
|
||||
SCardLock() { }
|
||||
SCardLock(const SCardLock&) { }
|
||||
|
||||
public:
|
||||
SCardLock(ISCardOS* os);
|
||||
~SCardLock();
|
||||
|
||||
void Lock(ISCardOS* os);
|
||||
void Unlock();
|
||||
|
||||
private:
|
||||
byte m_lock[LOCK_SIZE];
|
||||
};
|
||||
|
||||
} // namespace act
|
||||
|
||||
#undef LOCK_SIZE
|
||||
|
||||
#endif // ACT_SCardLock_H
|
Reference in New Issue
Block a user