chore: update bearssl_pkey_decoder repo/versionv

This commit is contained in:
Gabriel Cruz
2025-05-19 15:28:13 -03:00
parent 08400f1a76
commit 18f8378de5
2 changed files with 2 additions and 6 deletions

View File

@@ -7,4 +7,4 @@ license = "MIT"
# Deps
requires "nim >= 0.19.0"
requires "bearssl"
requires "https://github.com/vacp2p/bearssl_pkey_decoder"
requires "https://github.com/vacp2p/bearssl_pkey_decoder#21dd3710df9345ed2ad8bf8f882761e07863b8e0"

View File

@@ -47,11 +47,7 @@ proc pemDecoderLoop(
proc decodeFromPem(skCtx: var SkeyDecoderContext, pem: string) =
skeyDecoderInit(skCtx)
pemDecoderLoop(
pem,
cast[proc(ctx: pointer, pbytes: pointer, nbytes: uint) {.bearSslFunc.}](skeyDecoderPush),
addr skCtx,
)
pemDecoderLoop(pem, skeyDecoderPushShim, addr skCtx)
if skeyDecoderLastError(skCtx) != 0:
invalidPemKey()