Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for BuildNameToCertificate (0.58 sec)

  1. src/crypto/tls/boring_test.go

    		} else {
    			serverConfig.Certificates[0].Certificate = [][]byte{testRSACertificate}
    			serverConfig.Certificates[0].PrivateKey = testRSAPrivateKey
    		}
    		serverConfig.BuildNameToCertificate()
    		t.Run(fmt.Sprintf("suite=%#x", id), func(t *testing.T) {
    			clientHello := &clientHelloMsg{
    				vers:               VersionTLS12,
    				random:             make([]byte, 32),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:45:37 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  2. src/crypto/tls/conn_test.go

    			},
    			{
    				Certificate: [][]byte{fromHex(certWildcardExampleCom)},
    			},
    			{
    				Certificate: [][]byte{fromHex(certFooExampleCom)},
    			},
    		},
    	}
    
    	config.BuildNameToCertificate()
    
    	pointerToIndex := func(c *Certificate) int {
    		for i := range config.Certificates {
    			if c == &config.Certificates[i] {
    				return i
    			}
    		}
    		return -1
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 21:35:01 UTC 2023
    - 10.5K bytes
    - Viewed (0)
  3. src/crypto/tls/handshake_server_test.go

    	serverConfig.Certificates = make([]Certificate, 1)
    	serverConfig.Certificates[0].Certificate = [][]byte{testECDSACertificate}
    	serverConfig.Certificates[0].PrivateKey = testECDSAPrivateKey
    	serverConfig.BuildNameToCertificate()
    	// First test that it *does* work when the server's key is ECDSA.
    	testClientHello(t, serverConfig, clientHello)
    
    	// Now test that switching to an RSA key causes the expected error (and
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 64.7K bytes
    - Viewed (0)
  4. src/crypto/tls/handshake_test.go

    	testConfig.Certificates[0].PrivateKey = testRSAPrivateKey
    	testConfig.Certificates[1].Certificate = [][]byte{testSNICertificate}
    	testConfig.Certificates[1].PrivateKey = testRSAPrivateKey
    	testConfig.BuildNameToCertificate()
    	if *keyFile != "" {
    		f, err := os.OpenFile(*keyFile, os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644)
    		if err != nil {
    			panic("failed to open -keylog file: " + err.Error())
    		}
    		testConfig.KeyLogWriter = f
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 24.5K bytes
    - Viewed (0)
  5. src/crypto/tls/tls_test.go

    	}
    	config := testConfig.Clone()
    	config.Certificates = []Certificate{c0, c1}
    
    	config.BuildNameToCertificate()
    	got := config.Certificates
    	want := []Certificate{c0, c1}
    	if !reflect.DeepEqual(got, want) {
    		t.Fatalf("Certificates were mutated by BuildNameToCertificate\nGot: %#v\nWant: %#v\n", got, want)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 60.5K bytes
    - Viewed (0)
  6. src/crypto/tls/common.go

    		for _, ca := range cri.AcceptableCAs {
    			if bytes.Equal(x509Cert.RawIssuer, ca) {
    				return nil
    			}
    		}
    	}
    	return errors.New("chain is not signed by an acceptable CA")
    }
    
    // BuildNameToCertificate parses c.Certificates and builds c.NameToCertificate
    // from the CommonName and SubjectAlternateName fields of each of the leaf
    // certificates.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 59.1K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"(*ClientHelloInfo).Context", Method, 17},
    		{"(*ClientHelloInfo).SupportsCertificate", Method, 14},
    		{"(*ClientSessionState).ResumptionState", Method, 21},
    		{"(*Config).BuildNameToCertificate", Method, 0},
    		{"(*Config).Clone", Method, 8},
    		{"(*Config).DecryptTicket", Method, 21},
    		{"(*Config).EncryptTicket", Method, 21},
    		{"(*Config).SetSessionTicketKeys", Method, 5},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
  8. api/go1.16.txt

    pkg compress/flate, type WriteError //deprecated
    pkg crypto/rc4, method (*Cipher) Reset //deprecated
    pkg crypto/tls, const VersionSSL30 //deprecated
    pkg crypto/tls, method (*Config) BuildNameToCertificate //deprecated
    pkg crypto/tls, type Config struct, NameToCertificate //deprecated
    pkg crypto/tls, type Config struct, SessionTicketKey //deprecated
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 02 16:30:41 UTC 2022
    - 479.2K bytes
    - Viewed (0)
  9. api/go1.txt

    pkg crypto/tls, func NewListener(net.Listener, *Config) net.Listener
    pkg crypto/tls, func Server(net.Conn, *Config) *Conn
    pkg crypto/tls, func X509KeyPair([]uint8, []uint8) (Certificate, error)
    pkg crypto/tls, method (*Config) BuildNameToCertificate()
    pkg crypto/tls, method (*Conn) Close() error
    pkg crypto/tls, method (*Conn) ConnectionState() ConnectionState
    pkg crypto/tls, method (*Conn) Handshake() error
    pkg crypto/tls, method (*Conn) LocalAddr() net.Addr
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
Back to top