Skip to content

Commit

Permalink
fix compilation bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
JesusMcCloud committed Sep 17, 2024
1 parent 15fbcbf commit 138e562
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import org.jetbrains.dokka.gradle.DokkaMultiModuleTask

plugins {
id("at.asitplus.gradle.conventions") version "2.0.20+20240829"
id("at.asitplus.gradle.conventions") version "2.0.20+20240905"
id("com.android.library") version "8.2.2" apply (false)
}
group = "at.asitplus.signum"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ import at.asitplus.signum.indispensable.pki.X509Certificate
object JwsCertificateSerializer : TransformingSerializerTemplate<X509Certificate, ByteArray>(
parent = ByteArrayBase64Serializer,
encodeAs = X509Certificate::encodeToDer,
decodeAs = X509Certificate::decodeFromDer
decodeAs = { X509Certificate.decodeFromDer(it) } //workaround iOS compilation bug
)
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ sealed interface CryptoSignature : Asn1Encodable<Asn1Element> {

override val signature: Asn1Element = Asn1.Sequence { +r.encodeToAsn1Primitive(); +s.encodeToAsn1Primitive() }

override fun encodeToTlvBitString(): Asn1Element = encodeToDer().encodeToTlvBitString()
override fun encodeToTlvBitString(): Asn1Element = encodeToDer().encodeToAsn1BitStringPrimitive()

/**
* Two signatures are considered equal if `r` and `s` are equal.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ object ByteArrayBase64UrlSerializer: TransformingSerializerTemplate<ByteArray, S
object X509CertificateBase64UrlSerializer: TransformingSerializerTemplate<X509Certificate, ByteArray>(
parent = ByteArrayBase64UrlSerializer,
encodeAs = X509Certificate::encodeToDer,
decodeAs = X509Certificate::decodeFromDer
decodeAs = { X509Certificate.decodeFromDer(it) } // workaround iOS compilation bug
)

/** De-/serializes a public key as a Base64Url-encoded IOS encoding public key */
Expand Down

0 comments on commit 138e562

Please sign in to comment.