Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for isConscrypt (0.05 sec)

  1. 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)
  2. 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)
  3. okhttp-testing-support/src/main/kotlin/okhttp3/testing/PlatformRule.kt

              description.appendText(" expected to fail with exception that ")
              failureMatcher.describeTo(description)
    
              fail<Any>(description.toString())
            }
          }
        }
    
        fun isConscrypt() = getPlatformSystemProperty() == CONSCRYPT_PROPERTY
    
        fun isJdk9() = getPlatformSystemProperty() == JDK9_PROPERTY
    
        fun isJdk8() = getPlatformSystemProperty() == JDK8_PROPERTY
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 15.3K bytes
    - Viewed (1)
Back to top