Home | History | Annotate | Download | only in tls

Lines Matching refs:GetCertificate

827 // tests the dynamic GetCertificate method
831 // Replace the NameToCertificate map with a GetCertificate function
834 config.GetCertificate = func(clientHello *ClientHelloInfo) (*Certificate, error) {
839 name: "SNI-GetCertificate",
848 // GetCertificate method doesn't return a cert, we fall back to what's in
853 config.GetCertificate = func(clientHello *ClientHelloInfo) (*Certificate, error) {
865 // GetCertificate result in a tls alert.
870 serverConfig.GetCertificate = func(clientHello *ClientHelloInfo) (*Certificate, error) {
889 serverConfig.GetCertificate = func(clientHello *ClientHelloInfo) (*Certificate, error) {
901 // With an empty Certificates and a nil GetCertificate, the server
903 serverConfig.GetCertificate = nil