Fix rsa test
This commit is contained in:
parent
c1f46680f7
commit
43dd43e318
2 changed files with 9 additions and 4 deletions
|
|
@ -51,8 +51,9 @@ task test, "Test":
|
|||
execTest "tests/tpcre.nim"
|
||||
execTest "tests/tpcre.nim", "-d:FLAGS=\"-f:ast2\""
|
||||
|
||||
execTest "tests/rsa.nim"
|
||||
execTest "tests/rsa.nim", "-d:FLAGS=\"-H\""
|
||||
when defined(Linux):
|
||||
execTest "tests/rsa.nim"
|
||||
execTest "tests/rsa.nim", "-d:FLAGS=\"-H\""
|
||||
|
||||
# Platform specific tests
|
||||
when defined(Windows):
|
||||
|
|
|
|||
|
|
@ -10,6 +10,9 @@ const
|
|||
basePath = cryptoPath.parentDir
|
||||
FLAGS {.strdefine.} = ""
|
||||
|
||||
static:
|
||||
cSkipSymbol(@["ERR_load_crypto_strings", "OpenSSLDie"])
|
||||
|
||||
cPlugin:
|
||||
import strutils
|
||||
|
||||
|
|
@ -20,10 +23,11 @@ cPlugin:
|
|||
"AES_ENCRYPT", "AES_DECRYPT",
|
||||
"BIO_CTRL_PENDING", "BIO_CTRL_WPENDING",
|
||||
"BN_F_BNRAND", "BN_F_BNRAND_RANGE",
|
||||
"CRYPTO_THREADID",
|
||||
"CRYPTO_LOCK", "CRYPTO_NUM_LOCKS", "CRYPTO_THREADID",
|
||||
"EVP_CIPHER",
|
||||
"OPENSSL_VERSION",
|
||||
"PKCS7_ENCRYPT", "PKCS7_STREAM",
|
||||
"SSLEAY_VERSION",
|
||||
"SSL_TXT_ADH", "SSL_TXT_AECDH", "SSL_TXT_kECDHE"
|
||||
]:
|
||||
sym.name = "C_" & sym.name
|
||||
|
|
@ -39,4 +43,4 @@ cImport(@[
|
|||
{.passL: cryptoLPath.}
|
||||
|
||||
OpensslInit()
|
||||
echo $OPENSSL_VERSION_TEXT
|
||||
echo $OPENSSL_VERSION_TEXT
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue