Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for TLSConnectionState (0.32 sec)

  1. staging/src/k8s.io/apiserver/pkg/util/x509metrics/server_cert_deprecations_test.go

    				if err != nil {
    					t.Fatalf("failed to parse certificate: %v", err)
    				}
    
    				tlsConnectionState = &tls.ConnectionState{
    					PeerCertificates: []*x509.Certificate{serverCert},
    				}
    			}
    
    			resp := &http.Response{
    				TLS: tlsConnectionState,
    			}
    
    			if sanChecker.CheckPeerCertificates(resp.TLS.PeerCertificates) {
    				sanChecker.IncreaseMetricsCounter(nil)
    			}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 03 16:16:51 UTC 2023
    - 25.5K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. api/go1.5.txt

    pkg net/mail, method (*AddressParser) ParseList(string) ([]*Address, error)
    pkg net/mail, type AddressParser struct
    pkg net/mail, type AddressParser struct, WordDecoder *mime.WordDecoder
    pkg net/smtp, method (*Client) TLSConnectionState() (tls.ConnectionState, bool)
    pkg net/url, method (*URL) EscapedPath() string
    pkg net/url, type URL struct, RawPath string
    pkg os, func LookupEnv(string) (string, bool)
    pkg os/signal, func Ignore(...os.Signal)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 30 21:14:09 UTC 2015
    - 46.6K bytes
    - Viewed (0)
  5. 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