all repos — litestore @ c3fe7d70fc68a5208107d057ce4d4f701b3933a7

A minimalist nosql document store.

Fixes.
h3rald h3rald@h3rald.com
Sat, 06 Jan 2024 18:46:30 +0100
commit

c3fe7d70fc68a5208107d057ce4d4f701b3933a7

parent

bb3eb74365d4a6a983777be892711f88ffdefa18

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M src/litestorepkg/lib/jwt.nimsrc/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