aboutsummaryrefslogtreecommitdiff
path: root/src/BTLS/BoringSSL/Digest.chs
diff options
context:
space:
mode:
Diffstat (limited to 'src/BTLS/BoringSSL/Digest.chs')
-rw-r--r--src/BTLS/BoringSSL/Digest.chs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/BTLS/BoringSSL/Digest.chs b/src/BTLS/BoringSSL/Digest.chs
index c919125..793cc68 100644
--- a/src/BTLS/BoringSSL/Digest.chs
+++ b/src/BTLS/BoringSSL/Digest.chs
@@ -19,6 +19,7 @@ module BTLS.BoringSSL.Digest
, mallocEVPMDCtx
, evpDigestInitEx, evpDigestUpdate, evpDigestFinalEx
, evpMaxMDSize
+ , evpMDType
) where
import Data.ByteString (ByteString)
@@ -63,6 +64,8 @@ foreign import ccall "&btlsFinalizeEVPMDCtx"
evpMaxMDSize :: Int
evpMaxMDSize = {#const EVP_MAX_MD_SIZE#}
+{#fun pure EVP_MD_type as evpMDType {`Ptr EVPMD'} -> `Int'#}
+
instance Storable EVPMDCtx where
sizeOf _ = {#sizeof EVP_MD_CTX#}
alignment _ = {#alignof EVP_MD_CTX#}