mirror of
https://github.com/vacp2p/nim-jwt.git
synced 2026-01-09 20:27:56 -05:00
fix nim 0.19 strings, libHasSymbol appears not to work on mac
This commit is contained in:
@@ -3,7 +3,7 @@ import openssl, linktools
|
||||
# TODO: Linkage flags should probably need more attention because of different
|
||||
# openssl versions. E.g. DigestSign* functions are not available in old openssl.
|
||||
when defined(macosx):
|
||||
const libcrypto = "crypto.35"
|
||||
const libcrypto = "crypto"
|
||||
else:
|
||||
const libcrypto = "crypto"
|
||||
|
||||
@@ -14,7 +14,7 @@ export EVP_PKEY_RSA
|
||||
const
|
||||
HMAC_MAX_MD_CBLOCK* = 128
|
||||
|
||||
const sslIsOld = libHasSymbol(libcrypto, "EVP_MD_CTX_create")
|
||||
const sslIsOld = true #libHasSymbol(libcrypto, "EVP_MD_CTX_create")
|
||||
|
||||
type
|
||||
EVP_MD* = SslPtr
|
||||
|
||||
Reference in New Issue
Block a user