Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 21 for ClientHelloInfo (0.3 sec)

  1. 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)
  2. pkg/test/echo/server/endpoint/http.go

    		if s.DisableALPN {
    			nextProtos = nil
    		}
    		config := &tls.Config{
    			Certificates: []tls.Certificate{cert},
    			NextProtos:   nextProtos,
    			GetConfigForClient: func(info *tls.ClientHelloInfo) (*tls.Config, error) {
    				// There isn't a way to pass through all ALPNs presented by the client down to the
    				// HTTP server to return in the response. However, for debugging, we can at least log
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 16:20:31 UTC 2023
    - 12.8K bytes
    - Viewed (0)
  3. api/go1.17.txt

    pkg compress/lzw, type Reader struct
    pkg compress/lzw, type Writer struct
    pkg crypto/tls, method (*CertificateRequestInfo) Context() context.Context
    pkg crypto/tls, method (*ClientHelloInfo) Context() context.Context
    pkg crypto/tls, method (*Conn) HandshakeContext(context.Context) error
    pkg database/sql, method (*NullByte) Scan(interface{}) error
    pkg database/sql, method (*NullInt16) Scan(interface{}) error
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 20:31:46 UTC 2023
    - 18K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. src/crypto/tls/handshake_client_test.go

    		})
    	}
    }
    
    func testTLS13OnlyClientHelloCipherSuite(t *testing.T, ciphers []uint16) {
    	serverConfig := &Config{
    		Certificates: testConfig.Certificates,
    		GetConfigForClient: func(chi *ClientHelloInfo) (*Config, error) {
    			if len(chi.CipherSuites) != len(defaultCipherSuitesTLS13NoAES) {
    				t.Errorf("only TLS 1.3 suites should be advertised, got=%x", chi.CipherSuites)
    			} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 88.7K bytes
    - Viewed (0)
  9. src/net/http/serve_test.go

    	cert, err := tls.X509KeyPair(testcert.LocalhostCert, testcert.LocalhostKey)
    	if err != nil {
    		t.Fatal(err)
    	}
    	testAutomaticHTTP2_ListenAndServe(t, &tls.Config{
    		GetCertificate: func(clientHello *tls.ClientHelloInfo) (*tls.Certificate, error) {
    			return &cert, nil
    		},
    	})
    }
    
    func TestAutomaticHTTP2_ListenAndServe_GetConfigForClient(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
  10. pkg/kubelet/kubelet.go

    				return nil, fmt.Errorf("failed to initialize file based certificate manager: %w", err)
    			}
    		}
    
    		if klet.serverCertificateManager != nil {
    			kubeDeps.TLSOptions.Config.GetCertificate = func(*tls.ClientHelloInfo) (*tls.Certificate, error) {
    				cert := klet.serverCertificateManager.Current()
    				if cert == nil {
    					return nil, fmt.Errorf("no serving certificate available for the kubelet")
    				}
    				return cert, nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 126.1K bytes
    - Viewed (1)
Back to top