Skip to content

Commit

Permalink
exposing getClientCertificateChain.
Browse files Browse the repository at this point in the history
  • Loading branch information
kazu-yamamoto committed Nov 27, 2019
1 parent e054aaa commit 5926aeb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/Network/TLS.hs
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ module Network.TLS
, unClientRandom
, unServerRandom
, HandshakeMode13(..)
, getClientCertificateChain
-- ** Negotiated
, getNegotiatedProtocol
, getClientSNI
Expand Down Expand Up @@ -168,6 +169,7 @@ import Network.TLS.Hooks
import Network.TLS.Measurement
import Network.TLS.Parameters
import Network.TLS.Session
import qualified Network.TLS.State as S
import Network.TLS.Struct ( TLSError(..), TLSException(..)
, HashAndSignatureAlgorithm, HashAlgorithm(..), SignatureAlgorithm(..)
, Header(..), ProtocolType(..), CertificateType(..)
Expand All @@ -184,3 +186,6 @@ import Data.X509.Validation hiding (HostName)

{-# DEPRECATED Bytes "Use Data.ByteString.Bytestring instead of Bytes." #-}
type Bytes = B.ByteString

getClientCertificateChain :: Context -> IO (Maybe CertificateChain)
getClientCertificateChain ctx = usingState_ ctx S.getClientCertificateChain

0 comments on commit 5926aeb

Please sign in to comment.