Skip to content
GitLab
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
6c387232
Verified
Commit
6c387232
authored
Sep 15, 2022
by
Ingo Klöcker
Committed by
Ingo Klöcker
Sep 15, 2022
Browse files
Don't ask user to certify an imported expired or revoked OpenPGP key
GnuPG-bug-id: 6155
parent
82d51381
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/commands/importcertificatescommand.cpp
View file @
6c387232
...
...
@@ -399,6 +399,10 @@ bool ImportCertificatesCommand::Private::showPleaseCertify(const GpgME::Import &
// No such key most likely not OpenPGP
return
false
;
}
if
(
!
Kleo
::
canBeCertified
(
key
))
{
// key is expired or revoked
return
false
;
}
for
(
const
auto
&
uid
:
key
.
userIDs
())
{
if
(
uid
.
validity
()
>=
GpgME
::
UserID
::
Marginal
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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