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"
|
||||||
execTest "tests/tpcre.nim", "-d:FLAGS=\"-f:ast2\""
|
execTest "tests/tpcre.nim", "-d:FLAGS=\"-f:ast2\""
|
||||||
|
|
||||||
execTest "tests/rsa.nim"
|
when defined(Linux):
|
||||||
execTest "tests/rsa.nim", "-d:FLAGS=\"-H\""
|
execTest "tests/rsa.nim"
|
||||||
|
execTest "tests/rsa.nim", "-d:FLAGS=\"-H\""
|
||||||
|
|
||||||
# Platform specific tests
|
# Platform specific tests
|
||||||
when defined(Windows):
|
when defined(Windows):
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,9 @@ const
|
||||||
basePath = cryptoPath.parentDir
|
basePath = cryptoPath.parentDir
|
||||||
FLAGS {.strdefine.} = ""
|
FLAGS {.strdefine.} = ""
|
||||||
|
|
||||||
|
static:
|
||||||
|
cSkipSymbol(@["ERR_load_crypto_strings", "OpenSSLDie"])
|
||||||
|
|
||||||
cPlugin:
|
cPlugin:
|
||||||
import strutils
|
import strutils
|
||||||
|
|
||||||
|
|
@ -20,10 +23,11 @@ cPlugin:
|
||||||
"AES_ENCRYPT", "AES_DECRYPT",
|
"AES_ENCRYPT", "AES_DECRYPT",
|
||||||
"BIO_CTRL_PENDING", "BIO_CTRL_WPENDING",
|
"BIO_CTRL_PENDING", "BIO_CTRL_WPENDING",
|
||||||
"BN_F_BNRAND", "BN_F_BNRAND_RANGE",
|
"BN_F_BNRAND", "BN_F_BNRAND_RANGE",
|
||||||
"CRYPTO_THREADID",
|
"CRYPTO_LOCK", "CRYPTO_NUM_LOCKS", "CRYPTO_THREADID",
|
||||||
"EVP_CIPHER",
|
"EVP_CIPHER",
|
||||||
"OPENSSL_VERSION",
|
"OPENSSL_VERSION",
|
||||||
"PKCS7_ENCRYPT", "PKCS7_STREAM",
|
"PKCS7_ENCRYPT", "PKCS7_STREAM",
|
||||||
|
"SSLEAY_VERSION",
|
||||||
"SSL_TXT_ADH", "SSL_TXT_AECDH", "SSL_TXT_kECDHE"
|
"SSL_TXT_ADH", "SSL_TXT_AECDH", "SSL_TXT_kECDHE"
|
||||||
]:
|
]:
|
||||||
sym.name = "C_" & sym.name
|
sym.name = "C_" & sym.name
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue