Skip to content

Commit

Permalink
Add helper to get info meant to be passed to users of tls
Browse files Browse the repository at this point in the history
  • Loading branch information
eyeinsky committed Aug 20, 2019
1 parent e9e3fcb commit 64945ee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/Network/TLS.hs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ module Network.TLS
, HashAlgorithm(..)
, SignatureAlgorithm(..)
, CertificateType(..)
, getTlsAppInfo
, CertificateChain

-- * X509
-- ** X509 Validation
Expand Down
3 changes: 3 additions & 0 deletions core/Network/TLS/Context.hs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ module Network.TLS.Context
, withWriteLock
, withStateLock
, withRWLock
, getTlsAppInfo

-- * information
, Information(..)
Expand Down Expand Up @@ -219,3 +220,5 @@ contextHookSetCertificateRecv context f =
contextHookSetLogging :: Context -> Logging -> IO ()
contextHookSetLogging context loggingCallbacks =
contextModifyHooks context (\hooks -> hooks { hookLogging = loggingCallbacks })

getTlsAppInfo = ctxClientCerts

0 comments on commit 64945ee

Please sign in to comment.