mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
kutils: build fix for the case when HAVE_OPENSSL is not defined
for reference: https://github.com/fluxer/katana/issues/33 Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
c775a6b033
commit
43e773758a
1 changed files with 6 additions and 0 deletions
|
@ -254,13 +254,19 @@ bool KPasswdStoreImpl::ensurePasswd(const qlonglong windowid, const bool showerr
|
|||
|
||||
bool KPasswdStoreImpl::hasPasswd() const
|
||||
{
|
||||
#if defined(HAVE_OPENSSL)
|
||||
return !m_passwd.isEmpty();
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
void KPasswdStoreImpl::clearPasswd()
|
||||
{
|
||||
#if defined(HAVE_OPENSSL)
|
||||
m_passwd.clear();
|
||||
m_passwdiv.clear();
|
||||
#endif
|
||||
}
|
||||
|
||||
QString KPasswdStoreImpl::encryptPasswd(const QString &passwd, bool *ok) const
|
||||
|
|
Loading…
Add table
Reference in a new issue