Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for asciiToLowercase (0.2 sec)

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

        }
      }
    
      /** Returns true if [certificate] matches [hostname]. */
      private fun verifyHostname(
        hostname: String,
        certificate: X509Certificate,
      ): Boolean {
        val hostname = hostname.asciiToLowercase()
        return getSubjectAltNames(certificate, ALT_DNS_NAME).any {
          verifyHostname(hostname, it)
        }
      }
    
      /**
       * This is like [toLowerCase] except that it does nothing if this contains any non-ASCII
    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)
Back to top