Home | History | Annotate | Download | only in tls

Lines Matching refs:Config

157 	NegotiatedProtocol          string                // negotiated next protocol (not guaranteed to be from Config.NextProtos)
269 // Servers can select a protocol by setting Config.NextProtos in a
327 // A Config structure is used to configure a TLS client or server.
329 // modified. A Config may be reused; the tls package will also not
331 type Config struct {
352 // See Config.BuildNameToCertificate
382 // received from a client. It may return a non-nil Config in order to
383 // change the Config that will be used to handle this connection. If
384 // the returned Config is nil, the original Config will be used. The
385 // Config returned by this callback may not be subsequently modified.
387 // If GetConfigForClient is nil, the Config passed to Server() will be
390 // Uniquely for the fields in the returned Config, session ticket keys
391 // will be duplicated from the original Config if not set.
393 // config but not on the returned config then the ticket keys from the
394 // original config will be copied into the new config before use.
395 // Otherwise, if SessionTicketKey was set in the original config but
396 // not in the returned config then it will be copied into the returned
397 // config before use. If neither of those cases applies then the key
398 // material from the returned config will be used for session tickets.
399 GetConfigForClient func(*ClientHelloInfo) (*Config, error)
505 serverInitOnce sync.Once // guards calling (*Config).serverInit
540 // Clone returns a shallow clone of c. It is safe to clone a Config that is
542 func (c *Config) Clone() *Config {
552 return &Config{
584 // Config that was passed to Server, otherwise it should be nil.
585 func (c *Config) serverInit(originalConfig *Config) {
616 func (c *Config) ticketKeys() []ticketKey {
630 func (c *Config) SetSessionTicketKeys(keys [][32]byte) {
645 func (c *Config) rand() io.Reader {
653 func (c *Config) time() time.Time {
661 func (c *Config) cipherSuites() []uint16 {
669 func (c *Config) minVersion() uint16 {
676 func (c *Config) maxVersion() uint16 {
685 func (c *Config) curvePreferences() []CurveID {
694 func (c *Config) mutualVersion(vers uint16) (uint16, bool) {
709 func (c *Config) getCertificate(clientHello *ClientHelloInfo) (*Certificate, error) {
754 func (c *Config) BuildNameToCertificate() {
773 func (c *Config) writeKeyLog(clientRandom, masterSecret []byte) error {
896 var emptyConfig Config
898 func defaultConfig() *Config {