Home
last modified time | relevance | path

Searched refs:ssl (Results 1 – 25 of 69) sorted by relevance

123

/packages/modules/DnsResolver/
DDnsTlsSocket.cpp228 bssl::UniquePtr<SSL> ssl(SSL_new(mSslCtx.get())); in prepareForSslConnect() local
231 SSL_set_bio(ssl.get(), bio.get(), bio.get()); in prepareForSslConnect()
234 if (!mCache->prepareSsl(ssl.get())) { in prepareForSslConnect()
240 if (SSL_set_tlsext_host_name(ssl.get(), mServer.name.c_str()) != 1) { in prepareForSslConnect()
244 X509_VERIFY_PARAM* param = SSL_get0_param(ssl.get()); in prepareForSslConnect()
250 SSL_set_verify(ssl.get(), SSL_VERIFY_PEER, nullptr); in prepareForSslConnect()
256 SSL_set_session(ssl.get(), session.get()); in prepareForSslConnect()
261 return ssl; in prepareForSslConnect()
265 bssl::UniquePtr<SSL> ssl; in sslConnect() local
266 if (ssl = prepareForSslConnect(fd); !ssl) { in sslConnect()
[all …]
DDnsTlsSessionCache.cpp26 bool DnsTlsSessionCache::prepareSsl(SSL* ssl) { in prepareSsl() argument
29 int ret = SSL_set_ex_data(ssl, 0, this); in prepareSsl()
39 int DnsTlsSessionCache::newSessionCallback(SSL* ssl, SSL_SESSION* session) { in newSessionCallback() argument
40 if (!ssl || !session) { in newSessionCallback()
45 SSL_get_ex_data(ssl, 0)); in newSessionCallback()
DDnsTlsSessionCache.h37 bool prepareSsl(SSL* _Nonnull ssl);
48 static int newSessionCallback(SSL* _Nullable ssl, SSL_SESSION* _Nullable session);
/packages/modules/IPsec/src/java/com/android/internal/net/eap/crypto/
DTlsSession.java24 import android.net.ssl.SSLEngines;
44 import javax.net.ssl.SSLContext;
45 import javax.net.ssl.SSLEngine;
46 import javax.net.ssl.SSLEngineResult;
47 import javax.net.ssl.SSLEngineResult.HandshakeStatus;
48 import javax.net.ssl.SSLEngineResult.Status;
49 import javax.net.ssl.SSLException;
50 import javax.net.ssl.SSLSession;
51 import javax.net.ssl.TrustManager;
52 import javax.net.ssl.TrustManagerFactory;
[all …]
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/
DMailTransport.java37 import javax.net.ssl.HostnameVerifier;
38 import javax.net.ssl.HttpsURLConnection;
39 import javax.net.ssl.SSLException;
40 import javax.net.ssl.SSLPeerUnverifiedException;
41 import javax.net.ssl.SSLSession;
42 import javax.net.ssl.SSLSocket;
246 SSLSocket ssl = (SSLSocket) socket; in verifyHostname() local
247 ssl.startHandshake(); in verifyHostname()
249 SSLSession session = ssl.getSession(); in verifyHostname()
/packages/apps/KeyChain/tests/src/com/android/keychain/tests/
DKeyChainTestActivity.java37 import javax.net.ssl.HttpsURLConnection;
38 import javax.net.ssl.KeyManager;
39 import javax.net.ssl.KeyManagerFactory;
40 import javax.net.ssl.SSLContext;
41 import javax.net.ssl.SSLSocketFactory;
42 import javax.net.ssl.TrustManager;
43 import javax.net.ssl.X509ExtendedKeyManager;
44 import javax.net.ssl.X509TrustManager;
46 import libcore.javax.net.ssl.TestSSLContext;
/packages/apps/Car/DebuggingRestrictionController/app/src/main/java/com/android/car/debuggingrestrictioncontroller/auth/
DTokenValidator.java33 import javax.net.ssl.HostnameVerifier;
34 import javax.net.ssl.HttpsURLConnection;
35 import javax.net.ssl.SSLPeerUnverifiedException;
36 import javax.net.ssl.SSLSession;
37 import javax.net.ssl.SSLSessionContext;
DSelfSignedTrustManager.java29 import javax.net.ssl.TrustManagerFactory;
30 import javax.net.ssl.X509TrustManager;
/packages/modules/DnsResolver/tests/dns_responder/
Ddns_tls_frontend.cpp209 bssl::UniquePtr<SSL> ssl(SSL_new(ctx_.get())); in requestHandler() local
210 SSL_set_fd(ssl.get(), client.get()); in requestHandler()
213 if (SSL_accept(ssl.get()) <= 0) { in requestHandler()
217 handleRequests(ssl.get(), client.get()); in requestHandler()
229 void DnsTlsFrontend::handleRequests(SSL* ssl, int clientFd) { in handleRequests() argument
237 if (SSL_read(ssl, &queryHeader, 2) != 2) { in handleRequests()
245 int ret = SSL_read(ssl, query + qbytes, qlen - qbytes); in handleRequests()
299 if (SSL_write(ssl, reply.data(), replyLen) != replyLen) { in handleRequests()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/crypto/
DTlsSessionTest.java42 import javax.net.ssl.SSLContext;
43 import javax.net.ssl.SSLEngine;
44 import javax.net.ssl.SSLEngineResult;
45 import javax.net.ssl.SSLEngineResult.HandshakeStatus;
46 import javax.net.ssl.SSLEngineResult.Status;
47 import javax.net.ssl.SSLException;
48 import javax.net.ssl.SSLSession;
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/
DMeasurementHttpClient.java44 import javax.net.ssl.HttpsURLConnection;
45 import javax.net.ssl.SSLContext;
46 import javax.net.ssl.SSLSocketFactory;
47 import javax.net.ssl.TrustManager;
48 import javax.net.ssl.X509TrustManager;
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DSSLCertificateSocketFactoryTest.java34 import javax.net.ssl.HostnameVerifier;
35 import javax.net.ssl.HttpsURLConnection;
36 import javax.net.ssl.SSLPeerUnverifiedException;
37 import javax.net.ssl.SSLSession;
38 import libcore.javax.net.ssl.SSLConfigurationAsserts;
/packages/modules/adb/tls/
Dtls_connection.cpp60 static int SSLSetCertCb(SSL* ssl, void* opaque);
150 int TlsConnectionImpl::SSLSetCertCb(SSL* ssl, void* opaque) { in SSLSetCertCb() argument
152 return p->set_cert_cb_(ssl); in SSLSetCertCb()
373 bool TlsConnection::SetCertAndKey(SSL* ssl, std::string_view cert, std::string_view priv_key) { in SetCertAndKey() argument
374 CHECK(ssl); in SetCertAndKey()
386 if (!SSL_set_chain_and_key(ssl, cert_chain.data(), cert_chain.size(), evp_pkey.get(), in SetCertAndKey()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeCertPayload.java39 import javax.net.ssl.TrustManager;
40 import javax.net.ssl.TrustManagerFactory;
41 import javax.net.ssl.X509TrustManager;
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/
DOsuServerConnection.java59 import javax.net.ssl.HttpsURLConnection;
60 import javax.net.ssl.SSLContext;
61 import javax.net.ssl.SSLHandshakeException;
62 import javax.net.ssl.SSLSocketFactory;
63 import javax.net.ssl.TrustManager;
64 import javax.net.ssl.TrustManagerFactory;
65 import javax.net.ssl.X509TrustManager;
DPasspointObjectFactory.java34 import javax.net.ssl.SSLContext;
35 import javax.net.ssl.TrustManagerFactory;
/packages/modules/AdServices/adservices/tests/test-util/java/com/android/adservices/
DTlsConnectionAvailableRule.java29 import javax.net.ssl.SSLContext;
30 import javax.net.ssl.SSLSocket;
/packages/modules/adb/tls/tests/
Dtls_connection_test.cpp535 client_->SetCertificateCallback([&](SSL* ssl) -> int { in TEST_F() argument
536 const STACK_OF(X509_NAME)* received = SSL_get_client_CA_list(ssl); in TEST_F()
544 EXPECT_TRUE(TlsConnection::SetCertAndKey(ssl, kTestRsa2048UnknownCert, in TEST_F()
582 client_->SetCertificateCallback([&](SSL* ssl) -> int { in TEST_F() argument
586 const STACK_OF(X509_NAME)* received = SSL_get_client_CA_list(ssl); in TEST_F()
/packages/modules/AdServices/adservices/tests/perf/src/android/adservices/test/scenario/adservices/utils/
DMockWebServerRule.java46 import javax.net.ssl.KeyManagerFactory;
47 import javax.net.ssl.SSLContext;
48 import javax.net.ssl.SSLSocketFactory;
/packages/modules/AdServices/adservices/tests/cts/src/android/adservices/utils/
DMockWebServerRule.java48 import javax.net.ssl.KeyManagerFactory;
49 import javax.net.ssl.SSLContext;
50 import javax.net.ssl.SSLSocketFactory;
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/soap/
DHttpsServiceConnection.java34 import javax.net.ssl.HttpsURLConnection;
35 import javax.net.ssl.SSLSocketFactory;
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/android/adservices/http/
DMockWebServerRule.java48 import javax.net.ssl.KeyManagerFactory;
49 import javax.net.ssl.SSLContext;
50 import javax.net.ssl.SSLSocketFactory;
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DRealSystemFacade.java39 import javax.net.ssl.SSLContext;
40 import javax.net.ssl.TrustManager;
/packages/apps/Car/DebuggingRestrictionController/libs/
Dhttpclient-4.5.12.jar ... util/ org/apache/http/conn/ssl/ org/apache/http/conn/params ...
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/
DEapTtlsTest.java54 import javax.net.ssl.SSLContext;
55 import javax.net.ssl.SSLEngine;
56 import javax.net.ssl.SSLEngineResult;
57 import javax.net.ssl.SSLSession;

123