mirror of
https://github.com/pgpainless/pgpainless.git
synced 2025-12-08 21:31:08 +01:00
Revert "Ensure proper compatibility with keys with missing direct-key or certification self-sigs"
This reverts commit 620c1fc96a.
This commit is contained in:
parent
fdf49cfafb
commit
391549a7d6
3 changed files with 0 additions and 118 deletions
|
|
@ -67,10 +67,6 @@ abstract class KeyAccessor(protected val info: KeyRingInfo, protected val key: S
|
|||
info.getLatestUserIdCertification(userId).let { if (it != null) return it }
|
||||
}
|
||||
|
||||
if (info.latestDirectKeySelfSignature != null) {
|
||||
return info.latestDirectKeySelfSignature
|
||||
}
|
||||
|
||||
return info.getCurrentSubkeyBindingSignature(key.subkeyId)
|
||||
?: throw NoSuchElementException(
|
||||
"Key does not carry acceptable self-signature signature.")
|
||||
|
|
|
|||
|
|
@ -172,11 +172,8 @@ class KeyRingInfo(
|
|||
primaryUserIdCertification?.let { getKeyExpirationTimeAsDate(it, publicKey) }
|
||||
|
||||
if (latestDirectKeySelfSignature == null && primaryUserIdCertification == null) {
|
||||
/*
|
||||
throw NoSuchElementException(
|
||||
"No direct-key signature and no user-id signature found.")
|
||||
*/
|
||||
return null
|
||||
}
|
||||
if (directKeyExpirationDate != null && userIdExpirationDate == null) {
|
||||
return directKeyExpirationDate
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue