Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for TLS_FALLBACK_SCSV (0.11 sec)

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

    package okhttp3
    
    import javax.net.ssl.SSLSocket
    import javax.net.ssl.SSLSocketFactory
    import okhttp3.FallbackTestClientSocketFactory.Companion.TLS_FALLBACK_SCSV
    
    /**
     * An SSLSocketFactory that delegates calls. Sockets created by the delegate are wrapped with ones
     * that will not accept the [TLS_FALLBACK_SCSV] cipher, thus bypassing server-side fallback
     * checks on platforms that support it. Unfortunately this wrapping will disable any
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/ConnectionSpecTest.kt

        expectedCipherSuites.add(CipherSuite.TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA.javaName)
        if (listOf<String>(*socket.supportedCipherSuites).contains("TLS_FALLBACK_SCSV")) {
          expectedCipherSuites.add("TLS_FALLBACK_SCSV")
        }
        assertThat(socket.enabledCipherSuites)
          .containsExactly(*expectedCipherSuites.toTypedArray())
      }
    
      @Test
      fun tls_explicitCiphers() {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/CipherSuiteTest.kt

        socket.supportedCipherSuites = arrayOf("TLS_A", "TLS_FALLBACK_SCSV")
        socket.enabledCipherSuites = arrayOf("TLS_A")
        val connectionSpec =
          ConnectionSpec.Builder(true)
            .tlsVersions(TlsVersion.TLS_1_0)
            .cipherSuites("TLS_A")
            .build()
        applyConnectionSpec(connectionSpec, socket, true)
        assertArrayEquals(
          arrayOf("TLS_A", "TLS_FALLBACK_SCSV"),
          socket.enabledCipherSuites,
        )
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/CipherSuite.kt

        @JvmField val TLS_EMPTY_RENEGOTIATION_INFO_SCSV = init("TLS_EMPTY_RENEGOTIATION_INFO_SCSV", 0x00ff)
    
        @JvmField val TLS_FALLBACK_SCSV = init("TLS_FALLBACK_SCSV", 0x5600)
    
        @JvmField val TLS_ECDH_ECDSA_WITH_NULL_SHA = init("TLS_ECDH_ECDSA_WITH_NULL_SHA", 0xc001)
    
        @JvmField val TLS_ECDH_ECDSA_WITH_RC4_128_SHA = init("TLS_ECDH_ECDSA_WITH_RC4_128_SHA", 0xc002)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 39.9K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/ConnectionSpec.kt

        // cipher is added to signal that a protocol fallback has taken place.
        val supportedCipherSuites = sslSocket.supportedCipherSuites
        val indexOfFallbackScsv =
          supportedCipherSuites.indexOf(
            "TLS_FALLBACK_SCSV",
            CipherSuite.ORDER_BY_NAME,
          )
        if (isFallback && indexOfFallbackScsv != -1) {
          cipherSuitesIntersection =
            cipherSuitesIntersection.concat(
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/CallTest.kt

        platform.assumeNotConscrypt()
        val tlsFallbackScsv = "TLS_FALLBACK_SCSV"
        val supportedCiphers = listOf(*handshakeCertificates.sslSocketFactory().supportedCipherSuites)
        if (!supportedCiphers.contains(tlsFallbackScsv)) {
          // This only works if the client socket supports TLS_FALLBACK_SCSV.
          return
        }
        server.useHttps(handshakeCertificates.sslSocketFactory())
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 142.5K bytes
    - Viewed (0)
  7. okhttp/api/okhttp.api

    	public static final field TLS_ECDH_anon_WITH_RC4_128_SHA Lokhttp3/CipherSuite;
    	public static final field TLS_EMPTY_RENEGOTIATION_INFO_SCSV Lokhttp3/CipherSuite;
    	public static final field TLS_FALLBACK_SCSV Lokhttp3/CipherSuite;
    	public static final field TLS_KRB5_EXPORT_WITH_DES_CBC_40_MD5 Lokhttp3/CipherSuite;
    	public static final field TLS_KRB5_EXPORT_WITH_DES_CBC_40_SHA Lokhttp3/CipherSuite;
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 15 13:41:01 UTC 2024
    - 70.2K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

        server.protocolNegotiationEnabled = true
        server.protocols = client.protocols
      }
    
      /**
       * Used during tests that involve TLS connection fallback attempts. OkHttp includes the
       * TLS_FALLBACK_SCSV cipher on fallback connections. See [FallbackTestClientSocketFactory]
       * for details.
       */
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 131.7K bytes
    - Viewed (0)
Back to top