on master help sign in
Document newly-added tlsWantClientCert and tlsServerHooks fields.
commit0aede8df40f9bd5143b09a05403964ffcfa86646 authorClint Adams <clint@debian.org> dateWed 18 Feb 2015, 12:18 (12 years ago) parent093e7c0
1 file changed+16
warp-tls/Network/Wai/Handler/WarpTLS.hs+16
warp-tls/Network/Wai/Handler/WarpTLS.hs+16
@@ -84,7 +84,23 @@ data TLSSettings = TLSSettings {
8484 --
8585 -- Since 1.4.2
8686 , tlsWantClientCert :: Bool
87+ -- ^ Whether or not to demand a certificate from the client. If this
88+ -- is set to True, you must handle received certificates in a server hook
89+ -- or all connections will fail.
90+ --
91+ -- Default: False
92+ , tlsServerHooks :: TLS.ServerHooks
93+ -- ^ Whether or not to demand a certificate from the client. If this
94+ -- is set to True, you must handle received certificates in a server hook
95+ -- or all connections will fail.
96+ --
97+ -- Default: False
8798 , tlsServerHooks :: TLS.ServerHooks
99+ -- ^ The server-side hooks called by the tls package, including actions
100+ -- to take when a client certificate is received. See the "Network.TLS"
101+ -- module for details.
102+ --
103+ -- Default: def
88104 }
89105
90106-- | Default 'TLSSettings'. Use this to create 'TLSSettings' with the field record name.