Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for verifyIpAddress (0.05 seconds)

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

      fun verify(
        host: String,
        certificate: X509Certificate,
      ): Boolean =
        when {
          host.canParseAsIpAddress() -> verifyIpAddress(host, certificate)
          else -> verifyHostname(host, certificate)
        }
    
      /** Returns true if [certificate] matches [ipAddress]. */
      private fun verifyIpAddress(
        ipAddress: String,
        certificate: X509Certificate,
      ): Boolean {
        val canonicalIpAddress = ipAddress.toCanonicalHost()
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 7.6K bytes
    - Click Count (0)
Back to Top