all repos — litestore @ b887fd05e067845886d4ff5389f6fdb0386ad758

A minimalist nosql document store.

Fixes.
h3rald h3rald@h3rald.com
Sat, 30 Dec 2023 11:30:59 +0100
commit

b887fd05e067845886d4ff5389f6fdb0386ad758

parent

64eccb2d7795b5328cf95774ac5770b596ee2da6

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

jump to
M .gitignore.gitignore

@@ -22,6 +22,6 @@ *.db-shm

*.db-wal *.nim.bak litestore_linkerArgs.txt -token.txt -x5c.cert +token*.txt +x5c*.cert jwt
M src/litestorepkg/lib/jwt.nimsrc/litestorepkg/lib/jwt.nim

@@ -21,7 +21,7 @@ proc EVP_DigestVerifyFinal(ctx: EVP_MD_CTX; data: pointer;

len: cuint): cint {.cdecl, importc.} proc getLastError(): string = - return $ERR_error_string(ERR_get_error(), nil) + return $ERR_error_string(ERR_get_error(), nil) proc raiseJwtError(msg: string) = let err = getLastError()

@@ -120,18 +120,18 @@ EVP_MD_CTX_destroy(mdctx)

#if not pkeyctx.isNil: # EVP_PKEY_CTX_free(pkeyctx) if not pubkey.isNil: - EVP_PKEY_free(pubkey) + EVP_PKEY_free(pubkey) if not x509.isNil: X509_free(x509) when isMainModule: - let token = "token.txt".readFile - let x5c = "x5c.cert".readFile - let jwt = token.newJwt + let token = "token.txt".readFile + let x5c = "x5c.cert".readFile + let jwt = token.newJwt - echo token - echo "---" - echo x5c - jwt.verifySignature(x5c) + echo token + echo "---" + echo x5c + jwt.verifySignature(x5c)