Home
last modified time | relevance | path

Searched refs:x509Certificates (Results 1 - 7 of 7) sorted by relevance

/foundation/communication/netstack/test/unittest/tls_test/server/
H A Dtls_socket_server_branch_test.cpp319 X509 *x509Certificates = X509_new(); in HWTEST_F() local
321 std::string result = connection->CheckServerIdentityLegal(hostName, x509Certificates); in HWTEST_F()
324 X509_add_ext(x509Certificates, ext, -1); in HWTEST_F()
325 result = connection->CheckServerIdentityLegal(hostName, x509Certificates); in HWTEST_F()
329 X509_free(x509Certificates); in HWTEST_F()
336 X509 *x509Certificates = X509_new(); in HWTEST_F() local
338 std::string result = connection->CheckServerIdentityLegal(hostName, x509Certificates); in HWTEST_F()
341 X509_add_ext(x509Certificates, ext, -1); in HWTEST_F()
342 result = connection->CheckServerIdentityLegal(hostName, x509Certificates); in HWTEST_F()
346 X509_free(x509Certificates); in HWTEST_F()
353 X509 *x509Certificates = X509_new(); HWTEST_F() local
593 const X509 *x509Certificates = X509_new(); HWTEST_F() local
606 const X509 *x509Certificates = X509_new(); HWTEST_F() local
621 const X509 *x509Certificates = X509_new(); HWTEST_F() local
632 X509 *x509Certificates = X509_new(); HWTEST_F() local
642 X509 *x509Certificates = X509_new(); HWTEST_F() local
[all...]
/foundation/communication/netstack/test/unittest/tlssocket/server/
H A Dtls_socket_server_branch_test.cpp319 X509 *x509Certificates = X509_new(); in HWTEST_F() local
321 std::string result = connection->CheckServerIdentityLegal(hostName, x509Certificates); in HWTEST_F()
324 X509_add_ext(x509Certificates, ext, -1); in HWTEST_F()
325 result = connection->CheckServerIdentityLegal(hostName, x509Certificates); in HWTEST_F()
329 X509_free(x509Certificates); in HWTEST_F()
336 X509 *x509Certificates = X509_new(); in HWTEST_F() local
338 std::string result = connection->CheckServerIdentityLegal(hostName, x509Certificates); in HWTEST_F()
341 X509_add_ext(x509Certificates, ext, -1); in HWTEST_F()
342 result = connection->CheckServerIdentityLegal(hostName, x509Certificates); in HWTEST_F()
346 X509_free(x509Certificates); in HWTEST_F()
353 X509 *x509Certificates = X509_new(); HWTEST_F() local
593 const X509 *x509Certificates = X509_new(); HWTEST_F() local
606 const X509 *x509Certificates = X509_new(); HWTEST_F() local
621 const X509 *x509Certificates = X509_new(); HWTEST_F() local
632 X509 *x509Certificates = X509_new(); HWTEST_F() local
642 X509 *x509Certificates = X509_new(); HWTEST_F() local
[all...]
/foundation/communication/netstack/interfaces/innerkits/tls_socket/include/
H A Dtls_socket.h68 std::function<void(const std::string &hostName, const std::vector<std::string> &x509Certificates)>;
564 std::string CheckServerIdentityLegal(const std::string &hostName, const X509 *x509Certificates);
566 const X509 *x509Certificates);
H A Dtls_socket_server.h411 std::string CheckServerIdentityLegal(const std::string &hostName, const X509 *x509Certificates);
413 const X509 *x509Certificates);
/foundation/communication/netstack/frameworks/js/napi/tls/src/
H A Dtls_socket.cpp1541 const X509 *x509Certificates, std::tuple<bool, std::string> &result) in CheckIpAndDnsName()
1545 int index = X509_get_ext_by_NID(x509Certificates, NID_commonName, -1); in CheckIpAndDnsName()
1583 const X509 *x509Certificates) in CheckServerIdentityLegal()
1585 X509_NAME *subjectName = X509_get_subject_name(x509Certificates); in CheckServerIdentityLegal()
1592 int index = X509_get_ext_by_NID(x509Certificates, NID_subject_alt_name, -1); in CheckServerIdentityLegal()
1596 X509_EXTENSION *ext = X509_get_ext(x509Certificates, index); in CheckServerIdentityLegal()
1605 return CheckServerIdentityLegal(hostName, ext, x509Certificates); in CheckServerIdentityLegal()
1609 const X509 *x509Certificates) in CheckServerIdentityLegal()
1644 CheckIpAndDnsName(hostName, dnsNames, ips, x509Certificates, result); in CheckServerIdentityLegal()
1679 NETSTACK_LOGE("peer x509Certificates i in StartShakingHands()
1540 CheckIpAndDnsName(const std::string &hostName, std::vector<std::string> dnsNames, std::vector<std::string> ips, const X509 *x509Certificates, std::tuple<bool, std::string> &result) CheckIpAndDnsName() argument
1582 CheckServerIdentityLegal(const std::string &hostName, const X509 *x509Certificates) CheckServerIdentityLegal() argument
1608 CheckServerIdentityLegal(const std::string &hostName, X509_EXTENSION *ext, const X509 *x509Certificates) CheckServerIdentityLegal() argument
[all...]
H A Dtls_socket_server.cpp1075 NETSTACK_LOGE("peer x509Certificates is null"); in StartShakingHands()
1146 const X509 *x509Certificates, std::tuple<bool, std::string> &result) in CheckIpAndDnsName()
1150 int index = X509_get_ext_by_NID(x509Certificates, NID_commonName, -1); in CheckIpAndDnsName()
1189 const X509 *x509Certificates) in CheckServerIdentityLegal()
1191 X509_NAME *subjectName = X509_get_subject_name(x509Certificates); in CheckServerIdentityLegal()
1197 int index = X509_get_ext_by_NID(x509Certificates, NID_subject_alt_name, -1); in CheckServerIdentityLegal()
1201 X509_EXTENSION *ext = X509_get_ext(x509Certificates, index); in CheckServerIdentityLegal()
1211 return CheckServerIdentityLegal(hostName, ext, x509Certificates); in CheckServerIdentityLegal()
1215 const X509 *x509Certificates) in CheckServerIdentityLegal()
1250 CheckIpAndDnsName(hostName, dnsNames, ips, x509Certificates, resul in CheckServerIdentityLegal()
1145 CheckIpAndDnsName(const std::string &hostName, std::vector<std::string> &dnsNames, std::vector<std::string> &ips, const X509 *x509Certificates, std::tuple<bool, std::string> &result) CheckIpAndDnsName() argument
1188 CheckServerIdentityLegal(const std::string &hostName, const X509 *x509Certificates) CheckServerIdentityLegal() argument
1214 CheckServerIdentityLegal(const std::string &hostName, X509_EXTENSION *ext, const X509 *x509Certificates) CheckServerIdentityLegal() argument
[all...]
/foundation/communication/netstack/test/fuzztest/socket/fuzztest/tlssocket_fuzzer/
H A Dtls_socket_fuzzer.cpp112 options.SetCheckServerIdentity([](const std::string &hostName, const std::vector<std::string> &x509Certificates) { in ConnectFuzzTest()

Completed in 10 milliseconds