Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for SystemRoots (0.35 sec)

  1. src/crypto/x509/root_test.go

    	}{
    		{
    			name:            "nil systemRoots",
    			returnsFallback: true,
    		},
    		{
    			name:            "empty systemRoots",
    			systemRoots:     NewCertPool(),
    			returnsFallback: true,
    		},
    		{
    			name:        "empty systemRoots system pool",
    			systemRoots: NewCertPool(),
    			systemPool:  true,
    		},
    		{
    			name:        "filled systemRoots system pool",
    			systemRoots: NewCertPool(),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 18 23:57:10 UTC 2022
    - 2.6K bytes
    - Viewed (0)
  2. src/crypto/x509/root.go

    	if fallbacksSet {
    		panic("SetFallbackRoots has already been called")
    	}
    	fallbacksSet = true
    
    	if systemRoots != nil && (systemRoots.len() > 0 || systemRoots.systemPool) {
    		if x509usefallbackroots.Value() != "1" {
    			return
    		}
    		x509usefallbackroots.IncNonDefault()
    	}
    	systemRoots, systemRootsErr = roots, nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  3. istioctl/pkg/xds/google.go

    	}
    	return &mem, nil
    }
    
    func mcpDialOptions(ctx context.Context, gcpProject string, k8sCreds credentials.PerRPCCredentials) ([]grpc.DialOption, error) {
    	systemRoots, err := x509.SystemCertPool()
    	if err != nil {
    		return nil, fmt.Errorf("failed to get system cert pool: %w", err)
    	}
    	gcpCreds, err := oauth.NewApplicationDefault(ctx)
    	if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Nov 14 20:23:34 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  4. src/crypto/x509/verify_test.go

    }
    
    func TestSystemRootsError(t *testing.T) {
    	if runtime.GOOS == "windows" || runtime.GOOS == "darwin" || runtime.GOOS == "ios" {
    		t.Skip("Windows and darwin do not use (or support) systemRoots")
    	}
    
    	defer func(oldSystemRoots *CertPool) { systemRoots = oldSystemRoots }(systemRootsPool())
    
    	opts := VerifyOptions{
    		Intermediates: NewCertPool(),
    		DNSName:       "www.google.com",
    		CurrentTime:   time.Unix(1677615892, 0),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 110.2K bytes
    - Viewed (0)
  5. src/cmd/dist/test.go

    	if goos == "darwin" && goarch == "amd64" && t.cgoEnabled {
    		t.registerTest("GOOS=ios on darwin/amd64",
    			&goTest{
    				variant:  "amd64ios",
    				timeout:  300 * time.Second,
    				runTests: "SystemRoots",
    				env:      []string{"GOOS=ios", "CGO_ENABLED=1"},
    				pkg:      "crypto/x509",
    			})
    	}
    
    	// GOEXPERIMENT=rangefunc tests
    	if !t.compileOnly {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 16:01:35 UTC 2024
    - 50K bytes
    - Viewed (0)
Back to top