Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for serverHandshake (0.3 sec)

  1. src/crypto/tls/link_test.go

    				"crypto/tls.(*Conn).clientHandshake",
    				"crypto/tls.(*Conn).serverHandshake",
    			},
    		},
    		{
    			name: "only_client",
    			program: `package main
    import "crypto/tls"
    func main() { tls.Dial("", "", nil) }
    `,
    			want: []string{
    				"crypto/tls.(*Conn).clientHandshake",
    			},
    			bad: []string{
    				"crypto/tls.(*Conn).serverHandshake",
    			},
    		},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 09 11:28:56 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  2. okhttp-tls/src/test/java/okhttp3/tls/HandshakeCertificatesTest.kt

        val clientHandshakeFuture = doClientHandshake(client, serverAddress)
        val serverHandshake = serverHandshakeFuture.get()
        assertThat(listOf(clientCertificate.certificate, clientIntermediate.certificate))
          .isEqualTo(serverHandshake.peerCertificates)
        assertThat(listOf(serverCertificate.certificate, serverIntermediate.certificate))
          .isEqualTo(serverHandshake.localCertificates)
        val clientHandshake = clientHandshakeFuture.get()
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Thu Apr 11 22:09:35 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  3. src/crypto/tls/handshake_server.go

    	ecSignOk     bool
    	rsaDecryptOk bool
    	rsaSignOk    bool
    	sessionState *SessionState
    	finishedHash finishedHash
    	masterSecret []byte
    	cert         *Certificate
    }
    
    // serverHandshake performs a TLS handshake as a server.
    func (c *Conn) serverHandshake(ctx context.Context) error {
    	clientHello, err := c.readClientHello(ctx)
    	if err != nil {
    		return err
    	}
    
    	if c.vers == VersionTLS13 {
    		hs := serverHandshakeStateTLS13{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:30:50 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  4. src/crypto/tls/tls.go

    // at least one certificate or else set GetCertificate.
    func Server(conn net.Conn, config *Config) *Conn {
    	c := &Conn{
    		conn:   conn,
    		config: config,
    	}
    	c.handshakeFn = c.serverHandshake
    	return c
    }
    
    // Client returns a new TLS client side connection
    // using conn as the underlying transport.
    // The config cannot be nil: users must set either ServerName or
    // InsecureSkipVerify in the config.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  5. src/crypto/tls/conn.go

    // It implements the net.Conn interface.
    type Conn struct {
    	// constant
    	conn        net.Conn
    	isClient    bool
    	handshakeFn func(context.Context) error // (*Conn).clientHandshake or serverHandshake
    	quic        *quicState                  // nil for non-QUIC connections
    
    	// isHandshakeComplete is true if the connection is currently transferring
    	// application data (i.e. is not currently processing a handshake).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 51.8K bytes
    - Viewed (0)
Back to top