Home
last modified time | relevance | path

Searched refs:cert (Results 1 – 20 of 20) sorted by relevance

/foundation/communication/netstack/interfaces/innerkits/rust/ylong_http_client/src/reqwest_impl/async_impl/
Dmod.rs305 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/
Dtls_socket.h54 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/
Dtls_certificate.cpp168 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()
Dtls_context.cpp171 for (const auto &cert : configuration.GetCaCertificate()) { in SetCaAndVerify() local
172 TLSCertificate ca(cert, CA_CERT); in SetCaAndVerify()
Dtls_context_server.cpp173 for (const auto &cert : configuration.GetCaCertificate()) { in SetCaAndVerify() local
174 TLSCertificate ca(cert, CA_CERT); in SetCaAndVerify()
Dtls_socket.cpp175 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()
Dtls_socket_server.cpp458 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/
Dconfig.rs382 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/
Dtls_socket_fuzzer.cpp77 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/
Dtlssocket_exec.cpp51 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()
Dtlssocketserver_exec.cpp52 …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/
DTlsSocketServerTest.cpp208 …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/
DTlsSocketBranchTest.cpp383 … [](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
DTlsSocketTest.cpp292 … [](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
DTlsSocketCertChainTest.cpp290 … [](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
DTlsSocketCertChainOneWayTest.cpp291 … [](int32_t errCode, const X509CertRawData &cert) { EXPECT_TRUE(errCode == TLSSOCKET_SUCCESS); }); in __anon117668481602() argument
DTlsSocketOneWayTest.cpp295 … [](int32_t errCode, const X509CertRawData &cert) { EXPECT_TRUE(errCode == TLSSOCKET_SUCCESS); }); in __anonf57686771602() argument
DTlsSocketUnilateralConnection.cpp334 … [](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.ts572 cert?: string; property
/foundation/communication/netstack/
DREADME_zh.md337 | cert | string | 本地数字证书。 |
411 cert: "xxxx",