Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
Kleopatra
Commits
9121c3fd
Commit
9121c3fd
authored
Oct 28, 2021
by
Ingo Klöcker
Browse files
Use improved helper from libkleo to check for directory servers
GnuPG-bug-id: 5672
parent
1e45d02a
Pipeline
#91931
passed with stage
in 14 minutes and 27 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/commands/lookupcertificatescommand.cpp
View file @
9121c3fd
...
...
@@ -371,19 +371,6 @@ void LookupCertificatesCommand::Private::showResult(QWidget *parent, const KeyLi
QStringLiteral
(
"lookup-certificates-truncated-result"
));
}
static
bool
haveX509DirectoryServerConfigured
()
{
const
QGpgME
::
CryptoConfig
*
const
config
=
QGpgME
::
cryptoConfig
();
if
(
!
config
)
{
return
false
;
}
const
QGpgME
::
CryptoConfigEntry
*
entry
=
getCryptoConfigEntry
(
config
,
"dirmngr"
,
"LDAP Server"
);
bool
entriesExist
=
entry
&&
!
entry
->
urlValueList
().
empty
();
entry
=
getCryptoConfigEntry
(
config
,
"gpgsm"
,
"keyserver"
);
entriesExist
|=
entry
&&
!
entry
->
urlValueList
().
empty
();
return
entriesExist
;
}
bool
LookupCertificatesCommand
::
Private
::
checkConfig
()
const
{
const
bool
ok
=
haveKeyserverConfigured
()
||
haveX509DirectoryServerConfigured
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment