|
ReactOS 0.4.16-dev-1946-g52006dd
|
#include <stdio.h>#include <stdarg.h>#include <windef.h>#include <winbase.h>#include <winuser.h>#include <shlobj.h>#include <shlwapi.h>#include <winreg.h>#include <winerror.h>#include <wincrypt.h>#include "wine/test.h"
Go to the source code of this file.
Classes | |
| struct | CertPropIDHeader |
| struct | EnumSystemStoreInfo |
Macros | |
| #define | CERT_CERT_PROP_ID 32 |
| #define | CERT_CRL_PROP_ID 33 |
| #define | CERT_CTL_PROP_ID 34 |
| #define | test_store_is_empty(store) _test_store_is_empty(__LINE__,store) |
Variables | |
| static const BYTE | emptyCert [] = { 0x30, 0x00 } |
| static const BYTE | bigCert [] |
| static const BYTE | signedBigCert [] |
| static const BYTE | serializedCert [] |
| static const BYTE | signedCRL [] |
| static const BYTE | bigCert2 [] |
| static const BYTE | signedCTLWithCTLInnerContent [] |
| static const BYTE | serializedStoreWithCert [] |
| struct { | |
| HKEY key | |
| DWORD cert_store | |
| BOOL appdata_file | |
| WCHAR store_name [16] | |
| const WCHAR * base_reg_path | |
| } | reg_store_saved_certs [] |
| static const BYTE | serializedStoreWithCertAndCRL [] |
| static const BYTE | base64SPC [] |
| static const WCHAR | utf16Base64SPC [] |
| static const BYTE | signedContent [] |
| static const BYTE | signedWithCertAndCrlBareContent [] |
| static const BYTE | hashContent [] |
| static const BYTE | hashBareContent [] |
| struct { | |
| DWORD cert_store | |
| BOOL expected | |
| BOOL todo | |
| } | reg_system_store_test_data [] |
| static const BYTE | serializedCertWithFriendlyName [] |
| static const BYTE | serializedStoreWithCertWithFriendlyName [] |
| static const BYTE | serializedStoreWithCertAndHash [] |
| static const BYTE | pfxdata [] |
| #define test_store_is_empty | ( | store | ) | _test_store_is_empty(__LINE__,store) |
|
static |
Definition at line 121 of file store.c.
|
static |
Definition at line 302 of file store.c.
Referenced by testAddCertificateLink(), testCollectionStore(), testFileNameStore(), and testFileStore().
|
static |
Definition at line 2705 of file store.c.
Referenced by test_I_UpdateStore(), and test_PFXImportCertStore().
|
static |
Definition at line 2718 of file store.c.
Referenced by test_I_UpdateStore().
Definition at line 2388 of file store.c.
Referenced by testAddCertificateLink().
|
static |
Definition at line 2078 of file store.c.
Referenced by testCertEnumSystemStore().
|
static |
Definition at line 967 of file store.c.
Referenced by testRegStore().
Definition at line 1540 of file store.c.
Referenced by testFileNameStore().
| START_TEST | ( | store | ) |
Definition at line 3325 of file store.c.
Definition at line 3292 of file store.c.
Referenced by START_TEST().
Definition at line 2900 of file store.c.
Referenced by START_TEST().
Definition at line 3213 of file store.c.
Referenced by START_TEST().
Definition at line 2414 of file store.c.
Referenced by START_TEST().
Definition at line 2192 of file store.c.
Referenced by START_TEST().
Definition at line 2087 of file store.c.
Referenced by START_TEST().
Definition at line 1977 of file store.c.
Referenced by START_TEST().
Definition at line 2012 of file store.c.
Referenced by START_TEST().
Definition at line 2807 of file store.c.
Referenced by START_TEST().
Definition at line 607 of file store.c.
Referenced by START_TEST().
Definition at line 2731 of file store.c.
Referenced by START_TEST().
Definition at line 1586 of file store.c.
Referenced by START_TEST().
Definition at line 1414 of file store.c.
Referenced by START_TEST().
Definition at line 129 of file store.c.
Referenced by START_TEST().
Definition at line 1806 of file store.c.
Referenced by START_TEST().
Definition at line 998 of file store.c.
Referenced by START_TEST().
Definition at line 365 of file store.c.
Referenced by START_TEST().
Definition at line 1918 of file store.c.
Referenced by START_TEST().
Definition at line 2119 of file store.c.
Referenced by START_TEST().
This test checks that certificate falls into correct store of a collection depending on the access flags and priorities.
Adding certificate to collection should fall into rw store, even though prioirty of the ro_store is higher
adding one more rw store with higher priority
checking certificates in the stores
checking certificates in the collection
Definition at line 473 of file store.c.
Referenced by START_TEST().
Definition at line 1267 of file store.c.
Referenced by START_TEST().
Definition at line 1325 of file store.c.
Referenced by START_TEST().
| BOOL appdata_file |
Definition at line 343 of file store.c.
Referenced by testRegStoreSavedCerts().
Definition at line 1558 of file store.c.
Referenced by testFileNameStore().
Definition at line 345 of file store.c.
Referenced by testRegStoreSavedCerts().
Definition at line 48 of file store.c.
Referenced by test_I_UpdateStore(), testAddCertificateLink(), testAddSerialized(), testCertRegisterSystemStore(), testCloseStore(), testCollectionStore(), testEmptyStore(), testFileNameStore(), testFileStore(), testMemStore(), testMessageStore(), testRegStore(), testRegStoreSavedCerts(), and testStoresInCollection().
Definition at line 89 of file store.c.
Referenced by testCollectionStore(), testEmptyStore(), and testRegStore().
| DWORD cert_store |
Definition at line 342 of file store.c.
Referenced by Collection_control(), MemStore_release(), ProvStore_control(), ProvStore_release(), and testRegStoreSavedCerts().
Definition at line 47 of file store.c.
Referenced by testMemStore().
| BOOL expected |
Definition at line 2000 of file store.c.
Referenced by _clipboard_range_contains(), _test_attr_expando(), _test_attr_specified(), _test_IObjectSafety_set(), check_address(), check_BitBlt_pixel(), check_colorvalue_(), check_dirid(), check_emfplus(), check_error(), check_file_size(), check_generated_adjacency_(), check_generated_effects_(), check_halftone_palette(), check_ImageList_DrawIndirect(), check_ImageList_DrawIndirect_broken(), check_ImageList_DrawIndirect_fState(), check_ImageList_DrawIndirect_fStyle(), check_ImageList_DrawIndirect_ILD_ROP(), check_ini_file_attr(), check_materials_(), check_metafile(), check_orderarray(), check_output(), check_output_raw(), check_param(), check_record(), check_reg_dword(), check_reg_str(), check_StretchBlt_pixel(), check_StretchBlt_stretch(), check_StretchDIBits_pixel(), check_StretchDIBits_stretch(), check_style_wnd_proc(), check_updates(), checkElementStatus(), color_match(), ColorTest(), compare_and_check(), compare_attributes(), compare_bitmap_bits_(), compare_cms_signer_info(), compare_export_(), compare_icons_imp(), compare_imp(), compare_mesh(), compare_query_(), compare_signer_info(), compare_text_outline_mesh(), compareAltNameEntry(), compareAltNameInfo(), compareAuthorityInfoAccess(), compareCRLIssuingDistPoints(), compareCTLInfo(), compareDistPointName(), compareNames(), compareNameValues(), comparePublicKeyInfo(), compareRDNAttrs(), compareRDNs(), compareSMimeCapabilities(), compareTime(), compareUrlArray(), D3DXColorTest(), D3DXMatrixTest(), D3DXPlaneTest(), decodeAndCompareBase64_A(), decodeBase64WithFmt(), decodeBase64WithLen(), decodeBase64WithLenBroken(), decodeBase64WithLenFmt(), DoEntry(), drop_window_proc(), dump_sequence(), encode_compare_base64_W(), encodeAndCompareBase64_A(), enum_type_callback(), ExceptionFilter(), expect_bool_imp(), expect_color_(), expect_guid(), expect_HWND_(), expect_indexA_imp(), expect_matrix_(), expect_plane_(), expect_quaternion_(), expect_rawformat(), expect_vec2_(), expect_vec3_(), expect_vec4_(), expect_vec4_array_(), fdi_mem_notify(), fdi_mem_open(), fdi_mem_write(), HeaderTestWndProc(), init_decoder(), is_expected_variant(), ok_iids_(), ok_path(), ok_sequence(), ok_sequence_(), ok_trace_(), okChildInt_(), okChildIntBroken_(), okChildPath_(), okChildString_(), play_metafile(), receive_data(), registerset_compare(), registerset_compare_all(), relative_error(), set_expected_seq(), start_pass(), start_pass_huff_decoder(), START_TEST(), test__atodbl(), test__mbbtype(), test__mbbtype_l(), Test_acos_approx(), Test_acosf_approx(), test_appsearch_complocator(), test_appsearch_drlocator(), test_appsearch_inilocator(), test_appsearch_reglocator(), Test_asin_approx(), Test_asinf_approx(), Test_atan_approx(), Test_atanf_approx(), test_authentication(), test_BasicCases(), test_BCryptGetFipsAlgorithmMode(), test_BcryptHash(), test_bufferrawformat(), test_CertGetNameString_value_(), test_CharToOem_OemToChar(), test_child_heap(), test_CoInternetCombineIUri(), test_CoInternetCombineUrlEx(), test_complocator(), test_constant_table(), test_ConvertLengthToIpv4Mask(), Test_cos_approx(), Test_cosf_approx(), test_CPoint(), test_crc2_imp(), test_crc_imp(), test_CreateUri_InvalidFlags(), test_CreateUriWithFragment_InvalidFlags(), test_CredIsMarshaledCredentialA(), test_CryptStringToBinary(), test_D3DKMTCreateDCFromMemory(), test_D3DXCheckCubeTextureRequirements(), test_D3DXCheckTextureRequirements(), test_D3DXCheckVolumeTextureRequirements(), test_D3DXCreateRenderToEnvMap(), test_D3DXFillCubeTexture(), test_D3DXFillTexture(), test_D3DXFillVolumeTexture(), test_D3DXSHDot(), test_D3DXSHEvalConeLight(), test_D3DXSHEvalDirection(), test_D3DXSHEvalDirectionalLight(), test_D3DXSHEvalHemisphereLight(), test_D3DXSHEvalSphericalLight(), test_D3DXSHMultiply2(), test_D3DXSHMultiply3(), test_D3DXSHMultiply4(), test_D3DXSHRotate(), test_D3DXSHRotateZ(), test_D3DXSHScale(), test_dds_header_handling(), test_decodeNameValue(), test_def_itoa(), test_device_input(), test_dik_codes(), test_dirid(), test_effect_preshader_relative_addressing(), test_EM_POSFROMCHAR(), test_encodeOCSPRequestInfo(), test_enter(), Test_exp_approx(), Test_expf_approx(), test_format_rect(), test_formatrecord_tables(), test_get_shader_size(), test_GetFullPathNameA(), test_GetLocaleInfoA(), test_GetRfc1766FromLcid(), test_group_equal(), test_hash_value(), test_HashData(), test_inffilelist(), test_inffilelistA(), test_InternetErrorDlg(), test_IUriBuilder_GetFragment(), test_IUriBuilder_GetHost(), test_IUriBuilder_GetPassword(), test_IUriBuilder_GetPath(), test_IUriBuilder_GetPort(), test_IUriBuilder_GetQuery(), test_IUriBuilder_GetSchemeName(), test_IUriBuilder_GetUserName(), test_j0(), test_j1(), test_LcidToRfc1766(), test_LoadStringA(), Test_log10_approx(), Test_log10f_approx(), Test_log_approx(), Test_logf_approx(), test_long_value_name(), test_LZOpenFileA(), test_LZOpenFileA_existing_compressed(), test_LZOpenFileA_nonexisting_compressed(), test_LZOpenFileW(), test_LZOpenFileW_existing_compressed(), test_LZOpenFileW_nonexisting_compressed(), test_marshal_LPSAFEARRAY(), test_marshal_VARIANT(), test_md4hashfunc(), test_md5(), test_message_from_64bit_number(), test_midiStream(), test_Mod(), test_module(), test_msiexport(), test_MsiGetFileVersion(), test_NameToStrConversionA_(), test_NameToStrConversionW_(), test_nodeTypedValue(), test_notify(), test_NtQueryValueKey(), test_owner_equal(), test_PathRemoveBlanks(), test_printf_format(), test_query_cache(), test_queryconfig2(), test_read_state(), test_reg_query_value(), test_Render(), test_Round(), test_RtlIpv6StringToAddress(), test_RtlUnicodeToUTF8N(), test_RtlUniform(), test_RtlUTF8ToUnicodeN(), RopeTest::test_saved_rope_iterators(), test_saxstr(), test_scalb(), test_SetSite(), test_sha1(), test_sha256(), test_sha384(), test_sha512(), test_SHGetObjectCompatFlags(), Test_sin_approx(), Test_sinf_approx(), test_snprintf(), Test_sqrt_approx(), Test_sqrtf_approx(), Test_SrcMono(), Test_SrcMono1(), test_StretchBlt(), test_StretchBlt_stretch(), test_StretchBlt_TopDownOptions(), test_StretchDIBits(), test_synthesized(), test_SystemFunction001(), test_SystemFunction002(), test_SystemFunction007(), test_SystemFunction008(), test_SystemFunction009(), test_SystemFunction032(), Test_tan_approx(), Test_tanf_approx(), test_tcp_tx_full_window_lost(), test_texture_shader(), test_UrlUnescape(), test_utf7_decoding(), test_utf7_encoding(), test_var_call1(), test_var_call2(), test_VarCat(), test_with_compat(), test_WM_GETDLGCODE(), test_y0(), test_y1(), testAuth(), testCertRegisterSystemStore(), TestInitDialogHandleProc(), TIFFReadCustomDirectory(), ulp_error_dbl(), ulp_error_flt(), ulp_error_precise(), unexpected_op(), validate_signature(), verify_str_imp(), verify_str_imp2(), WorkerThread(), and ZSTD_decompressContinue().
Definition at line 1800 of file store.c.
Referenced by testMessageStore().
Definition at line 1794 of file store.c.
Referenced by testMessageStore().
Definition at line 341 of file store.c.
Referenced by test_PFXImportCertStore(), and testSystemStore().
Definition at line 2971 of file store.c.
Referenced by test_CryptQueryObject(), and test_PFXImportCertStore().
| const struct { ... } reg_store_saved_certs[] |
Referenced by testRegStoreSavedCerts().
| const struct { ... } reg_system_store_test_data[] |
Referenced by testCertRegisterSystemStore().
Definition at line 71 of file store.c.
Referenced by testAddCertificateLink(), and testMemStore().
Definition at line 2346 of file store.c.
Referenced by testAddCertificateLink().
Definition at line 326 of file store.c.
Referenced by testCollectionStore(), testFileNameStore(), testFileStore(), and testSerializedStore().
Definition at line 1396 of file store.c.
Referenced by testFileNameStore(), testFileStore(), and testSerializedStore().
Definition at line 2373 of file store.c.
Referenced by testAddCertificateLink().
Definition at line 2359 of file store.c.
Referenced by testAddCertificateLink().
Definition at line 58 of file store.c.
Referenced by testMemStore(), and testStoresInCollection().
Definition at line 1756 of file store.c.
Referenced by testMessageStore().
Definition at line 83 of file store.c.
Referenced by test_I_UpdateStore(), testCloseStore(), testEmptyStore(), testFileNameStore(), testFileStore(), and testMemStore().
Definition at line 99 of file store.c.
Referenced by testCloseStore(), and testEmptyStore().
Definition at line 1770 of file store.c.
Referenced by testMessageStore().
| WCHAR store_name[16] |
Definition at line 344 of file store.c.
Referenced by testRegStoreSavedCerts().
| BOOL todo |
Definition at line 2001 of file store.c.
Referenced by compareStore(), and testCertRegisterSystemStore().
Definition at line 1572 of file store.c.
Referenced by testFileNameStore().