mirror of
https://github.com/vacp2p/nim-jwt.git
synced 2026-01-08 03:43:54 -05:00
chore: update bearssl_pkey_decoder repo/versionv
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user