summaryrefslogtreecommitdiffstats
path: root/tdecore/tdehw
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2015-09-18 17:52:20 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2015-09-18 17:52:20 -0500
commit991dd06fc600f1f99b5aff35734f8b77a8d78f1c (patch)
treed6512560797ddd031b81f70d3726270d7c0cbba9 /tdecore/tdehw
parentb8391444124341a9b90688c6dcc260d77e42df03 (diff)
downloadtdelibs-991dd06fc600f1f99b5aff35734f8b77a8d78f1c.tar.gz
tdelibs-991dd06fc600f1f99b5aff35734f8b77a8d78f1c.zip
Add PKCS provider library accessor
Diffstat (limited to 'tdecore/tdehw')
-rw-r--r--tdecore/tdehw/tdecryptographiccarddevice.cpp4
-rw-r--r--tdecore/tdehw/tdecryptographiccarddevice.h5
2 files changed, 9 insertions, 0 deletions
diff --git a/tdecore/tdehw/tdecryptographiccarddevice.cpp b/tdecore/tdehw/tdecryptographiccarddevice.cpp
index dd3c77888..faa803fab 100644
--- a/tdecore/tdehw/tdecryptographiccarddevice.cpp
+++ b/tdecore/tdehw/tdecryptographiccarddevice.cpp
@@ -821,5 +821,9 @@ int TDECryptographicCardDevice::createNewSecretRSAKeyFromCertificate(TQByteArray
return retcode;
}
+TQString TDECryptographicCardDevice::pkcsProviderLibrary() {
+ return OPENSC_PKCS11_PROVIDER_LIBRARY;
+}
+
#include "tdecryptographiccarddevice.moc"
#include "tdecryptographiccarddevice_private.moc"
diff --git a/tdecore/tdehw/tdecryptographiccarddevice.h b/tdecore/tdehw/tdecryptographiccarddevice.h
index ba4007906..4e6cafa70 100644
--- a/tdecore/tdehw/tdecryptographiccarddevice.h
+++ b/tdecore/tdehw/tdecryptographiccarddevice.h
@@ -142,6 +142,11 @@ class TDECORE_EXPORT TDECryptographicCardDevice : public TDEGenericDevice
*/
static int createNewSecretRSAKeyFromCertificate(TQByteArray &plaintext, TQByteArray &ciphertext, X509* certificate);
+ /**
+ * @return The built-in PKCS provider library file name, including the full path
+ */
+ static TQString pkcsProviderLibrary();
+
public slots:
void cardStatusChanged(TQString status, TQString atr);
void workerRequestedPin(TQString prompt);