- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for ClientHelloInfo (0.19 sec)
-
src/crypto/tls/tls_test.go
} tests := []struct { c *Certificate chi *ClientHelloInfo wantErr string }{ {rsaCert, &ClientHelloInfo{ ServerName: "example.golang", SignatureSchemes: []SignatureScheme{PSSWithSHA256}, SupportedVersions: []uint16{VersionTLS13}, }, ""}, {ecdsaCert, &ClientHelloInfo{ SignatureSchemes: []SignatureScheme{PSSWithSHA256, ECDSAWithP256AndSHA256},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:10:12 UTC 2024 - 60.5K bytes - Viewed (0) -
src/crypto/tls/handshake_server_test.go
setup func(config *Config) callback func(clientHello *ClientHelloInfo) (*Config, error) errorSubstring string verify func(config *Config) error }{ { nil, func(clientHello *ClientHelloInfo) (*Config, error) { return nil, nil }, "", nil, }, { nil, func(clientHello *ClientHelloInfo) (*Config, error) { return nil, errors.New("should bubble up")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 03 14:56:25 UTC 2024 - 64.7K bytes - Viewed (0) -
src/crypto/tls/handshake_server.go
return err } } return nil } func clientHelloInfo(ctx context.Context, c *Conn, clientHello *clientHelloMsg) *ClientHelloInfo { supportedVersions := clientHello.supportedVersions if len(clientHello.supportedVersions) == 0 { supportedVersions = supportedVersionsFromMax(clientHello.vers) } return &ClientHelloInfo{ CipherSuites: clientHello.cipherSuites,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 21:30:50 UTC 2024 - 27.6K bytes - Viewed (0) -
src/crypto/tls/common.go
PKCS1WithSHA1 SignatureScheme = 0x0201 ECDSAWithSHA1 SignatureScheme = 0x0203 ) // ClientHelloInfo contains information from a ClientHello message in order to // guide application logic in the GetCertificate and GetConfigForClient callbacks. type ClientHelloInfo struct { // CipherSuites lists the CipherSuites supported by the client (e.g.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:10:12 UTC 2024 - 59.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/dynamiccertificates/tlsconfig.go
eventRecorder: eventRecorder, } return c } // GetConfigForClient is an implementation of tls.Config.GetConfigForClient func (c *DynamicServingCertificateController) GetConfigForClient(clientHello *tls.ClientHelloInfo) (*tls.Config, error) { uncastObj := c.currentServingTLSConfig.Load() if uncastObj == nil { return nil, errors.New("dynamiccertificates: configuration not ready") } tlsConfig, ok := uncastObj.(*tls.Config)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 10.3K bytes - Viewed (0) -
internal/http/listener_test.go
"net" "runtime" "strconv" "strings" "sync/atomic" "testing" "time" "github.com/minio/minio-go/v7/pkg/set" ) var serverPort uint32 = 60000 var getCert = func(*tls.ClientHelloInfo) (*tls.Certificate, error) { certificate, err := getTLSCert() if err != nil { return nil, err } return &certificate, nil } func getTLSCert() (tls.Certificate, error) {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 10 17:41:02 UTC 2024 - 11.8K bytes - Viewed (0) -
src/crypto/tls/quic_test.go
const value = "value" ctx := context.WithValue(context.Background(), key, value) config := testConfig.Clone() config.MinVersion = VersionTLS13 calls := 0 config.GetConfigForClient = func(info *ClientHelloInfo) (*Config, error) { calls++ got, _ := info.Context().Value(key).(string) if got != value { t.Errorf("GetConfigForClient context key %q has value %q, want %q", key, got, value) } return nil, nil
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 17:23:54 UTC 2024 - 19.3K bytes - Viewed (0) -
src/crypto/tls/handshake_server_tls13.go
if len(hs.clientHello.supportedSignatureAlgorithms) == 0 { return c.sendAlert(alertMissingExtension) } certificate, err := c.config.getCertificate(clientHelloInfo(hs.ctx, c, hs.clientHello)) if err != nil { if err == errNoCertificates { c.sendAlert(alertUnrecognizedName) } else { c.sendAlert(alertInternalError) } return err }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 17:23:54 UTC 2024 - 30.5K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go
{"Client", Func, 0}, {"ClientAuthType", Type, 0}, {"ClientHelloInfo", Type, 4}, {"ClientHelloInfo.CipherSuites", Field, 4}, {"ClientHelloInfo.Conn", Field, 8}, {"ClientHelloInfo.ServerName", Field, 4}, {"ClientHelloInfo.SignatureSchemes", Field, 8}, {"ClientHelloInfo.SupportedCurves", Field, 4}, {"ClientHelloInfo.SupportedPoints", Field, 4}, {"ClientHelloInfo.SupportedProtos", Field, 8},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 534.2K bytes - Viewed (0) -
pilot/pkg/bootstrap/server.go
} // getIstiodCertificate returns the istiod certificate, used in GetCertificate hook. func (s *Server) getIstiodCertificate(*tls.ClientHelloInfo) (*tls.Certificate, error) { s.certMu.RLock() defer s.certMu.RUnlock() if s.istiodCert != nil { return s.istiodCert, nil } return nil, fmt.Errorf("cert not initialized") }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 13 17:48:28 UTC 2024 - 46.3K bytes - Viewed (0)