Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for TLSConnectionState (0.24 sec)

  1. src/net/smtp/smtp.go

    	}
    	c.conn = tls.Client(c.conn, config)
    	c.Text = textproto.NewConn(c.conn)
    	c.tls = true
    	return c.ehlo()
    }
    
    // TLSConnectionState returns the client's TLS connection state.
    // The return values are their zero values if [Client.StartTLS] did
    // not succeed.
    func (c *Client) TLSConnectionState() (state tls.ConnectionState, ok bool) {
    	tc, ok := c.conn.(*tls.Conn)
    	if !ok {
    		return
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  2. src/net/smtp/smtp_test.go

    		testHookStartTLS(cfg) // set the RootCAs
    		if err := c.StartTLS(cfg); err != nil {
    			t.Errorf("StartTLS: %v", err)
    			return
    		}
    		cs, ok := c.TLSConnectionState()
    		if !ok {
    			t.Errorf("TLSConnectionState returned ok == false; want true")
    			return
    		}
    		if cs.Version == 0 || !cs.HandshakeComplete {
    			t.Errorf("ConnectionState = %#v; expect non-zero Version and HandshakeComplete", cs)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 28.5K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"(*Client).Noop", Method, 10},
    		{"(*Client).Quit", Method, 0},
    		{"(*Client).Rcpt", Method, 0},
    		{"(*Client).Reset", Method, 0},
    		{"(*Client).StartTLS", Method, 0},
    		{"(*Client).TLSConnectionState", Method, 5},
    		{"(*Client).Verify", Method, 0},
    		{"Auth", Type, 0},
    		{"CRAMMD5Auth", Func, 0},
    		{"Client", Type, 0},
    		{"Client.Text", Field, 0},
    		{"Dial", Func, 0},
    		{"NewClient", Func, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
Back to top