aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public_key/src/pubkey_cert.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/src/pubkey_cert.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/src/pubkey_cert.erl')
-rw-r--r--lib/public_key/src/pubkey_cert.erl4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/public_key/src/pubkey_cert.erl b/lib/public_key/src/pubkey_cert.erl
index 5ab9642279..61082a1ec5 100644
--- a/lib/public_key/src/pubkey_cert.erl
+++ b/lib/public_key/src/pubkey_cert.erl
@@ -38,7 +38,7 @@
%%====================================================================
%%--------------------------------------------------------------------
--spec verify_data(DER::binary()) -> {md5 | sha, binary(), binary()}.
+-spec verify_data(DER::binary()) -> {md2 | md5 | sha, binary(), binary()}.
%%
%% Description: Extracts data from DerCert needed to call public_key:verify/4.
%%--------------------------------------------------------------------
@@ -378,6 +378,8 @@ digest_type(?sha1WithRSAEncryption) ->
sha;
digest_type(?md5WithRSAEncryption) ->
md5;
+digest_type(?md2WithRSAEncryption) ->
+ md2;
digest_type(?'id-dsa-with-sha1') ->
sha.