Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for defaultCipherSuites (0.19 sec)

  1. src/crypto/tls/tls_test.go

    		}
    
    		if cc.Insecure {
    			if slices.Contains(defaultCipherSuites(), c.id) {
    				t.Errorf("%#04x: insecure suite in default list", c.id)
    			}
    		} else {
    			if !slices.Contains(defaultCipherSuites(), c.id) {
    				t.Errorf("%#04x: secure suite not in default list", c.id)
    			}
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 60.5K bytes
    - Viewed (0)
  2. src/crypto/tls/common.go

    		t = time.Now
    	}
    	return t()
    }
    
    func (c *Config) cipherSuites() []uint16 {
    	if c.CipherSuites == nil {
    		if needFIPS() {
    			return defaultCipherSuitesFIPS
    		}
    		return defaultCipherSuites()
    	}
    	if needFIPS() {
    		cipherSuites := slices.Clone(c.CipherSuites)
    		return slices.DeleteFunc(cipherSuites, func(id uint16) bool {
    			return !slices.Contains(defaultCipherSuitesFIPS, id)
    		})
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 59.1K bytes
    - Viewed (0)
Back to top