aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/test
diff options
context:
space:
mode:
authorAndreas Schultz <[email protected]>2016-09-14 10:05:20 +0200
committerAndreas Schultz <[email protected]>2016-09-22 11:11:25 +0200
commit25c665f745bce31cc89e9f48980c7a9683259259 (patch)
tree863d55a0132a994d1a3acb9a80bee75144579d64 /lib/crypto/test
parente6059f94571a6c968c15b9de6b7d63ebd64f9acf (diff)
downloadotp-25c665f745bce31cc89e9f48980c7a9683259259.tar.gz
otp-25c665f745bce31cc89e9f48980c7a9683259259.tar.bz2
otp-25c665f745bce31cc89e9f48980c7a9683259259.zip
Fix compilation when OpenSSL doesn't support RC4
When OpenSSL has been configured with the "no-rc4" option, the header file rc4.h doesn't exist, and neither does the rc4 functions. Let's handle those by checking whether OPENSSL_NO_RC4 is defined.
Diffstat (limited to 'lib/crypto/test')
-rw-r--r--lib/crypto/test/old_crypto_SUITE.erl6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/crypto/test/old_crypto_SUITE.erl b/lib/crypto/test/old_crypto_SUITE.erl
index 4a6753b2ed..579b14b0eb 100644
--- a/lib/crypto/test/old_crypto_SUITE.erl
+++ b/lib/crypto/test/old_crypto_SUITE.erl
@@ -2117,6 +2117,9 @@ rc4_test(doc) ->
rc4_test(suite) ->
[];
rc4_test(Config) when is_list(Config) ->
+ if_supported(rc4, fun rc4_test_do/0).
+
+rc4_test_do() ->
CT1 = <<"Yo baby yo">>,
R1 = <<118,122,68,110,157,166,141,212,139,39>>,
K = "apaapa",
@@ -2132,6 +2135,9 @@ rc4_stream_test(doc) ->
rc4_stream_test(suite) ->
[];
rc4_stream_test(Config) when is_list(Config) ->
+ if_supported(rc4, fun rc4_stream_test_do/0).
+
+rc4_stream_test_do() ->
CT1 = <<"Yo ">>,
CT2 = <<"baby yo">>,
K = "apaapa",