diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2021-05-17 18:10:38 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2021-05-18 02:14:50 +0200 |
commit | e031e12d06c77e0a05ad0c30c21f3afea94764af (patch) | |
tree | 0ff0fc4a899b33b2fe83f7c3a2c98b6f48a2f9a9 /kdesktop/lock/lockprocess.cpp | |
parent | 1389e296969df0acf7f393b698a3a0f1fb572026 (diff) | |
download | tdebase-e031e12d06c77e0a05ad0c30c21f3afea94764af.tar.gz tdebase-e031e12d06c77e0a05ad0c30c21f3afea94764af.zip |
Respect build option WITH_TDEHWLIB, otherwise it can lead to FTBFS in special cases.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'kdesktop/lock/lockprocess.cpp')
-rw-r--r-- | kdesktop/lock/lockprocess.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/kdesktop/lock/lockprocess.cpp b/kdesktop/lock/lockprocess.cpp index bb68186cb..b2db4a5cf 100644 --- a/kdesktop/lock/lockprocess.cpp +++ b/kdesktop/lock/lockprocess.cpp @@ -19,7 +19,7 @@ #include <config.h> #include <tdeglobal.h> -#ifdef __TDE_HAVE_TDEHWLIB +#ifdef WITH_TDEHWLIB #include <ksslcertificate.h> #include <kuser.h> #include <tdehardwaredevices.h> @@ -298,7 +298,7 @@ LockProcess::LockProcess() } } -#ifdef __TDE_HAVE_TDEHWLIB +#ifdef WITH_TDEHWLIB // Initialize SmartCard readers TDEGenericDevice *hwdevice; TDEHardwareDevices *hwdevices = TDEGlobal::hardwareDevices(); @@ -2832,7 +2832,7 @@ void LockProcess::processInputPipeCommand(TQString inputcommand) { } void LockProcess::cryptographicCardInserted(TDECryptographicCardDevice* cdevice) { -#ifdef __TDE_HAVE_TDEHWLIB +#ifdef WITH_TDEHWLIB TQString login_name = TQString::null; X509CertificatePtrList certList = cdevice->cardX509Certificates(); if (certList.count() > 0) { @@ -2870,7 +2870,7 @@ void LockProcess::cryptographicCardInserted(TDECryptographicCardDevice* cdevice) } void LockProcess::cryptographicCardRemoved(TDECryptographicCardDevice* cdevice) { -#ifdef __TDE_HAVE_TDEHWLIB +#ifdef WITH_TDEHWLIB PasswordDlg* passDlg = dynamic_cast<PasswordDlg*>(currentDialog); if (passDlg) { passDlg->resetCardLogin(); @@ -2884,7 +2884,7 @@ void LockProcess::cryptographicCardRemoved(TDECryptographicCardDevice* cdevice) void LockProcess::signalPassDlgToAttemptCardLogin() { -#ifdef __TDE_HAVE_TDEHWLIB +#ifdef WITH_TDEHWLIB PasswordDlg* passDlg = dynamic_cast<PasswordDlg*>(currentDialog); if (passDlg && m_loginCardDevice) { passDlg->attemptCardLogin(); @@ -2900,7 +2900,7 @@ void LockProcess::signalPassDlgToAttemptCardLogin() void LockProcess::signalPassDlgToAttemptCardAbort() { -#ifdef __TDE_HAVE_TDEHWLIB +#ifdef WITH_TDEHWLIB PasswordDlg* passDlg = dynamic_cast<PasswordDlg*>(currentDialog); if (passDlg) { passDlg->resetCardLogin(); @@ -2916,7 +2916,7 @@ void LockProcess::signalPassDlgToAttemptCardAbort() void LockProcess::cryptographicCardPinRequested(TQString prompt, TDECryptographicCardDevice* cdevice) { -#ifdef __TDE_HAVE_TDEHWLIB +#ifdef WITH_TDEHWLIB TQCString password; TQString pin_entry; @@ -2937,7 +2937,7 @@ void LockProcess::cryptographicCardPinRequested(TQString prompt, TDECryptographi TDECryptographicCardDevice* LockProcess::cryptographicCardDevice() { -#ifdef __TDE_HAVE_TDEHWLIB +#ifdef WITH_TDEHWLIB return m_loginCardDevice; #else return NULL; |