/external/conscrypt/repackaged/common/src/test/java/com/android/org/conscrypt/javax/net/ssl/ |
D | SSLSessionContextTest.java | 88 Enumeration<byte[]> clientIds = s.c.clientContext.getClientSessionContext().getIds(); in test_SSLSessionContext_getIds() 107 c.clientContext.getClientSessionContext().getSession(null); in test_SSLSessionContext_getSession() 112 assertNull(c.clientContext.getClientSessionContext().getSession(new byte[0])); in test_SSLSessionContext_getSession() 113 assertNull(c.clientContext.getClientSessionContext().getSession(new byte[1])); in test_SSLSessionContext_getSession() 125 SSLSessionContext client = s.c.clientContext.getClientSessionContext(); in test_SSLSessionContext_getSession() 146 c.clientContext.getClientSessionContext().getSessionCacheSize()); in test_SSLSessionContext_getSessionCacheSize() 153 s.c.clientContext.getClientSessionContext().getSessionCacheSize()); in test_SSLSessionContext_getSessionCacheSize() 165 expectedClientSessionCacheSize, c.clientContext.getClientSessionContext()); in test_SSLSessionContext_setSessionCacheSize_noConnect() 189 SSLSessionContext client = s.c.clientContext.getClientSessionContext(); in test_SSLSessionContext_setSessionCacheSize_oneConnect() 204 SSLSessionContext client = c.clientContext.getClientSessionContext(); in test_SSLSessionContext_setSessionCacheSize_dynamic() [all …]
|
D | SSLSocketVersionCompatibilityTest.java | 171 (SSLSocket) c.clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_startHandshake() 229 final SSLSocket client1 = (SSLSocket) c.clientContext.getSocketFactory().createSocket( in test_SSLSocket_confirmSessionReuse() 241 final SSLSocket client2 = (SSLSocket) c.clientContext.getSocketFactory().createSocket( in test_SSLSocket_confirmSessionReuse() 261 .clientContext(defaultInit(SSLContext.getInstance(clientVersion))) in test_SSLSocket_NoEnabledCipherSuites_Failure() 265 (SSLSocket) c.clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_NoEnabledCipherSuites_Failure() 296 .clientContext(defaultInit(SSLContext.getInstance(clientVersion))) in test_SSLSocket_startHandshake_noKeyStore() 300 (SSLSocket) c.clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_startHandshake_noKeyStore() 332 SSLContext clientContext = c.clientContext; in test_SSLSocket_startHandshake_noClientCertificate() local 334 (SSLSocket) clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_startHandshake_noClientCertificate() 357 (SSLSocket) c.clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_HandshakeCompletedListener() [all …]
|
D | SSLEngineTest.java | 69 TestSSLContext.create().clientContext.createSSLEngine()); in test_SSLEngine_defaultConfiguration() 75 SSLEngine e = c.clientContext.createSSLEngine(); in test_SSLEngine_getSupportedCipherSuites_returnsCopies() 205 String[] cipherSuites = c.clientContext.createSSLEngine().getSupportedCipherSuites(); in test_SSLEngine_getSupportedCipherSuites_connect() 209 if (StandardNames.IS_RI && "TLSv1.2".equals(c.clientContext.getProtocol()) in test_SSLEngine_getSupportedCipherSuites_connect() 246 boolean needsRecordSplit = "TLS".equalsIgnoreCase(c.clientContext.getProtocol()) in test_SSLEngine_getSupportedCipherSuites_connect() 381 SSLEngine e = c.clientContext.createSSLEngine(); in test_SSLEngine_getEnabledCipherSuites_returnsCopies() 389 SSLEngine e = c.clientContext.createSSLEngine(); in test_SSLEngine_setEnabledCipherSuites_storesCopy() 462 SSLEngine e = c.clientContext.createSSLEngine(); in test_SSLEngine_getSupportedProtocols_returnsCopies() 470 SSLEngine e = c.clientContext.createSSLEngine(); in test_SSLEngine_getEnabledProtocols_returnsCopies() 478 SSLEngine e = c.clientContext.createSSLEngine(); in test_SSLEngine_setEnabledProtocols_storesCopy() [all …]
|
D | SSLSocketTest.java | 169 String[] cipherSuites = c.clientContext.getSocketFactory().getSupportedCipherSuites(); in test_SSLSocket_getSupportedCipherSuites_connect() 430 SSLContext clientContext = c.clientContext; in test_SSLSocket_noncontiguousProtocols_useLower() local 432 clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_noncontiguousProtocols_useLower() 461 SSLContext clientContext = c.clientContext; in test_SSLSocket_noncontiguousProtocols_canNegotiate() local 463 clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_noncontiguousProtocols_canNegotiate() 509 (SSLSocket) referenceContext.clientContext.getSocketFactory().createSocket(); in test_SSLSocket_getHandshakeSession_duringHandshake_client() 572 SSLContext clientContext = c.clientContext; in test_SSLSocket_getHandshakeSession_duringHandshake_client() local 574 clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_getHandshakeSession_duringHandshake_client() 600 (SSLSocket) referenceContext.clientContext.getSocketFactory().createSocket(); in test_SSLSocket_getHandshakeSession_duringHandshake_server() 675 SSLContext clientContext = c.clientContext; in test_SSLSocket_getHandshakeSession_duringHandshake_server() local [all …]
|
D | SSLSessionTest.java | 254 context.clientContext.getClientSessionContext().setSessionTimeout(1000000); in test_SSLSession_getPeerCertificates_resumption() 255 context.clientContext.getClientSessionContext().setSessionCacheSize(0); in test_SSLSession_getPeerCertificates_resumption() 257 SSLSocket client = (SSLSocket) context.clientContext.getSocketFactory().createSocket( in test_SSLSession_getPeerCertificates_resumption() 267 client = (SSLSocket) context.clientContext.getSocketFactory().createSocket( in test_SSLSession_getPeerCertificates_resumption() 360 assertEquals(s.s.c.clientContext.getClientSessionContext(), s.client.getSessionContext()); in test_SSLSession_getSessionContext() 514 final SSLSocket client = (SSLSocket) c.clientContext.getSocketFactory().createSocket( in test_SSLSession_getPeerHostFromInetAddress()
|
/external/conscrypt/common/src/test/java/org/conscrypt/javax/net/ssl/ |
D | SSLSessionContextTest.java | 84 Enumeration<byte[]> clientIds = s.c.clientContext.getClientSessionContext().getIds(); in test_SSLSessionContext_getIds() 103 c.clientContext.getClientSessionContext().getSession(null); in test_SSLSessionContext_getSession() 108 assertNull(c.clientContext.getClientSessionContext().getSession(new byte[0])); in test_SSLSessionContext_getSession() 109 assertNull(c.clientContext.getClientSessionContext().getSession(new byte[1])); in test_SSLSessionContext_getSession() 121 SSLSessionContext client = s.c.clientContext.getClientSessionContext(); in test_SSLSessionContext_getSession() 142 c.clientContext.getClientSessionContext().getSessionCacheSize()); in test_SSLSessionContext_getSessionCacheSize() 149 s.c.clientContext.getClientSessionContext().getSessionCacheSize()); in test_SSLSessionContext_getSessionCacheSize() 161 expectedClientSessionCacheSize, c.clientContext.getClientSessionContext()); in test_SSLSessionContext_setSessionCacheSize_noConnect() 185 SSLSessionContext client = s.c.clientContext.getClientSessionContext(); in test_SSLSessionContext_setSessionCacheSize_oneConnect() 200 SSLSessionContext client = c.clientContext.getClientSessionContext(); in test_SSLSessionContext_setSessionCacheSize_dynamic() [all …]
|
D | SSLSocketVersionCompatibilityTest.java | 169 (SSLSocket) c.clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_startHandshake() 227 final SSLSocket client1 = (SSLSocket) c.clientContext.getSocketFactory().createSocket( in test_SSLSocket_confirmSessionReuse() 239 final SSLSocket client2 = (SSLSocket) c.clientContext.getSocketFactory().createSocket( in test_SSLSocket_confirmSessionReuse() 259 .clientContext(defaultInit(SSLContext.getInstance(clientVersion))) in test_SSLSocket_NoEnabledCipherSuites_Failure() 263 (SSLSocket) c.clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_NoEnabledCipherSuites_Failure() 294 .clientContext(defaultInit(SSLContext.getInstance(clientVersion))) in test_SSLSocket_startHandshake_noKeyStore() 298 (SSLSocket) c.clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_startHandshake_noKeyStore() 330 SSLContext clientContext = c.clientContext; in test_SSLSocket_startHandshake_noClientCertificate() local 332 (SSLSocket) clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_startHandshake_noClientCertificate() 355 (SSLSocket) c.clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_HandshakeCompletedListener() [all …]
|
D | SSLEngineTest.java | 65 TestSSLContext.create().clientContext.createSSLEngine()); in test_SSLEngine_defaultConfiguration() 71 SSLEngine e = c.clientContext.createSSLEngine(); in test_SSLEngine_getSupportedCipherSuites_returnsCopies() 201 String[] cipherSuites = c.clientContext.createSSLEngine().getSupportedCipherSuites(); in test_SSLEngine_getSupportedCipherSuites_connect() 205 if (StandardNames.IS_RI && "TLSv1.2".equals(c.clientContext.getProtocol()) in test_SSLEngine_getSupportedCipherSuites_connect() 242 boolean needsRecordSplit = "TLS".equalsIgnoreCase(c.clientContext.getProtocol()) in test_SSLEngine_getSupportedCipherSuites_connect() 377 SSLEngine e = c.clientContext.createSSLEngine(); in test_SSLEngine_getEnabledCipherSuites_returnsCopies() 385 SSLEngine e = c.clientContext.createSSLEngine(); in test_SSLEngine_setEnabledCipherSuites_storesCopy() 458 SSLEngine e = c.clientContext.createSSLEngine(); in test_SSLEngine_getSupportedProtocols_returnsCopies() 466 SSLEngine e = c.clientContext.createSSLEngine(); in test_SSLEngine_getEnabledProtocols_returnsCopies() 474 SSLEngine e = c.clientContext.createSSLEngine(); in test_SSLEngine_setEnabledProtocols_storesCopy() [all …]
|
D | SSLSocketTest.java | 165 String[] cipherSuites = c.clientContext.getSocketFactory().getSupportedCipherSuites(); in test_SSLSocket_getSupportedCipherSuites_connect() 426 SSLContext clientContext = c.clientContext; in test_SSLSocket_noncontiguousProtocols_useLower() local 428 clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_noncontiguousProtocols_useLower() 457 SSLContext clientContext = c.clientContext; in test_SSLSocket_noncontiguousProtocols_canNegotiate() local 459 clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_noncontiguousProtocols_canNegotiate() 505 (SSLSocket) referenceContext.clientContext.getSocketFactory().createSocket(); in test_SSLSocket_getHandshakeSession_duringHandshake_client() 568 SSLContext clientContext = c.clientContext; in test_SSLSocket_getHandshakeSession_duringHandshake_client() local 570 clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_getHandshakeSession_duringHandshake_client() 596 (SSLSocket) referenceContext.clientContext.getSocketFactory().createSocket(); in test_SSLSocket_getHandshakeSession_duringHandshake_server() 671 SSLContext clientContext = c.clientContext; in test_SSLSocket_getHandshakeSession_duringHandshake_server() local [all …]
|
D | SSLSessionTest.java | 250 context.clientContext.getClientSessionContext().setSessionTimeout(1000000); in test_SSLSession_getPeerCertificates_resumption() 251 context.clientContext.getClientSessionContext().setSessionCacheSize(0); in test_SSLSession_getPeerCertificates_resumption() 253 SSLSocket client = (SSLSocket) context.clientContext.getSocketFactory().createSocket( in test_SSLSession_getPeerCertificates_resumption() 263 client = (SSLSocket) context.clientContext.getSocketFactory().createSocket( in test_SSLSession_getPeerCertificates_resumption() 356 assertEquals(s.s.c.clientContext.getClientSessionContext(), s.client.getSessionContext()); in test_SSLSession_getSessionContext() 510 final SSLSocket client = (SSLSocket) c.clientContext.getSocketFactory().createSocket( in test_SSLSession_getPeerHostFromInetAddress()
|
D | SSLEngineVersionCompatibilityTest.java | 191 c.clientContext.createSSLEngine().beginHandshake(); in test_SSLEngine_beginHandshake() 205 SSLContext clientContext = SSLContext.getInstance(clientVersion); in test_SSLEngine_beginHandshake_noKeyStore() local 206 clientContext.init(null, null, null); in test_SSLEngine_beginHandshake_noKeyStore() 211 .clientContext(clientContext) in test_SSLEngine_beginHandshake_noKeyStore() 245 SSLEngine e = c.clientContext.createSSLEngine(); in test_SSLEngine_clientAuth() 692 SSLSession session = c.clientContext.createSSLEngine().getSession(); in test_SSLEngine_Exception() 701 SSLEngine client = c.clientContext.createSSLEngine(c.host.getHostName(), c.port); in test_SSLEngine_Exception()
|
/external/conscrypt/benchmark-jmh/src/jmh/java/org/conscrypt/ |
D | OpenJdkEngineFactory.java | 55 private final SSLContext clientContext = initClientSslContext(newContext()); 63 return initEngine(clientContext.createSSLEngine(), cipher, true); in newClientEngine() 83 private final SSLContext clientContext = newConscryptClientContext(); 88 SSLEngine engine = initEngine(clientContext.createSSLEngine(), cipher, true); in newClientEngine() 114 private final SSLContext clientContext = newConscryptClientContext(); 119 SSLEngine engine = initEngine(clientContext.createSSLEngine(), cipher, true); in newClientEngine() 147 private final SslContext clientContext = newNettyClientContext(OPENSSL, false); 155 clientContext(useAlpn).newEngine(PooledByteBufAllocator.DEFAULT), cipher, true); in newClientEngine() 164 private SslContext clientContext(boolean useAlpn) { in clientContext() method 165 return useAlpn ? clientContextAlpn : clientContext; in clientContext() [all …]
|
D | OpenJdkEndpointFactory.java | 55 SSLContext clientContext = TestUtils.newClientSslContext(provider); in newJdkFactories() local 57 final SSLSocketFactory clientFactory = clientContext.getSocketFactory(); in newJdkFactories() 65 SSLContext clientContext = TestUtils.newClientSslContext(provider); in newConscryptFactories() local 67 final SSLSocketFactory clientFactory = clientContext.getSocketFactory(); in newConscryptFactories()
|
/external/conscrypt/repackaged/testing/src/main/java/com/android/org/conscrypt/javax/net/ssl/ |
D | TestSSLContext.java | 83 public final SSLContext clientContext; field in TestSSLContext 176 X509TrustManager serverTrustManager, SSLContext clientContext, in TestSSLContext() argument 186 this.clientContext = clientContext; in TestSSLContext() 216 private SSLContext clientContext; field in TestSSLContext.Builder 268 public Builder clientContext(SSLContext clientContext) { in clientContext() argument 269 this.clientContext = clientContext; in clientContext() 303 SSLContext clientContext = this.clientContext; in build() local 325 clientContext = clientContext != null in build() 326 ? clientContext in build() 351 (X509TrustManager) serverTrustManager, clientContext, serverContext, in build()
|
/external/conscrypt/testing/src/main/java/org/conscrypt/javax/net/ssl/ |
D | TestSSLContext.java | 81 public final SSLContext clientContext; field in TestSSLContext 174 X509TrustManager serverTrustManager, SSLContext clientContext, in TestSSLContext() argument 184 this.clientContext = clientContext; in TestSSLContext() 211 private SSLContext clientContext; field in TestSSLContext.Builder 263 public Builder clientContext(SSLContext clientContext) { in clientContext() argument 264 this.clientContext = clientContext; in clientContext() 298 SSLContext clientContext = this.clientContext; in build() local 320 clientContext = clientContext != null in build() 321 ? clientContext in build() 346 (X509TrustManager) serverTrustManager, clientContext, serverContext, in build()
|
/external/conscrypt/benchmark-android/src/main/java/org/conscrypt/ |
D | AndroidEngineFactory.java | 28 private final SSLContext clientContext = newConscryptClientContext(); 33 SSLEngine engine = initEngine(clientContext.createSSLEngine(), cipher, true); in newClientEngine() 55 private final SSLContext clientContext = TestUtils.newClientSslContext( 62 SSLEngine engine = initEngine(clientContext.createSSLEngine(), cipher, true); in newClientEngine()
|
D | AndroidEndpointFactory.java | 53 SSLContext clientContext = TestUtils.newClientSslContext(provider); in newConscryptFactories() local 55 final SSLSocketFactory clientFactory = clientContext.getSocketFactory(); in newConscryptFactories()
|
/external/conscrypt/repackaged/benchmark-android/src/main/java/com/android/org/conscrypt/ |
D | AndroidEngineFactory.java | 30 private final SSLContext clientContext = newConscryptClientContext(); 35 SSLEngine engine = initEngine(clientContext.createSSLEngine(), cipher, true); in newClientEngine() 57 private final SSLContext clientContext = 64 SSLEngine engine = initEngine(clientContext.createSSLEngine(), cipher, true); in newClientEngine()
|
D | AndroidEndpointFactory.java | 55 SSLContext clientContext = TestUtils.newClientSslContext(provider); in newConscryptFactories() local 57 final SSLSocketFactory clientFactory = clientContext.getSocketFactory(); in newConscryptFactories()
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/tls/ |
D | CertificatePinnerChainValidationTest.java | 63 SSLContext clientContext = new SslContextBuilder() in pinRootNotPresentInChain() local 67 .setSslSocketFactory(clientContext.getSocketFactory()) in pinRootNotPresentInChain() 118 SSLContext clientContext = new SslContextBuilder() in pinIntermediatePresentInChain() local 122 .setSslSocketFactory(clientContext.getSocketFactory()) in pinIntermediatePresentInChain() 177 SSLContext clientContext = new SslContextBuilder() in unrelatedPinnedLeafCertificateInChain() local 181 .setSslSocketFactory(clientContext.getSocketFactory()) in unrelatedPinnedLeafCertificateInChain() 249 SSLContext clientContext = new SslContextBuilder() in unrelatedPinnedIntermediateCertificateInChain() local 254 .setSslSocketFactory(clientContext.getSocketFactory()) in unrelatedPinnedIntermediateCertificateInChain()
|
/external/python/pyopenssl/tests/ |
D | test_ssl.py | 1050 clientContext = Context(SSLv23_METHOD) 1051 clientContext.load_verify_locations(*args) 1054 clientContext.set_verify( 1059 clientSSL = Connection(clientContext, client) 1116 clientContext = Context(SSLv23_METHOD) 1118 clientContext.load_verify_locations(tmpfile) 1289 def _handshake_test(self, serverContext, clientContext): argument 1299 client = Connection(clientContext, clientSocket) 1331 clientContext = Context(SSLv23_METHOD) 1332 clientContext.set_verify(VERIFY_PEER, verify.callback) [all …]
|
/external/grpc-grpc-java/alts/src/test/java/io/grpc/alts/internal/ |
D | AltsTsiHandshakerTest.java | 237 AltsAuthContext clientContext = (AltsAuthContext) handshakerClient.extractPeerObject(); in extractClientPeerSuccess() local 238 assertEquals(TEST_APPLICATION_PROTOCOL, clientContext.getApplicationProtocol()); in extractClientPeerSuccess() 239 assertEquals(TEST_RECORD_PROTOCOL, clientContext.getRecordProtocol()); in extractClientPeerSuccess() 240 assertEquals(TEST_SERVER_SERVICE_ACCOUNT, clientContext.getPeerServiceAccount()); in extractClientPeerSuccess() 241 assertEquals(TEST_CLIENT_SERVICE_ACCOUNT, clientContext.getLocalServiceAccount()); in extractClientPeerSuccess() 242 assertEquals(TEST_RPC_PROTOCOL_VERSIONS, clientContext.getPeerRpcVersions()); in extractClientPeerSuccess()
|
/external/ukey2/src/main/javatest/com/google/security/cryptauth/lib/securegcm/ |
D | Ukey2HandshakeTest.java | 94 D2DConnectionContext clientContext = client.toConnectionContext(); in testHandshake() local 96 assertContextsCompatible(clientContext, serverContext); in testHandshake() 805 D2DConnectionContext clientContext, D2DConnectionContext serverContext) { in assertContextsCompatible() argument 806 assertNotNull(clientContext); in assertContextsCompatible() 808 assertEquals(D2DConnectionContextV1.PROTOCOL_VERSION, clientContext.getProtocolVersion()); in assertContextsCompatible() 810 assertEquals(clientContext.getEncodeKey(), serverContext.getDecodeKey()); in assertContextsCompatible() 811 assertEquals(clientContext.getDecodeKey(), serverContext.getEncodeKey()); in assertContextsCompatible() 812 assertFalse(clientContext.getEncodeKey().equals(clientContext.getDecodeKey())); in assertContextsCompatible() 813 assertEquals(0, clientContext.getSequenceNumberForEncoding()); in assertContextsCompatible() 814 assertEquals(0, clientContext.getSequenceNumberForDecoding()); in assertContextsCompatible()
|
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/ |
D | Conscrypt.java | 256 SSLSessionContext clientContext = context.getClientSessionContext(); in setClientSessionCache() local 257 if (!(clientContext instanceof ClientSessionContext)) { in setClientSessionCache() 259 "Not a conscrypt client context: " + clientContext.getClass().getName()); in setClientSessionCache() 261 ((ClientSessionContext) clientContext).setPersistentCache(cache); in setClientSessionCache()
|
/external/conscrypt/common/src/main/java/org/conscrypt/ |
D | Conscrypt.java | 246 SSLSessionContext clientContext = context.getClientSessionContext(); in setClientSessionCache() local 247 if (!(clientContext instanceof ClientSessionContext)) { in setClientSessionCache() 249 "Not a conscrypt client context: " + clientContext.getClass().getName()); in setClientSessionCache() 251 ((ClientSessionContext) clientContext).setPersistentCache(cache); in setClientSessionCache()
|