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. */