Searched refs:cert_paths (Results 1 – 6 of 6) sorted by relevance
/ohos5.0/base/security/code_signature/test/unittest/ |
H A D | rust_key_enable_test.rs | 74 let mut cert_paths = TrustCertPath::new(); in test_successful_load_cert_path() localVariable 75 cert_paths.load_cert_path_from_json_file(VALID_CERT_PATH); in test_successful_load_cert_path() 76 assert_eq!(cert_paths.profile_signers.len(), 4); in test_successful_load_cert_path() 77 assert_eq!(cert_paths.app_sources.len(), 6); in test_successful_load_cert_path() 81 let mut cert_paths = TrustCertPath::new(); in test_invalid_cert_path_file_path() localVariable 84 cert_paths.app_sources.is_empty(), in test_invalid_cert_path_file_path() 91 let mut cert_paths = TrustCertPath::new(); in test_invalid_cert_path_json_structure() localVariable 94 cert_paths.app_sources.is_empty(), in test_invalid_cert_path_json_structure() 101 let mut cert_paths = TrustCertPath::new(); in test_empty_cert_path_json_file() localVariable 102 cert_paths.load_cert_path_from_json_file(EMPTY_CERT_PATH); in test_empty_cert_path_json_file() [all …]
|
/ohos5.0/base/security/code_signature/services/key_enable/src/ |
H A D | cert_utils.rs | 54 let mut cert_paths = TrustCertPath::new(); in get_cert_path() localVariable 55 cert_paths.load_cert_path_from_json_file(TRUSTED_CERT_PATH); in get_cert_path() 57 cert_paths.load_cert_path_from_json_file(TRUSTED_CERT_PATH_TEST); in get_cert_path() 59 cert_paths in get_cert_path()
|
H A D | key_enable.rs | 172 fn check_and_add_cert_path(root_cert: &PemCollection, cert_paths: &TrustCertPath) -> bool { in check_and_add_cert_path() 174 if add_profile_cert_path(root_cert, cert_paths).is_err() { in check_and_add_cert_path() 187 cert_paths: TrustCertPath, in add_profile_cert_path_thread() 194 if check_and_add_cert_path(&root_cert, &cert_paths) { in add_profile_cert_path_thread() 250 let cert_paths = get_cert_path(); in enable_all_keys() localVariable 252 if cert_paths.add_cert_paths().is_err() { in enable_all_keys() 256 let cert_thread = add_profile_cert_path_thread(root_cert, cert_paths); in enable_all_keys()
|
H A D | profile_utils.rs | 307 cert_paths: &TrustCertPath, in add_profile_cert_path() 310 if process_profile(false, &x509_store, cert_paths.get_profile_info().as_slice()).is_err() { in add_profile_cert_path() 313 if process_profile(true, &x509_store, cert_paths.get_debug_profile_info().as_slice()).is_err() { in add_profile_cert_path()
|
/ohos5.0/foundation/communication/netstack/frameworks/native/tls_socket/src/ |
H A D | tls_context_server.cpp | 172 std::vector<std::string> cert_paths; in SetDefaultCa() local 174 …agerStandard::NetConnClient::GetInstance().GetTrustAnchorsForHostName(hostname, cert_paths) != 0) { in SetDefaultCa() 178 for (const auto &path : cert_paths) { in SetDefaultCa()
|
H A D | tls_context.cpp | 173 std::vector<std::string> cert_paths; in SetDefaultCa() local 175 …agerStandard::NetConnClient::GetInstance().GetTrustAnchorsForHostName(hostname, cert_paths) != 0) { in SetDefaultCa() 179 for (const auto &path : cert_paths) { in SetDefaultCa()
|