Fixes.
h3rald h3rald@h3rald.com
Sat, 06 Jan 2024 18:46:30 +0100
1 files changed,
2 insertions(+),
1 deletions(-)
jump to
M
src/litestorepkg/lib/jwt.nim
→
src/litestorepkg/lib/jwt.nim
@@ -13,6 +13,7 @@
proc EVP_PKEY_new(): EVP_PKEY {.cdecl, importc.} proc X509_get_pubkey(cert: PX509): EVP_PKEY {.cdecl, importc.} +proc X509_free(cert: PX509) {.cdecl, importc.} proc EVP_DigestVerifyInit(ctx: EVP_MD_CTX; pctx: ptr EVP_PKEY_CTX; typ: EVP_MD; e: ENGINE; pkey: EVP_PKEY): cint {.cdecl, importc.} proc EVP_DigestVerifyUpdate(ctx: EVP_MD_CTX; data: pointer;@@ -125,7 +126,7 @@ if not pkeyctx.isNil:
EVP_PKEY_CTX_free(pkeyctx) if not pubkey.isNil: EVP_PKEY_free(pubkey) - if not x509.isNil and defined(X509_free): + if not x509.isNil: X509_free(x509) raise err