summaryrefslogtreecommitdiffstats
path: root/tdecore/tdehw/tdecryptographiccarddevice_private.h
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2015-09-14 15:08:14 -0500
committerTimothy Pearson <[email protected]>2015-09-14 15:08:14 -0500
commit402781f094e9a2450942f9d58215da281ba080c2 (patch)
tree2132931e47d6028e9aed2b9c302740dae0a2c29d /tdecore/tdehw/tdecryptographiccarddevice_private.h
parentffa54887cef6a8e36b2d63e7e9139ac11863a525 (diff)
downloadtdelibs-402781f094e9a2450942f9d58215da281ba080c2.tar.gz
tdelibs-402781f094e9a2450942f9d58215da281ba080c2.zip
Add cryptographic card decryption method to tdehwlib
Diffstat (limited to 'tdecore/tdehw/tdecryptographiccarddevice_private.h')
-rw-r--r--tdecore/tdehw/tdecryptographiccarddevice_private.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/tdecore/tdehw/tdecryptographiccarddevice_private.h b/tdecore/tdehw/tdecryptographiccarddevice_private.h
index 4e6a588c4..3371098f2 100644
--- a/tdecore/tdehw/tdecryptographiccarddevice_private.h
+++ b/tdecore/tdehw/tdecryptographiccarddevice_private.h
@@ -53,6 +53,13 @@ class CryptoCardDeviceWatcher : public TQObject
signals:
void statusChanged(TQString, TQString);
+ void pinRequested(TQString);
+
+ public:
+ int initializePkcs();
+ TQString doPinRequest(TQString prompt);
+ void setProvidedPin(TQString pin);
+ void enablePINEntryCallbacks(bool enable);
public:
TDECryptographicCardDevice *cardDevice;
@@ -62,6 +69,9 @@ class CryptoCardDeviceWatcher : public TQObject
private:
bool m_terminationRequested;
+ bool m_pinCallbacksEnabled;
+ TQString m_cardPIN;
+ bool m_cardPINPromptDone;
#ifdef WITH_PCSC
SCARDCONTEXT m_cardContext;
SCARD_READERSTATE *m_readerStates;