aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public_key/test/public_key_SUITE.erl
diff options
context:
space:
mode:
authorChristian von Roques <[email protected]>2011-09-06 19:28:21 +0200
committerChristian von Roques <[email protected]>2011-09-06 19:45:11 +0200
commitc7e5f7576e213060cbb332be64a7c3798f6a2cc2 (patch)
treeaefc9a5754b468d12c8ed01d653ef0a5807c22bb /lib/public_key/test/public_key_SUITE.erl
parent82897cc8f399fab832148711b586215c9a3f7af1 (diff)
downloadotp-c7e5f7576e213060cbb332be64a7c3798f6a2cc2.tar.gz
otp-c7e5f7576e213060cbb332be64a7c3798f6a2cc2.tar.bz2
otp-c7e5f7576e213060cbb332be64a7c3798f6a2cc2.zip
Support md2WithRSAEncryption certificates in public_key
Diffstat (limited to 'lib/public_key/test/public_key_SUITE.erl')
-rw-r--r--lib/public_key/test/public_key_SUITE.erl5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/public_key/test/public_key_SUITE.erl b/lib/public_key/test/public_key_SUITE.erl
index b11e4d092a..a9c198c581 100644
--- a/lib/public_key/test/public_key_SUITE.erl
+++ b/lib/public_key/test/public_key_SUITE.erl
@@ -537,7 +537,10 @@ rsa_sign_verify(Config) when is_list(Config) ->
false = public_key:verify(Msg, sha, <<1:8, RSASign/binary>>, PublicRSA),
RSASign1 = public_key:sign(Msg, md5, PrivateRSA),
- true = public_key:verify(Msg, md5, RSASign1, PublicRSA).
+ true = public_key:verify(Msg, md5, RSASign1, PublicRSA),
+
+ RSASign2 = public_key:sign(Msg, md2, PrivateRSA),
+ true = public_key:verify(Msg, md2, RSASign2, PublicRSA).
%%--------------------------------------------------------------------