Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 44 of 44 for conscrypt (0.08 sec)

  1. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

        assertFailsWith<IOException> {
          getResponse(newRequest("/foo"))
        }.also { expected ->
          when (expected) {
            is SSLHandshakeException -> {
              // Allow conscrypt to fail in different ways
              if (!platform.isConscrypt()) {
                assertThat(expected.cause!!).isInstanceOf<CertificateException>()
              }
            }
            is TlsFatalAlert -> {}
            else -> throw expected
          }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 131.7K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/ConnectionListenerTest.kt

        assertThat(event.route.socketAddress).isEqualTo(expectedAddress)
    
        // Read error: ssl=0x7fd1d8d0fee8: Failure in SSL library, usually a protocol error
        if (!platform.isConscrypt()) {
          assertThat(event.exception).hasMessage("Unexpected handshake message: client_hello")
        }
      }
    
      @Test
      @Throws(IOException::class)
      fun multipleConnectsForSingleCall() {
        enableTls()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  3. okhttp-tls/src/test/java/okhttp3/tls/HeldCertificateTest.kt

            |lu/GJQZoU9lDrCPeUcQ28tzOWw==
            |-----END PRIVATE KEY-----
            |
            """.trimMargin(),
          )
          fail<Any>()
        } catch (expected: IllegalArgumentException) {
          if (!platform.isConscrypt()) {
            assertThat(expected.message).isEqualTo("failed to decode certificate")
          }
        }
        try {
          decode(
            """
            |-----BEGIN CERTIFICATE-----
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/tls/HostnameVerifierTest.kt

            -----END CERTIFICATE-----
            """.trimIndent(),
          )
        val peerCertificate = session.peerCertificates[0] as X509Certificate
    
        if (isAndroid || platform.isConscrypt()) {
          assertThat(certificateSANs(peerCertificate)).containsExactly("bar.com")
        } else {
          assertThat(certificateSANs(peerCertificate)).containsExactly("bar.com", "������.co.jp")
        }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 40.3K bytes
    - Viewed (0)
Back to top