/foundation/communication/netstack/interfaces/innerkits/rust/ylong_http_client/src/reqwest_impl/async_impl/ |
D | mod.rs | 305 pub fn add_root_certificate(mut self, cert: Certificate) -> Self { in add_root_certificate() 306 for cert in cert.into_inner() { in add_root_certificate() 307 self = Self(self.0.add_root_certificate(cert)); in add_root_certificate()
|
/foundation/communication/netstack/interfaces/innerkits/tls_socket/include/ |
D | tls_socket.h | 54 using GetCertificateCallback = std::function<void(int32_t errorNumber, const X509CertRawData &cert)… 55 …tRemoteCertificateCallback = std::function<void(int32_t errorNumber, const X509CertRawData &cert)>; 94 void SetCert(const std::string &cert); 562 …void CallGetCertificateCallback(int32_t err, const X509CertRawData &cert, GetCertificateCallback c… 563 void CallGetRemoteCertificateCallback(int32_t err, const X509CertRawData &cert,
|
/foundation/communication/netstack/frameworks/native/tls_socket/src/ |
D | tls_certificate.cpp | 168 unsigned char cert[FILE_READ_CERT_LEN] = {}; in CertificateFromDer() local 169 size_t certLen = fread(cert, 1, FILE_READ_CERT_LEN, fp); in CertificateFromDer() 175 const auto *cert_data = reinterpret_cast<const unsigned char *>(cert); in CertificateFromDer()
|
D | tls_context.cpp | 171 for (const auto &cert : configuration.GetCaCertificate()) { in SetCaAndVerify() local 172 TLSCertificate ca(cert, CA_CERT); in SetCaAndVerify()
|
D | tls_context_server.cpp | 173 for (const auto &cert : configuration.GetCaCertificate()) { in SetCaAndVerify() local 174 TLSCertificate ca(cert, CA_CERT); in SetCaAndVerify()
|
D | tls_socket.cpp | 175 void TLSSecureOptions::SetCert(const std::string &cert) in SetCert() argument 177 cert_ = cert; in SetCert() 528 void TLSSocket::CallGetCertificateCallback(int32_t err, const X509CertRawData &cert, GetCertificate… in CallGetCertificateCallback() argument 539 func(err, cert); in CallGetCertificateCallback() 543 void TLSSocket::CallGetRemoteCertificateCallback(int32_t err, const X509CertRawData &cert, in CallGetRemoteCertificateCallback() argument 555 func(err, cert); in CallGetRemoteCertificateCallback() 900 const auto &cert = tlsSocketInternal_.GetCertificate(); in GetCertificate() local 901 NETSTACK_LOGI("cert der is %{public}d", cert.encodingFormat); in GetCertificate() 903 if (!cert.data.Length()) { in GetCertificate() 910 callback(TLSSOCKET_SUCCESS, cert); in GetCertificate()
|
D | tls_socket_server.cpp | 458 const auto &cert = TLSServerConfiguration_.GetCertificate(); in GetCertificate() local 459 NETSTACK_LOGI("cert der is %{public}d", cert.encodingFormat); in GetCertificate() 460 if (!cert.data.Length()) { in GetCertificate() 465 callback(TlsSocket::TLSSOCKET_SUCCESS, cert); in GetCertificate()
|
/foundation/communication/netstack/interfaces/innerkits/rust/ylong_http_client/src/reqwest_impl/ |
D | config.rs | 382 let cert = reqwest::Certificate::from_pem(slice) in from_pem() localVariable 384 inner.push(cert); in from_pem()
|
/foundation/communication/netstack/test/fuzztest/socket/fuzztest/tlssocket_fuzzer/ |
D | tls_socket_fuzzer.cpp | 77 tlsSocket.GetCertificate([](int32_t errorNumber, const X509CertRawData &cert) {}); in BindFuzzTest() argument 78 tlsSocket.GetRemoteCertificate([](int32_t errorNumber, const X509CertRawData &cert) {}); in BindFuzzTest() argument 176 std::string cert = GetStringFromData(STR_LEN); in SetCertFuzzTest() local 178 option.SetCert(cert); in SetCertFuzzTest()
|
/foundation/communication/netstack/frameworks/js/napi/tls/src/ |
D | tlssocket_exec.cpp | 51 tlsSocket->GetCertificate([&context](int32_t errorNumber, const X509CertRawData &cert) { in ExecGetCertificate() argument 52 context->localCert_ = cert; in ExecGetCertificate() 119 tlsSocket->GetRemoteCertificate([&context](int32_t errorNumber, const X509CertRawData &cert) { in ExecGetRemoteCertificate() argument 120 context->remoteCert_ = cert; in ExecGetRemoteCertificate()
|
D | tlssocketserver_exec.cpp | 52 …ketServer->GetCertificate([&context](int32_t errorNumber, const TlsSocket::X509CertRawData &cert) { in ExecGetCertificate() argument 53 context->localCert_ = cert; in ExecGetCertificate() 125 … context->clientId_, [&context](int32_t errorNumber, const TlsSocket::X509CertRawData &cert) { in ExecGetRemoteCertificate() argument 126 context->remoteCert_ = cert; in ExecGetRemoteCertificate()
|
/foundation/communication/netstack/test/unittest/tlssocket/server/ |
D | TlsSocketServerTest.cpp | 208 …server.GetRemoteCertificate(socketFd, [](int32_t errCode, const TlsSocket::X509CertRawData &cert) { in __anon3c68d2d30e02() argument 231 …[](int32_t errCode, const TlsSocket::X509CertRawData &cert) { EXPECT_TRUE(TlsSocket::TLSSOCKET_SUC… in __anon3c68d2d31202() argument
|
/foundation/communication/netstack/test/unittest/tlssocket/client/ |
D | TlsSocketBranchTest.cpp | 383 … [](int32_t errCode, const X509CertRawData &cert) { EXPECT_NE(errCode, TLSSOCKET_SUCCESS); }); in __anonb40833d20702() argument 388 [](int32_t errCode, const X509CertRawData &cert) { EXPECT_EQ(errCode, TLS_ERR_SSL_NULL); }); in __anonb40833d20a02() argument
|
D | TlsSocketTest.cpp | 292 … [](int32_t errCode, const X509CertRawData &cert) { EXPECT_TRUE(errCode == TLSSOCKET_SUCCESS); }); in __anonf836eec41602() argument 313 … [](int32_t errCode, const X509CertRawData &cert) { EXPECT_TRUE(errCode == TLSSOCKET_SUCCESS); }); in __anonf836eec41902() argument
|
D | TlsSocketCertChainTest.cpp | 290 … [](int32_t errCode, const X509CertRawData &cert) { EXPECT_TRUE(errCode == TLSSOCKET_SUCCESS); }); in __anonad6a07d51602() argument 310 … [](int32_t errCode, const X509CertRawData &cert) { EXPECT_TRUE(errCode == TLSSOCKET_SUCCESS); }); in __anonad6a07d51902() argument
|
D | TlsSocketCertChainOneWayTest.cpp | 291 … [](int32_t errCode, const X509CertRawData &cert) { EXPECT_TRUE(errCode == TLSSOCKET_SUCCESS); }); in __anon117668481602() argument
|
D | TlsSocketOneWayTest.cpp | 295 … [](int32_t errCode, const X509CertRawData &cert) { EXPECT_TRUE(errCode == TLSSOCKET_SUCCESS); }); in __anonf57686771602() argument
|
D | TlsSocketUnilateralConnection.cpp | 334 … [](int32_t errCode, const X509CertRawData &cert) { EXPECT_TRUE(errCode == TLSSOCKET_SUCCESS); }); in __anone21edee51402() argument
|
/foundation/communication/netstack/interfaces/kits/js/ |
D | @ohos.net.socket.d.ts | 572 cert?: string; property
|
/foundation/communication/netstack/ |
D | README_zh.md | 337 | cert | string | 本地数字证书。 | 411 cert: "xxxx",
|