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
libkleo
Commits
5a518549
Commit
5a518549
authored
Oct 28, 2021
by
Ingo Klöcker
Browse files
Add helper for checking if X.509 directory servers are configured
GnuPG-bug-id: 5672
parent
c891fe0a
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/utils/gnupg.cpp
View file @
5a518549
...
...
@@ -452,6 +452,13 @@ QString Kleo::keyserver()
return
result
;
}
bool
Kleo
::
haveX509DirectoryServerConfigured
()
{
return
!
getCryptoConfigUrlList
(
"dirmngr"
,
"ldapserver"
).
empty
()
||
!
getCryptoConfigUrlList
(
"dirmngr"
,
"LDAP Server"
).
empty
()
||
!
getCryptoConfigUrlList
(
"gpgsm"
,
"keyserver"
).
empty
();
}
bool
Kleo
::
gpgComplianceP
(
const
char
*
mode
)
{
const
auto
conf
=
QGpgME
::
cryptoConfig
();
...
...
src/utils/gnupg.h
View file @
5a518549
...
...
@@ -65,6 +65,11 @@ KLEO_EXPORT bool haveKeyserverConfigured();
*/
KLEO_EXPORT
QString
keyserver
();
/** Returns true, if GnuPG knows which server to use for directory service
* operations for X.509 certificates.
*/
KLEO_EXPORT
bool
haveX509DirectoryServerConfigured
();
/* Use gnupgUsesDeVsCompliance() or gnupgIsDeVsCompliant() instead. */
KLEO_DEPRECATED_EXPORT
bool
gpgComplianceP
(
const
char
*
mode
);
...
...
Write
Preview
Markdown
is supported
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