hopenssl 1.4 → 1.6
raw patch · 4 files changed
+6/−27 lines, 4 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
- OpenSSL.Digest: MD2 :: MessageDigest
- OpenSSL.Digest: mdMD2 :: IO MDEngine
Files
- OpenSSL/Digest.hs +0/−11
- OpenSSL/Digest/ByteString.hs +0/−6
- OpenSSL/Digest/ByteString/Lazy.hs +0/−6
- hopenssl.cabal +6/−4
OpenSSL/Digest.hs view
@@ -27,7 +27,6 @@ > *Digest> example "open sesame" >>= putStr . unlines > Null:- > MD2: a22a0b245bdddb00b5293ad590297b25 > MD5: 54ef36ec71201fdf9d1423fd26f97f6b > SHA: 2ccefef64c76ac0d42ca1657457977675890c42f > SHA1: 5bcaff7f22ff533ca099b3408ead876c0ebba9a7@@ -50,7 +49,6 @@ data MessageDigest = Null -- ^ 0 bit- | MD2 -- ^ 128 bit | MD5 -- ^ 128 bit | SHA -- ^ 160 bit | SHA1 -- ^ 160 bit@@ -186,7 +184,6 @@ -- ** Message Digest Engines foreign import ccall unsafe "EVP_md_null" mdNull :: IO MDEngine-foreign import ccall unsafe "EVP_md2" mdMD2 :: IO MDEngine foreign import ccall unsafe "EVP_md5" mdMD5 :: IO MDEngine foreign import ccall unsafe "EVP_sha" mdSHA :: IO MDEngine foreign import ccall unsafe "EVP_sha1" mdSHA1 :: IO MDEngine@@ -199,7 +196,6 @@ toMDEngine :: MessageDigest -> IO MDEngine toMDEngine Null = mdNull-toMDEngine MD2 = mdMD2 toMDEngine MD5 = mdMD5 toMDEngine SHA = mdSHA toMDEngine SHA1 = mdSHA1@@ -219,10 +215,3 @@ w1:w2:[] -> w1:w2:[] w2:[] -> '0':w2:[] _ -> error "showHex returned []"----- ----- Configure Emacs ----------- Local Variables: ***--- haskell-program-name: "ghci -ignore-package hopenssl -Wall -lcrypto" ***--- End: ***
OpenSSL/Digest/ByteString.hs view
@@ -36,9 +36,3 @@ unsafeUseAsCStringLen bs $ \(ptr, len) -> digestUpdate ctx (castPtr ptr) (fromIntegral len) return (fromEnum l)---- ----- Configure Emacs ----------- Local Variables: ***--- haskell-program-name: "ghci -ignore-package hopenssl -Wall -lcrypto" ***--- End: ***
OpenSSL/Digest/ByteString/Lazy.hs view
@@ -30,9 +30,3 @@ update :: ByteString -> Digest Int update = fmap sum . mapM BS.update . toChunks---- ----- Configure Emacs ----------- Local Variables: ***--- haskell-program-name: "ghci -ignore-package hopenssl -Wall -lcrypto" ***--- End: ***
hopenssl.cabal view
@@ -1,9 +1,11 @@ Name: hopenssl-Version: 1.4-Copyright: (c) 2004-2010 Peter Simons+Version: 1.6+Copyright: (c) 2004-2011 Peter Simons License: BSD3 License-File: LICENSE-Author: Peter Simons <simons@cryp.to>, Jesper Louis Andersen <jesper.louis.andersen@gmail.com>+Author: Peter Simons <simons@cryp.to>,+ Jesper Louis Andersen <jesper.louis.andersen@gmail.com>,+ Markus Rothe <markus@unixforces.net> Maintainer: Peter Simons <simons@cryp.to> Homepage: http://gitorious.org/hopenssl Category: Foreign, Cryptography@@ -15,7 +17,7 @@ EVP digest interface. Cabal-Version: >= 1.6 Build-Type: Simple-Tested-With: GHC == 6.12.1+Tested-With: GHC == 6.12.3 Source-Repository head Type: git