Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 184 for handshakes (0.17 sec)

  1. src/crypto/tls/quic_test.go

    		t.Errorf("connection handshake terminated with error %q, want alertBadCertificate", err)
    	}
    	var e *CertificateVerificationError
    	if !errors.As(err, &e) {
    		t.Errorf("connection handshake terminated with error %q, want CertificateVerificationError", err)
    	}
    }
    
    // Test that QUICConn.ConnectionState can be used during the handshake,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 17:23:54 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/RecordedResponse.kt

        }
    
      fun assertHandshake() =
        apply {
          val handshake = response!!.handshake!!
          assertThat(handshake.tlsVersion).isNotNull()
          assertThat(handshake.cipherSuite).isNotNull()
          assertThat(handshake.peerPrincipal).isNotNull()
          assertThat(handshake.peerCertificates.size).isEqualTo(1)
          assertThat(handshake.localPrincipal).isNull()
          assertThat(handshake.localCertificates.size).isEqualTo(0)
        }
    
      /**
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  3. okhttp-tls/src/test/java/okhttp3/tls/HandshakeCertificatesTest.kt

    import java.util.concurrent.Executors
    import java.util.concurrent.Future
    import javax.net.ServerSocketFactory
    import javax.net.SocketFactory
    import javax.net.ssl.SSLSocket
    import okhttp3.Handshake
    import okhttp3.Handshake.Companion.handshake
    import okhttp3.TestUtil.threadFactory
    import okhttp3.internal.closeQuietly
    import okhttp3.testing.PlatformRule
    import okio.ByteString.Companion.toByteString
    import org.junit.jupiter.api.AfterEach
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Thu Apr 11 22:09:35 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/Response.kt

        open fun code(code: Int) = commonCode(code)
    
        open fun message(message: String) = commonMessage(message)
    
        open fun handshake(handshake: Handshake?) =
          apply {
            this.handshake = handshake
          }
    
        /**
         * Sets the header named [name] to [value]. If this request already has any headers
         * with that name, they are all replaced.
         */
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Tue Jan 23 14:31:42 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  5. src/crypto/tls/conn_test.go

    	go func() {
    		tlsConn := Client(client, config)
    		if err := tlsConn.Handshake(); err != nil {
    			t.Errorf("Error from client handshake: %v", err)
    			return
    		}
    		tlsConn.vers = 0x1111
    		tlsConn.Write([]byte{1})
    	}()
    
    	tlsConn := Server(server, config)
    	if err := tlsConn.Handshake(); err != nil {
    		t.Errorf("Error from client handshake: %v", err)
    		return
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 21:35:01 UTC 2023
    - 10.5K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/TestTls13Request.kt

      println(Platform.get())
      val request =
        Request.Builder()
          .url(url)
          .build()
      try {
        client.newCall(request).execute().use { response ->
          val handshake = response.handshake
          println(
            "${handshake!!.tlsVersion} ${handshake.cipherSuite} ${response.protocol} " +
              "${response.code} ${response.body.bytes().size}b",
          )
        }
      } catch (ioe: IOException) {
        println(ioe)
      }
    }
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3K bytes
    - Viewed (0)
  7. src/main/java/jcifs/http/NtlmHttpURLConnection.java

        @Override
        public int getContentLength () {
            handshake();
            return this.connection.getContentLength();
        }
    
    
        @Override
        public String getContentType () {
            handshake();
            return this.connection.getContentType();
        }
    
    
        @Override
        public String getContentEncoding () {
            handshake();
            return this.connection.getContentEncoding();
        }
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 25.5K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/CallHandshakeTest.kt

        platform.assumeNotConscrypt()
        platform.assumeNotBouncyCastle()
    
        val client = makeClient(ConnectionSpec.RESTRICTED_TLS, TlsVersion.TLS_1_2)
    
        val handshake = makeRequest(client)
    
        assertThat(handshake.cipherSuite).isIn(*expectedModernTls12CipherSuites.toTypedArray())
    
        // Probably something like
        // TLS_AES_128_GCM_SHA256
        // TLS_AES_256_GCM_SHA384
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  9. src/crypto/tls/handshake_server_test.go

    	if err != nil {
    		t.Fatalf("handshake failed: %s", err)
    	}
    	if state.DidResume {
    		t.Fatalf("handshake resumed at a lower version")
    	}
    
    	// The client session cache now contains a TLS 1.2 session.
    	state, _, err = testHandshake(t, clientConfig, serverConfig)
    	if err != nil {
    		t.Fatalf("handshake failed: %s", err)
    	}
    	if !state.DidResume {
    		t.Fatalf("handshake did not resume at the same version")
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 64.7K bytes
    - Viewed (0)
  10. okhttp-tls/src/main/kotlin/okhttp3/tls/HandshakeCertificates.kt

     * Client and server exchange these certificates during the handshake phase of a TLS connection.
     *
     * ### Server Authentication
     *
     * This is the most common form of TLS authentication: clients verify that servers are trusted and
     * that they own the hostnames that they represent. Server authentication is required.
     *
     * To perform server authentication:
     *
     *  * The server's handshake certificates must have a [held certificate][HeldCertificate] (a
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 8.5K bytes
    - Viewed (0)
Back to top