Fix PEM callback compatibility and bump version to 0.4.0

This commit is contained in:
jdb
2026-09-08 13:12:47 -05:00
parent 0f3b9bfe9a
commit cf16a126c6
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
# Package
version = "0.3.0"
version = "0.4.0"
author = "Jonathan Bernard"
description = "Full JWT, JWS, JWE, and JWK implementation for Nim, compliant with RFCs 7515-7519."
license = "GPL-3.0-or-later"
+1 -1
View File
@@ -3,7 +3,7 @@ import bearssl
# Taken from nim-bearssl/decls.nim
{.pragma: bearSslFunc, cdecl, gcsafe, noSideEffect, raises: [].}
type BearPemDecoderCallback* = proc(destCtx: pointer, src: pointer, dataLen: uint) {.bearSslFunc.}
type BearPemDecoderCallback* = proc(destCtx: pointer, src: pointer, dataLen: csize_t) {.bearSslFunc.}
proc decodePem*(
pem: string,