summaryrefslogtreecommitdiff
path: root/test/crypto/testcrypto.cpp
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2018-02-27 22:39:10 +0000
committerChris Wilson <chris+github@qwirx.com>2018-03-03 10:47:39 +0000
commitc2547266775954292d78ab90b1af925d57c3f9e3 (patch)
treef14371102d734dab556b8771221de00f81390272 /test/crypto/testcrypto.cpp
parent13116fff3d8932eb1939e3b8c04dfdb8f14ecaa0 (diff)
Reimplement OpenSSL 1.1 support
This time I have made the minimum number of changes necessary to make OpenSSL 1.1 work, and also added more tests which would have caught the issues with the previous attempt. Thanks to Johann Glaser for testing out the new version and reporting the issue with decryption!
Diffstat (limited to 'test/crypto/testcrypto.cpp')
-rw-r--r--test/crypto/testcrypto.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/crypto/testcrypto.cpp b/test/crypto/testcrypto.cpp
index 003bf992..200bdd0f 100644
--- a/test/crypto/testcrypto.cpp
+++ b/test/crypto/testcrypto.cpp
@@ -338,7 +338,7 @@ int test(int argc, const char *argv[])
// Check rolling checksums
uint8_t *checkdata_blk = (uint8_t *)malloc(CHECKSUM_DATA_SIZE);
uint8_t *checkdata = checkdata_blk;
- RAND_pseudo_bytes(checkdata, CHECKSUM_DATA_SIZE);
+ RAND_bytes(checkdata, CHECKSUM_DATA_SIZE);
for(int size = CHECKSUM_BLOCK_SIZE_BASE; size <= CHECKSUM_BLOCK_SIZE_LAST; ++size)
{
// Test skip-roll code