From f8b53f0eda4cf1dad263636b5660952503beea36 Mon Sep 17 00:00:00 2001 From: Paul Schaub Date: Wed, 24 Jan 2024 19:05:50 +0100 Subject: [PATCH] Add back accidentally deleted getFeatures() methods --- .../signature/subpackets/SelfSignatureSubpackets.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pgpainless-core/src/main/kotlin/org/pgpainless/signature/subpackets/SelfSignatureSubpackets.kt b/pgpainless-core/src/main/kotlin/org/pgpainless/signature/subpackets/SelfSignatureSubpackets.kt index d89f763a..691b6e6c 100644 --- a/pgpainless-core/src/main/kotlin/org/pgpainless/signature/subpackets/SelfSignatureSubpackets.kt +++ b/pgpainless-core/src/main/kotlin/org/pgpainless/signature/subpackets/SelfSignatureSubpackets.kt @@ -171,6 +171,12 @@ interface SelfSignatureSubpackets : BaseSignatureSubpackets { fun setFeatures(features: Features?): SelfSignatureSubpackets + fun getFeatures(): List = getFeaturesPacket() + ?.let { Feature.fromBitmask(it.features.toInt()) } + .orEmpty() + + fun getFeaturesPacket(): Features? + companion object { /** Factory method for a [Callback] that does nothing. */