diff options
author | Ingela Anderton Andin <[email protected]> | 2013-04-18 10:47:52 +0200 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2013-05-08 10:39:18 +0200 |
commit | d565a551ff2605c8abca0009ab90fbb7687a4097 (patch) | |
tree | ac5eb32465c5b1d273fbb66bcd18d066eadc7792 /lib/ssl/src/ssl_certificate_db.erl | |
parent | 7030e089d1090e3b9a95c96737b36d6d6fc6ef97 (diff) | |
download | otp-d565a551ff2605c8abca0009ab90fbb7687a4097.tar.gz otp-d565a551ff2605c8abca0009ab90fbb7687a4097.tar.bz2 otp-d565a551ff2605c8abca0009ab90fbb7687a4097.zip |
ssl: Make better use of the crypto API
Use the functions in crypto that we want to keep in the API.
Diffstat (limited to 'lib/ssl/src/ssl_certificate_db.erl')
-rw-r--r-- | lib/ssl/src/ssl_certificate_db.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ssl/src/ssl_certificate_db.erl b/lib/ssl/src/ssl_certificate_db.erl index ff36b5ee26..cdff73336e 100644 --- a/lib/ssl/src/ssl_certificate_db.erl +++ b/lib/ssl/src/ssl_certificate_db.erl @@ -100,7 +100,7 @@ add_trusted_certs(_Pid, {der, DerList}, [CerDb, _,_]) -> {ok, NewRef}; add_trusted_certs(_Pid, File, [CertsDb, RefDb, PemChache] = Db) -> - MD5 = crypto:md5(File), + MD5 = crypto:hash(md5, File), case lookup_cached_pem(Db, MD5) of [{_Content, Ref}] -> ref_count(Ref, RefDb, 1), |