aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/src
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2012-10-02 11:16:18 +0200
committerSverker Eriksson <[email protected]>2012-12-04 18:14:50 +0100
commit62f4d2b3af590ec9ca76baca01f71c19b2e53211 (patch)
tree451de78ba6d932336a3fe0263fbabafa421b3a69 /lib/crypto/src
parent0ba0ffb914fa423ef34faa233f5bd92e9fa753ab (diff)
downloadotp-62f4d2b3af590ec9ca76baca01f71c19b2e53211.tar.gz
otp-62f4d2b3af590ec9ca76baca01f71c19b2e53211.tar.bz2
otp-62f4d2b3af590ec9ca76baca01f71c19b2e53211.zip
crypto: Throw notsup for DES3 CFB encryption for old openssl
An attempt to enable the use of openssl 0.9.7
Diffstat (limited to 'lib/crypto/src')
-rw-r--r--lib/crypto/src/crypto.erl8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/crypto/src/crypto.erl b/lib/crypto/src/crypto.erl
index 21f507f153..729ce95a7a 100644
--- a/lib/crypto/src/crypto.erl
+++ b/lib/crypto/src/crypto.erl
@@ -626,7 +626,13 @@ des3_cfb_decrypt(Key1, Key2, Key3, IVec, Data) ->
des_ede3_cfb_decrypt(Key1, Key2, Key3, IVec, Data) ->
des_ede3_cfb_crypt(Key1, Key2, Key3, IVec, Data, false).
-des_ede3_cfb_crypt(_Key1, _Key2, _Key3, _IVec, _Data, _IsEncrypt) -> ?nif_stub.
+des_ede3_cfb_crypt(Key1, Key2, Key3, IVec, Data, IsEncrypt) ->
+ case des_ede3_cfb_crypt_nif(Key1,Key2,Key3,IVec,Data,IsEncrypt) of
+ notsup -> erlang:error(notsup);
+ Bin -> Bin
+ end.
+
+des_ede3_cfb_crypt_nif(_Key1, _Key2, _Key3, _IVec, _Data, _IsEncrypt) -> ?nif_stub.
%%
%% Blowfish