Skip to content

Commit c92c8da

Browse files
committed
Add missing type signatures
1 parent b6457ec commit c92c8da

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

kubernetes-client-helper/src/Kubernetes/ClientHelper.hs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import Data.Typeable (Typeable)
1818
import Data.X509 (SignedCertificate,
1919
decodeSignedCertificate)
2020
import qualified Data.X509 as X509
21-
import Data.X509.CertificateStore (makeCertificateStore)
21+
import Data.X509.CertificateStore (CertificateStore, makeCertificateStore)
2222
import qualified Data.X509.Validation as X509
2323
import Lens.Micro (Lens', lens, set)
2424
import Network.Connection (TLSSettings (..))
@@ -71,6 +71,7 @@ defaultTLSClientParams = do
7171
clientHooksL :: Lens' TLS.ClientParams TLS.ClientHooks
7272
clientHooksL = lens TLS.clientHooks (\cp ch -> cp { TLS.clientHooks = ch })
7373

74+
onServerCertificateL :: Lens' TLS.ClientParams (CertificateStore -> TLS.ValidationCache -> X509.ServiceID -> X509.CertificateChain -> IO [X509.FailedReason])
7475
onServerCertificateL =
7576
clientHooksL . lens TLS.onServerCertificate (\ch osc -> ch { TLS.onServerCertificate = osc })
7677

@@ -92,6 +93,7 @@ setCAStore certs cp = cp
9293
}
9394
}
9495

96+
onCertificateRequestL :: Lens' TLS.ClientParams (([TLS.CertificateType], Maybe [TLS.HashAndSignatureAlgorithm], [X509.DistinguishedName]) -> IO (Maybe (X509.CertificateChain, TLS.PrivKey)))
9597
onCertificateRequestL =
9698
clientHooksL . lens TLS.onCertificateRequest (\ch ocr -> ch { TLS.onCertificateRequest = ocr })
9799

0 commit comments

Comments
 (0)