Home
last modified time | relevance | path

Searched refs:ssl (Results 1 - 23 of 23) sorted by relevance

/foundation/communication/netstack/test/unittest/tlssocket/server/
H A Dtls_socket_server_mock_branch_test.cpp18 #include <openssl/ssl.h>
62 SSL *ssl = SSL_new(ctx); in HWTEST_F() local
63 connection->ssl_ = (SSL *)ssl; in HWTEST_F()
71 SSL *ssl = SSL_new(ctx); in HWTEST_F() local
72 connection->ssl_ = (SSL *)ssl; in HWTEST_F()
81 SSL *ssl = SSL_new(ctx); in HWTEST_F() local
82 connection->ssl_ = (SSL *)ssl; in HWTEST_F()
91 SSL *ssl = SSL_new(ctx); in HWTEST_F() local
92 connection->ssl_ = (SSL *)ssl; in HWTEST_F()
102 SSL *ssl in HWTEST_F() local
[all...]
H A DTlsSocketServerTest.cpp20 #include <openssl/ssl.h>
/foundation/communication/netstack/test/unittest/tls_test/server/
H A Dtls_socket_server_mock_branch_test.cpp18 #include <openssl/ssl.h>
62 SSL *ssl = SSL_new(ctx); in HWTEST_F() local
63 connection->ssl_ = (SSL *)ssl; in HWTEST_F()
71 SSL *ssl = SSL_new(ctx); in HWTEST_F() local
72 connection->ssl_ = (SSL *)ssl; in HWTEST_F()
81 SSL *ssl = SSL_new(ctx); in HWTEST_F() local
82 connection->ssl_ = (SSL *)ssl; in HWTEST_F()
91 SSL *ssl = SSL_new(ctx); in HWTEST_F() local
92 connection->ssl_ = (SSL *)ssl; in HWTEST_F()
102 SSL *ssl in HWTEST_F() local
[all...]
/foundation/communication/netstack/test/unittest/tlssocket/client/
H A DTlsContextTest.cpp20 #include <openssl/ssl.h>
92 SSL *ssl = tlsContext->CreateSsl(); in HWTEST_F() local
93 EXPECT_NE(ssl, nullptr); in HWTEST_F()
94 SSL_free(ssl); in HWTEST_F()
95 ssl = nullptr; in HWTEST_F()
H A Dtls_utils_test.h23 #include <openssl/ssl.h>
H A DTlsSocketBranchTest.cpp19 #include <openssl/ssl.h>
338 ssl_st *ssl = tlsSocketInternal->GetSSL(); in HWTEST_F() local
339 EXPECT_NE(ssl, nullptr); in HWTEST_F()
/foundation/communication/netstack/test/unittest/tls_test/client/
H A DTlsContextTest.cpp20 #include <openssl/ssl.h>
92 SSL *ssl = tlsContext->CreateSsl(); in HWTEST_F() local
93 EXPECT_NE(ssl, nullptr); in HWTEST_F()
94 SSL_free(ssl); in HWTEST_F()
95 ssl = nullptr; in HWTEST_F()
H A Dtls_utils_test.h23 #include <openssl/ssl.h>
H A DTlsSocketBranchTest.cpp19 #include <openssl/ssl.h>
338 ssl_st *ssl = tlsSocketInternal->GetSSL(); in HWTEST_F() local
339 EXPECT_NE(ssl, nullptr); in HWTEST_F()
/foundation/communication/netstack/frameworks/native/tls_socket/src/
H A Dsocket_error.cpp22 #include <openssl/ssl.h>
H A Dtls_context.cpp20 #include <openssl/ssl.h>
H A Dtls_context_server.cpp21 #include <openssl/ssl.h>
/foundation/communication/dsoftbus/components/nstackx/nstackx_util/interface/
H A Dnstackx_openssl.h22 #include <openssl/ssl.h>
/foundation/communication/netstack/frameworks/native/net_ssl/include/
H A Dnet_ssl_verify_cert.h23 #include <openssl/ssl.h>
/foundation/communication/netstack/frameworks/js/napi/tls/src/
H A Dtls_socket.cpp28 #include <openssl/ssl.h>
1211 bool TLSSocket::TLSSocketInternal::SendRetry(ssl_st *ssl, const char *curPos, size_t curSendSize, int sockfd) in SendRetry() argument
1226 int len = SSL_write(ssl, curPos, curSendSize); in SendRetry()
1228 int err = SSL_get_error(ssl, SSL_RET_CODE); in SendRetry()
1247 bool TLSSocket::TLSSocketInternal::PollSend(int sockfd, ssl_st *ssl, const char *pdata, int sendSize) in PollSend() argument
1266 if (!ssl) { in PollSend()
1267 NETSTACK_LOGE("ssl is null"); in PollSend()
1271 int len = SSL_write(ssl, curPos, curSendSize); in PollSend()
1273 int err = SSL_get_error(ssl, SSL_RET_CODE); in PollSend()
1278 } else if (!SendRetry(ssl, curPo in PollSend()
[all...]
H A Dtls_socket_server.cpp23 #include <openssl/ssl.h>
101 int ConvertSSLError(ssl_st *ssl) in ConvertSSLError() argument
103 if (!ssl) { in ConvertSSLError()
106 return TlsSocket::TlsSocketError::TLS_ERR_SSL_BASE + SSL_get_error(ssl, SSL_RET_CODE); in ConvertSSLError()
790 NETSTACK_LOGE("ssl is null"); in Send()
810 NETSTACK_LOGE("ssl is null"); in Recv()
819 NETSTACK_LOGE("ssl is null"); in Close()
845 NETSTACK_LOGE("ssl is null"); in SetAlpnProtocols()
887 NETSTACK_LOGE("ssl in null"); in GetCipherSuite()
923 NETSTACK_LOGE("ssl i in GetProtocol()
[all...]
/foundation/communication/netstack/interfaces/innerkits/tls_socket/include/
H A Dtls_socket.h497 * convert the code to ssl error code
498 * @return the value for ssl error code.
551 * Obtain the ssl used in encrypted communication
557 bool SendRetry(ssl_st *ssl, const char *curPos, size_t curSendSize, int sockfd);
563 bool PollSend(int sockfd, ssl_st *ssl, const char *pdata, int sendSize);
/foundation/communication/netstack/frameworks/js/napi/http/http_exec/include/
H A Dhttp_exec.h29 #include <openssl/ssl.h>
/foundation/communication/netstack/interfaces/kits/c/net_ssl/src/
H A Dnet_ssl_c.cpp21 #include <openssl/ssl.h>
/foundation/communication/netstack/frameworks/js/napi/net_ssl/async_context/src/
H A Dcert_context.cpp20 #include <openssl/ssl.h>
/foundation/communication/netstack/frameworks/native/http/http_client/
H A Dhttp_client_task.cpp21 #include <openssl/ssl.h>
/foundation/communication/netstack/frameworks/cj/http/src/
H A Dnet_http_client_exec.cpp25 #include <openssl/ssl.h>
620 // in real life, you should buy a ssl certification and rename it to /etc/ssl/cert.pem in SetServerSSLCertOption()
/foundation/communication/netstack/frameworks/js/napi/http/http_exec/src/
H A Dhttp_exec.cpp28 #include <openssl/ssl.h>
1013 // in real life, you should buy a ssl certification and rename it to /etc/ssl/cert.pem in AddCurlHandle()

Completed in 18 milliseconds