Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Galt (0.12 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/tls/OkHostnameVerifier.kt

     *
     * [rfc_2818]: http://www.ietf.org/rfc/rfc2818.txt
     */
    @Suppress("NAME_SHADOWING")
    object OkHostnameVerifier : HostnameVerifier {
      private const val ALT_DNS_NAME = 2
      private const val ALT_IPA_NAME = 7
    
      override fun verify(
        host: String,
        session: SSLSession,
      ): Boolean {
        return if (!host.isAscii()) {
          false
        } else {
          try {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 14:55:09 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/CallTest.kt

      @Test
      fun httpsWithIpAddress() {
        platform.assumeNotBouncyCastle()
    
        val localIpAddress = InetAddress.getLoopbackAddress().hostAddress
    
        // Create a certificate with an IP address in the subject alt name.
        val heldCertificate =
          HeldCertificate.Builder()
            .commonName("example.com")
            .addSubjectAlternativeName(localIpAddress!!)
            .build()
        val handshakeCertificates =
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 142.5K bytes
    - Viewed (0)
Back to top