- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 26 for KSession (0.26 sec)
-
okhttp/src/main/kotlin/okhttp3/internal/platform/Platform.kt
@SuppressLint("NewApi") @IgnoreJRERequirement // This function is overridden to require API >= 24. open fun getHandshakeServerNames(sslSocket: SSLSocket): List<String> { val session = sslSocket.session as? ExtendedSSLSession ?: return listOf() return session.requestedServerNames.mapNotNull { (it as? SNIHostName)?.asciiName } } @Throws(IOException::class) open fun connectSocket( socket: Socket,
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 9.8K bytes - Viewed (1) -
okhttp/src/test/java/okhttp3/internal/tls/HostnameVerifierTest.kt
.build() val session = session(heldCertificate.certificatePem()) assertThat(verifier.verify("foo.com", session)).isFalse() assertThat(verifier.verify("bar.com", session)).isFalse() assertThat(verifier.verify("k.com", session)).isTrue() assertThat(verifier.verify("K.com", session)).isTrue() assertThat(verifier.verify("\u2121.com", session)).isFalse()
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 40.3K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/platform/android/AndroidSocketAdapter.kt
sslSocket: SSLSocket, hostname: String?, protocols: List<Protocol>, ) { // No TLS extensions if the socket class is custom. if (matchesSocket(sslSocket)) { try { // Enable session tickets. setUseSessionTickets.invoke(sslSocket, true) // Assume platform support on 24+ if (hostname != null && Build.VERSION.SDK_INT <= 23) {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 4.6K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/KotlinDeprecationErrorTest.kt
val size: Int = formBody.size() } @Test @Disabled fun handshake() { val handshake: Handshake = Handshake.get((localhost().sslSocketFactory().createSocket() as SSLSocket).session) val tlsVersion: TlsVersion = handshake.tlsVersion() val cipherSuite: CipherSuite = handshake.cipherSuite() val peerCertificates: List<Certificate> = handshake.peerCertificates()
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 13.3K bytes - Viewed (0) -
android-test/src/androidTest/java/okhttp/android/test/sni/SniOverrideTest.kt
.sslSocketFactory(CustomSSLSocketFactory(client.sslSocketFactory), client.x509TrustManager!!) .hostnameVerifier { hostname, session -> val s = "hostname: $hostname peerHost:${session.peerHost}" Log.d("SniOverrideTest", s) try { val cert = session.peerCertificates[0] as X509Certificate for (name in cert.subjectAlternativeNames) { if (name[0] as Int == 2) {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 3.6K bytes - Viewed (0) -
okhttp-tls/src/test/java/okhttp3/tls/HandshakeCertificatesTest.kt
) as SSLSocket sslSocket.use { sslSocket.useClientMode = false sslSocket.wantClientAuth = true sslSocket.startHandshake() return@submit sslSocket.session.handshake() } } } } private fun doClientHandshake( client: HandshakeCertificates, serverAddress: InetSocketAddress, ): Future<Handshake> {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Thu Apr 11 22:09:35 GMT 2024 - 7.1K bytes - Viewed (0) -
docs/changelogs/changelog_3x.md
flow control window. We had a few bugs where window size accounting was broken when streams were canceled or reset. * Fix: Recover gracefully if the TLS session returns an unexpected version (`NONE`) or cipher suite (`SSL_NULL_WITH_NULL_NULL`). * Fix: Don't change Conscrypt configuration globally. We migrated from a process-wide setting to configuring only OkHttp's TLS sockets.
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sun Feb 06 14:55:54 GMT 2022 - 50.8K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/tls/OkHostnameVerifier.kt
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 { verify(host, session.peerCertificates[0] as X509Certificate) } catch (_: SSLException) { false } } } fun verify(
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) -
okhttp/src/main/kotlin/okhttp3/CookieJar.kt
* * As policy, implementations of this interface are responsible for selecting which cookies to * accept and which to reject. A reasonable policy is to reject all cookies, though that may * interfere with session-based authentication schemes that require cookies. * * As persistence, implementations of this interface must also provide storage of cookies. Simple
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 2.4K bytes - Viewed (0) -
android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt
} catch (_: java.net.UnknownServiceException) { } } data class HowsMySslResults( val unknown_cipher_suite_supported: Boolean, val beast_vuln: Boolean, val session_ticket_supported: Boolean, val tls_compression_supported: Boolean, val ephemeral_keys_supported: Boolean, val rating: String, val tls_version: String,
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Jan 20 10:30:28 GMT 2024 - 27K bytes - Viewed (1)