From 87686b2b7f85046aa97bca572701b911620ea3d8 Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Sat, 1 Jun 2024 05:38:13 +0300 Subject: [PATCH] kutils: fix build without openssl Signed-off-by: Ivailo Monev --- kutils/kpasswdstore/kded/kpasswdstoreimpl.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kutils/kpasswdstore/kded/kpasswdstoreimpl.cpp b/kutils/kpasswdstore/kded/kpasswdstoreimpl.cpp index 2ec272f3..3066c4bc 100644 --- a/kutils/kpasswdstore/kded/kpasswdstoreimpl.cpp +++ b/kutils/kpasswdstore/kded/kpasswdstoreimpl.cpp @@ -178,7 +178,11 @@ void KPasswdStoreImpl::setCacheOnly(const bool cacheonly) bool KPasswdStoreImpl::cacheOnly() const { +#if defined(HAVE_OPENSSL) return (m_cacheonly && m_passwdtimer.elapsed() < m_timeout); +#else + return m_cacheonly; +#endif } QString KPasswdStoreImpl::getPasswd(const QByteArray &key, const qlonglong windowid)