Searched refs:certs (Results 1 - 10 of 10) sorted by relevance
/foundation/communication/netstack/interfaces/kits/c/net_ssl/src/ |
H A D | net_ssl_c.cpp | 123 int32_t OH_NetStack_GetCertificatesForHostName(const char *hostname, NetStack_Certificates *certs)
in OH_NetStack_GetCertificatesForHostName() argument 125 if (hostname == nullptr || certs == nullptr) {
in OH_NetStack_GetCertificatesForHostName() 141 certs->length = 0;
in OH_NetStack_GetCertificatesForHostName() 142 certs->content = nullptr;
in OH_NetStack_GetCertificatesForHostName() 170 certs->length = innerCertsLength;
in OH_NetStack_GetCertificatesForHostName() 171 certs->content = contentPtr;
in OH_NetStack_GetCertificatesForHostName() 175 void OH_Netstack_DestroyCertificatesContent(NetStack_Certificates *certs)
in OH_Netstack_DestroyCertificatesContent() argument 177 if (certs == nullptr) {
in OH_Netstack_DestroyCertificatesContent() 182 if (certs->content == nullptr) {
in OH_Netstack_DestroyCertificatesContent() 186 free(certs in OH_Netstack_DestroyCertificatesContent() [all...] |
/foundation/communication/netstack/interfaces/kits/c/net_ssl/include/ |
H A D | net_ssl_c.h | 75 int32_t OH_NetStack_GetCertificatesForHostName(const char *hostname, NetStack_Certificates *certs); 77 void OH_Netstack_DestroyCertificatesContent(NetStack_Certificates *certs);
|
/foundation/communication/netstack/frameworks/native/http/http_client/ |
H A D | http_client_task.cpp | 155 std::vector<std::string> certs; in SslCtxFunction() local 156 certs.emplace_back(HttpConstant::USER_CERT_ROOT_PATH); in SslCtxFunction() 157 certs.emplace_back( in SslCtxFunction() 159 certs.emplace_back(HttpConstant::HTTP_PREPARE_CA_PATH); in SslCtxFunction() 161 for (const auto &path : certs) { in SslCtxFunction()
|
/foundation/communication/netmanager_base/interfaces/innerkits/netconnclient/include/ |
H A D | network_security_config.h | 64 int32_t GetTrustAnchorsForHostName(const std::string &hostname, std::vector<std::string> &certs);
|
H A D | net_conn_client.h | 410 int32_t GetTrustAnchorsForHostName(const std::string &hostname, std::vector<std::string> &certs);
|
/foundation/communication/netstack/frameworks/cj/http/src/ |
H A D | net_http_client_exec.cpp | 579 std::vector<std::string> certs; in SetServerSSLCertOption() local 581 auto ret = NetManagerStandard::NetConnClient::GetInstance().GetTrustAnchorsForHostName(hostname, certs); in SetServerSSLCertOption() 587 certs.emplace_back(USER_CERT_ROOT_PATH); in SetServerSSLCertOption() 588 certs.emplace_back(BASE_PATH + std::to_string(getuid() / UID_TRANSFORM_DIVISOR)); in SetServerSSLCertOption() 590 certs.emplace_back(HTTP_PREPARE_CA_PATH); in SetServerSSLCertOption() 591 context->SetCertsPath(std::move(certs), context->options.GetCaPath()); in SetServerSSLCertOption()
|
/foundation/communication/netmanager_base/frameworks/native/netconnclient/src/ |
H A D | network_security_config.cpp | 238 NETMGR_LOG_D("No customized CA certs."); in ReHashCAPathForX509() 608 int32_t NetworkSecurityConfig::GetTrustAnchorsForHostName(const std::string &hostname, std::vector<std::string> &certs) in GetTrustAnchorsForHostName() argument 638 certs.push_back(rehashedCertpath); in GetTrustAnchorsForHostName() 642 if (certs.empty()) { in GetTrustAnchorsForHostName() 643 NETMGR_LOG_D("No customized CA certs configured."); in GetTrustAnchorsForHostName() 651 NETMGR_LOG_I("DumpConfigs:baseConfig_.trustAnchors_.certs"); in DumpConfigs()
|
H A D | net_conn_client.cpp | 862 int32_t NetConnClient::GetTrustAnchorsForHostName(const std::string &hostname, std::vector<std::string> &certs) in GetTrustAnchorsForHostName() argument 864 return NetworkSecurityConfig::GetInstance().GetTrustAnchorsForHostName(hostname, certs); in GetTrustAnchorsForHostName()
|
/foundation/communication/netstack/frameworks/js/napi/http/http_exec/src/ |
H A D | http_exec.cpp | 969 std::vector<std::string> certs; in AddCurlHandle() local 971 auto ret = NetManagerStandard::NetConnClient::GetInstance().GetTrustAnchorsForHostName(hostname, certs); in AddCurlHandle() 977 certs.emplace_back(USER_CERT_ROOT_PATH); in AddCurlHandle() 978 certs.emplace_back(BASE_PATH + std::to_string(getuid() / UID_TRANSFORM_DIVISOR)); in AddCurlHandle() 980 certs.emplace_back(HttpConstant::HTTP_PREPARE_CA_PATH); in AddCurlHandle() 981 context->SetCertsPath(std::move(certs), context->options.GetCaPath()); in AddCurlHandle()
|
/foundation/communication/netmanager_base/test/netconnmanager/unittest/net_conn_multi_test/ |
H A D | net_conn_client_test.cpp | 1315 std::vector<std::string> certs; in HWTEST_F() local 1316 auto ret = NetConnClient::GetInstance().GetTrustAnchorsForHostName(hostname, certs); in HWTEST_F()
|
Completed in 12 milliseconds