kutils: fix build without openssl

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2024-06-01 05:38:13 +03:00
parent f7c1f24284
commit 87686b2b7f

View file

@ -178,7 +178,11 @@ void KPasswdStoreImpl::setCacheOnly(const bool cacheonly)
bool KPasswdStoreImpl::cacheOnly() const bool KPasswdStoreImpl::cacheOnly() const
{ {
#if defined(HAVE_OPENSSL)
return (m_cacheonly && m_passwdtimer.elapsed() < m_timeout); return (m_cacheonly && m_passwdtimer.elapsed() < m_timeout);
#else
return m_cacheonly;
#endif
} }
QString KPasswdStoreImpl::getPasswd(const QByteArray &key, const qlonglong windowid) QString KPasswdStoreImpl::getPasswd(const QByteArray &key, const qlonglong windowid)