991dd06f | 2015-09-18 17:52:20 | Timothy Pearson |
Add PKCS provider library accessor |
||
M tdecore/tdehw/tdecryptographiccarddevice.cpp M tdecore/tdehw/tdecryptographiccarddevice.h |
||
diff --git a/tdecore/tdehw/tdecryptographiccarddevice.cpp b/tdecore/tdehw/tdecryptographiccarddevice.cpp index dd3c778..faa803f 100644 --- a/tdecore/tdehw/tdecryptographiccarddevice.cpp +++ b/tdecore/tdehw/tdecryptographiccarddevice.cpp @@ -821,5 +821,9 @@ 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 ba40079..4e6cafa 100644 --- a/tdecore/tdehw/tdecryptographiccarddevice.h +++ b/tdecore/tdehw/tdecryptographiccarddevice.h @@ -142,6 +142,11 @@ */ 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); |