ReactOS 0.4.17-dev-301-g9127a53
cryptui.c File Reference
#include <stdarg.h>
#include <stdio.h>
#include <windef.h>
#include <winbase.h>
#include <winerror.h>
#include <winuser.h>
#include <wincrypt.h>
#include <cryptuiapi.h>
#include "wine/test.h"
Include dependency graph for cryptui.c:

Go to the source code of this file.

Functions

static LRESULT CALLBACK cbt_hook_proc (int code, WPARAM wp, LPARAM lp)
 
static BOOL (WINAPI *pCryptUIWizImport)(DWORD dwFlags
 
static BOOL find_and_delete_cert_in_store (HCERTSTORE store, PCCERT_CONTEXT cert)
 
static void test_crypt_ui_wiz_import (void)
 
 START_TEST (cryptui)
 

Variables

static BYTE v1CertWithValidPubKey []
 
static const BYTE iTunesCert1 []
 
static const BYTE iTunesCert2 []
 
static const BYTE iTunesCert3 []
 
static const BYTE signedCRL []
 
static HHOOK hook
 
static HWND hwndParent
 
static HWND LPCWSTR pwszWizardTitle
 
static HWND LPCWSTR PCCRYPTUI_WIZ_IMPORT_SRC_INFO pImportSrc
 
static HWND LPCWSTR PCCRYPTUI_WIZ_IMPORT_SRC_INFO HCERTSTORE hDestCertStore
 

Function Documentation

◆ BOOL()

static BOOL ( WINAPI pCryptUIWizImport)
static

◆ cbt_hook_proc()

static LRESULT CALLBACK cbt_hook_proc ( int  code,
WPARAM  wp,
LPARAM  lp 
)
static

Definition at line 294 of file cryptui.c.

295{
296 return code == HCBT_CREATEWND ? 1: CallNextHookEx(hook, code, wp, lp);
297}
static HHOOK hook
Definition: cryptui.c:293
Definition: inflate.c:139
#define HCBT_CREATEWND
Definition: winuser.h:58
LRESULT WINAPI CallNextHookEx(_In_opt_ HHOOK, _In_ int, _In_ WPARAM, _In_ LPARAM)

Referenced by test_crypt_ui_wiz_import().

◆ find_and_delete_cert_in_store()

static BOOL find_and_delete_cert_in_store ( HCERTSTORE  store,
PCCERT_CONTEXT  cert 
)
static

Definition at line 303 of file cryptui.c.

304{
305 CERT_ID id;
306 PCCERT_CONTEXT found;
307
308 id.dwIdChoice = CERT_ID_ISSUER_SERIAL_NUMBER;
309 memcpy(&id.IssuerSerialNumber.Issuer,
310 &cert->pCertInfo->Issuer, sizeof(CERT_NAME_BLOB));
311 memcpy(&id.IssuerSerialNumber.SerialNumber,
312 &cert->pCertInfo->SerialNumber, sizeof(CRYPT_INTEGER_BLOB));
314 CERT_FIND_CERT_ID, &id, NULL);
315 if (!found)
316 return FALSE;
317
319
320 return TRUE;
321}
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
PCCERT_CONTEXT WINAPI CertFindCertificateInStore(HCERTSTORE hCertStore, DWORD dwCertEncodingType, DWORD dwFlags, DWORD dwType, const void *pvPara, PCCERT_CONTEXT pPrevCertContext)
Definition: cert.c:1765
BOOL WINAPI CertDeleteCertificateFromStore(PCCERT_CONTEXT pCertContext)
Definition: store.c:943
GLuint id
Definition: glext.h:5910
#define memcpy(s1, s2, n)
Definition: mkisofs.h:878
static BYTE cert[]
Definition: msg.c:1374
#define CERT_FIND_CERT_ID
Definition: wincrypt.h:3054
#define CERT_ID_ISSUER_SERIAL_NUMBER
Definition: wincrypt.h:3838
#define X509_ASN_ENCODING
Definition: wincrypt.h:2501

Referenced by test_crypt_ui_wiz_import().

◆ START_TEST()

START_TEST ( cryptui  )

Definition at line 645 of file cryptui.c.

646{
647 HMODULE lib = LoadLibraryA("cryptui");
648
649 if (lib)
650 {
651 pCryptUIWizImport = (void *)GetProcAddress(lib, "CryptUIWizImport");
652
654 FreeLibrary(lib);
655 }
656}
static void test_crypt_ui_wiz_import(void)
Definition: cryptui.c:323
#define GetProcAddress(x, y)
Definition: compat.h:753
#define FreeLibrary(x)
Definition: compat.h:748
HINSTANCE WINAPI DECLSPEC_HOTPATCH LoadLibraryA(LPCSTR lpLibFileName)
Definition: loader.c:111

◆ test_crypt_ui_wiz_import()

static void test_crypt_ui_wiz_import ( void  )
static

Definition at line 323 of file cryptui.c.

324{
325 BOOL ret;
327 HCERTSTORE store;
330 DWORD count;
331
332 if (!pCryptUIWizImport)
333 {
334 skip("No CryptUIWizImport\n");
335 return;
336 }
337
338 /* Set CBT hook to disallow MessageBox and wizard creation in current
339 * thread.
340 */
342
343 /* Brings up UI. Cancelling yields ret = 1. */
344 if (0)
345 {
346 pCryptUIWizImport(0, 0, NULL, NULL, NULL);
347 }
348 SetLastError(0xdeadbeef);
349 ret = pCryptUIWizImport(CRYPTUI_WIZ_NO_UI, 0, NULL, NULL, NULL);
351 "expected E_INVALIDARG, got %08lx\n", GetLastError());
352 memset(&info, 0, sizeof(info));
353 SetLastError(0xdeadbeef);
354 ret = pCryptUIWizImport(CRYPTUI_WIZ_NO_UI, 0, NULL, &info, NULL);
356 "expected E_INVALIDARG, got %08lx\n", GetLastError());
357 info.dwSize = sizeof(info);
358 SetLastError(0xdeadbeef);
359 ret = pCryptUIWizImport(CRYPTUI_WIZ_NO_UI, 0, NULL, &info, NULL);
361 "expected E_INVALIDARG, got %08lx\n", GetLastError());
363 SetLastError(0xdeadbeef);
364 ret = pCryptUIWizImport(CRYPTUI_WIZ_NO_UI, 0, NULL, &info, NULL);
366 "expected E_INVALIDARG, got %08lx\n", GetLastError());
367 SetLastError(0xdeadbeef);
369 0, NULL, &info, NULL);
371 "expected E_INVALIDARG, got %08lx\n", GetLastError());
372 /* Check allowed vs. given type mismatches */
375 SetLastError(0xdeadbeef);
377 0, NULL, &info, NULL);
379 "expected E_INVALIDARG, got %08lx\n", GetLastError());
380 CertFreeCertificateContext(info.pCertContext);
383 signedCRL, sizeof(signedCRL));
384 SetLastError(0xdeadbeef);
386 0, NULL, &info, NULL);
388 "expected E_INVALIDARG, got %08lx\n", GetLastError());
389 CertFreeCRLContext(info.pCRLContext);
390 /* Imports the following cert--self-signed, with no basic constraints set--
391 * to the CA store. Puts up a dialog at the end if it succeeds or fails.
392 */
396 ret = pCryptUIWizImport(CRYPTUI_WIZ_NO_UI, 0, NULL, &info, NULL);
397 ok(ret, "CryptUIWizImport failed: %08lx\n", GetLastError());
398 if (ret)
399 {
402
403 if (ca)
404 {
405 ret = find_and_delete_cert_in_store(ca, info.pCertContext);
406 ok(ret ||
407 broken(!ret) /* Win9x/NT4 */,
408 "expected to find v1CertWithValidPubKey in CA store\n");
409 CertCloseStore(ca, 0);
410 }
411 }
412 CertFreeCertificateContext(info.pCertContext);
413 /* Imports the following cert--not self-signed, with a basic constraints2
414 * extensions--to the "AddressBook" store. Puts up a dialog at the end if
415 * it succeeds or fails.
416 */
418 iTunesCert3, sizeof(iTunesCert3));
419 ret = pCryptUIWizImport(CRYPTUI_WIZ_NO_UI, 0, NULL, &info, NULL);
420 ok(ret, "CryptUIWizImport failed: %08lx\n", GetLastError());
421 if (ret)
422 {
424 CERT_SYSTEM_STORE_CURRENT_USER, L"AddressBook");
425
426 if (addressBook)
427 {
429 info.pCertContext);
430 ok(ret ||
431 broken(!ret), /* Windows 2000 and earlier */
432 "expected to find iTunesCert3 in AddressBook store\n");
434 }
435 }
436 /* Displays the wizard, but disables the "Certificate store" edit and
437 * the Browse button. Confusingly, the "Place all certificates in the
438 * following store" radio button is not disabled.
439 */
440 if (0)
441 {
442 ret = pCryptUIWizImport(CRYPTUI_WIZ_IMPORT_NO_CHANGE_DEST_STORE, 0,
443 NULL, &info, NULL);
444 ok(ret, "CryptUIWizImport failed: %08lx\n", GetLastError());
445 }
448 /* Displays the wizard, but sets the "Certificate store" edit to the
449 * string "Determined by the program", and disables it and the Browse
450 * button, as well as the "Automatically select the certificate store
451 * based on the type of certificate" radio button.
452 */
453 if (0)
454 {
455 ret = pCryptUIWizImport(CRYPTUI_WIZ_IMPORT_NO_CHANGE_DEST_STORE, 0,
456 NULL, &info, store);
457 ok(ret, "CryptUIWizImport failed: %08lx\n", GetLastError());
458 }
459 ret = pCryptUIWizImport(CRYPTUI_WIZ_NO_UI |
461 ok(ret, "CryptUIWizImport failed: %08lx\n", GetLastError());
462 ret = find_and_delete_cert_in_store(store, info.pCertContext);
463 ok(ret ||
464 broken(!ret) /* Win9x/NT4 */,
465 "expected to find iTunesCert3 in memory store\n");
466 CertFreeCertificateContext(info.pCertContext);
467 CertCloseStore(store, 0);
468
470 iTunesCert1, sizeof(iTunesCert1));
471 ret = pCryptUIWizImport(CRYPTUI_WIZ_NO_UI, 0, NULL, &info, NULL);
472 ok(ret, "CryptUIWizImport failed: %08lx\n", GetLastError());
473 if (ret)
474 {
476 CERT_SYSTEM_STORE_CURRENT_USER, L"AddressBook");
477
478 if (addressBook)
479 {
481 info.pCertContext);
482 ok(ret ||
483 broken(!ret), /* Windows 2000 and earlier */
484 "expected to find iTunesCert1 in AddressBook store\n");
486 }
487 }
488 CertFreeCertificateContext(info.pCertContext);
489
491 iTunesCert2, sizeof(iTunesCert2));
492 ret = pCryptUIWizImport(CRYPTUI_WIZ_NO_UI, 0, NULL, &info, NULL);
493 ok(ret, "CryptUIWizImport failed: %08lx\n", GetLastError());
494 if (ret)
495 {
498
499 if (ca)
500 {
501 ret = find_and_delete_cert_in_store(ca, info.pCertContext);
502 ok(ret ||
503 broken(!ret) /* Win9x/NT4 */,
504 "expected to find iTunesCert2 in CA store\n");
505 CertCloseStore(ca, 0);
506 }
507 }
508 CertFreeCertificateContext(info.pCertContext);
509
510 info.hCertStore = CertOpenStore(CERT_STORE_PROV_MEMORY, 0, 0,
518 /* The ALLOW flags aren't allowed with a store as the source if the source
519 * contains types other than those allowed.
520 */
523 SetLastError(0xdeadbeef);
525 0, NULL, &info, store);
527 "expected E_INVALIDARG, got %08lx\n", GetLastError());
528 SetLastError(0xdeadbeef);
530 0, NULL, &info, store);
532 "expected E_INVALIDARG, got %08lx\n", GetLastError());
533 SetLastError(0xdeadbeef);
534 ret = pCryptUIWizImport(CRYPTUI_WIZ_NO_UI |
537 &info, store);
538 ok(ret, "CryptUIWizImport failed: %08lx\n", GetLastError());
539 if (ret)
540 {
541 count = 0;
542 cert = NULL;
543 do {
545 if (cert)
546 count++;
547 } while (cert);
548 ok(count == 1, "expected 1 cert, got %ld\n", count);
549 count = 0;
550 crl = NULL;
551 do {
552 crl = CertEnumCRLsInStore(store, crl);
553 if (crl)
554 count++;
555 } while (crl);
556 ok(count == 1, "expected 1 CRL, got %ld\n", count);
557 }
558 CertCloseStore(store, 0);
559 CertCloseStore(info.hCertStore, 0);
560
561 /* If the ALLOW flags match the content of the store, the store can be
562 * imported.
563 */
564 info.hCertStore = CertOpenStore(CERT_STORE_PROV_MEMORY, 0, 0,
571 SetLastError(0xdeadbeef);
573 0, NULL, &info, store);
574 ok(ret, "CryptUIWizImport failed: %08lx\n", GetLastError());
575 if (ret)
576 {
577 count = 0;
578 cert = NULL;
579 do {
581 if (cert)
582 count++;
583 } while (cert);
584 ok(count == 1, "expected 1 cert, got %ld\n", count);
585 count = 0;
586 crl = NULL;
587 do {
588 crl = CertEnumCRLsInStore(store, crl);
589 if (crl)
590 count++;
591 } while (crl);
592 ok(count == 0, "expected 0 CRLs, got %ld\n", count);
593 }
594 SetLastError(0xdeadbeef);
596 0, NULL, &info, store);
598 "expected E_INVALIDARG, got %08lx\n", GetLastError());
599 CertCloseStore(store, 0);
600 CertCloseStore(info.hCertStore, 0);
601
602 /* Again, if the ALLOW flags match the content of the store, the store can
603 * be imported.
604 */
605 info.hCertStore = CertOpenStore(CERT_STORE_PROV_MEMORY, 0, 0,
611 SetLastError(0xdeadbeef);
613 0, NULL, &info, store);
614 ok(ret, "CryptUIWizImport failed: %08lx\n", GetLastError());
615 if (ret)
616 {
617 count = 0;
618 cert = NULL;
619 do {
621 if (cert)
622 count++;
623 } while (cert);
624 ok(count == 0, "expected 0 certs, got %ld\n", count);
625 count = 0;
626 crl = NULL;
627 do {
628 crl = CertEnumCRLsInStore(store, crl);
629 if (crl)
630 count++;
631 } while (crl);
632 ok(count == 1, "expected 1 CRL, got %ld\n", count);
633 }
634 SetLastError(0xdeadbeef);
636 0, NULL, &info, store);
638 "expected E_INVALIDARG, got %08lx\n", GetLastError());
639 CertCloseStore(store, 0);
640 CertCloseStore(info.hCertStore, 0);
641
643}
#define ok(value,...)
Definition: atltest.h:57
#define skip(...)
Definition: atltest.h:64
#define broken(x)
Definition: atltest.h:178
static BYTE v1CertWithValidPubKey[]
Definition: cryptui.c:31
static const BYTE signedCRL[]
Definition: cryptui.c:285
static LRESULT CALLBACK cbt_hook_proc(int code, WPARAM wp, LPARAM lp)
Definition: cryptui.c:294
static BOOL find_and_delete_cert_in_store(HCERTSTORE store, PCCERT_CONTEXT cert)
Definition: cryptui.c:303
static const BYTE iTunesCert2[]
Definition: cryptui.c:116
static const BYTE iTunesCert3[]
Definition: cryptui.c:199
static const BYTE iTunesCert1[]
Definition: cryptui.c:46
#define CRYPTUI_WIZ_IMPORT_ALLOW_CRL
Definition: cryptuiapi.h:330
#define CRYPTUI_WIZ_IMPORT_SUBJECT_CERT_CONTEXT
Definition: cryptuiapi.h:306
#define CRYPTUI_WIZ_NO_UI
Definition: cryptuiapi.h:246
#define CRYPTUI_WIZ_IMPORT_SUBJECT_CERT_STORE
Definition: cryptuiapi.h:309
#define CRYPTUI_WIZ_IMPORT_SUBJECT_CRL_CONTEXT
Definition: cryptuiapi.h:308
#define CRYPTUI_WIZ_IMPORT_ALLOW_CERT
Definition: cryptuiapi.h:329
#define CRYPTUI_WIZ_IMPORT_NO_CHANGE_DEST_STORE
Definition: cryptuiapi.h:328
#define E_INVALIDARG
Definition: ddrawi.h:101
BOOL WINAPI CertFreeCertificateContext(PCCERT_CONTEXT pCertContext)
Definition: cert.c:371
PCCERT_CONTEXT WINAPI CertCreateCertificateContext(DWORD dwCertEncodingType, const BYTE *pbCertEncoded, DWORD cbCertEncoded)
Definition: cert.c:316
BOOL WINAPI CertAddEncodedCertificateToStore(HCERTSTORE hCertStore, DWORD dwCertEncodingType, const BYTE *pbCertEncoded, DWORD cbCertEncoded, DWORD dwAddDisposition, PCCERT_CONTEXT *ppCertContext)
Definition: cert.c:58
BOOL WINAPI CertFreeCRLContext(PCCRL_CONTEXT pCrlContext)
Definition: crl.c:386
BOOL WINAPI CertAddEncodedCRLToStore(HCERTSTORE hCertStore, DWORD dwCertEncodingType, const BYTE *pbCrlEncoded, DWORD cbCrlEncoded, DWORD dwAddDisposition, PCCRL_CONTEXT *ppCrlContext)
Definition: crl.c:129
PCCRL_CONTEXT WINAPI CertCreateCRLContext(DWORD dwCertEncodingType, const BYTE *pbCrlEncoded, DWORD cbCrlEncoded)
Definition: crl.c:85
HCERTSTORE WINAPI CertOpenStore(LPCSTR lpszStoreProvider, DWORD dwMsgAndCertEncodingType, HCRYPTPROV_LEGACY hCryptProv, DWORD dwFlags, const void *pvPara)
Definition: store.c:815
PCCRL_CONTEXT WINAPI CertEnumCRLsInStore(HCERTSTORE hCertStore, PCCRL_CONTEXT pPrev)
Definition: store.c:1101
PCCERT_CONTEXT WINAPI CertEnumCertificatesInStore(HCERTSTORE hCertStore, PCCERT_CONTEXT pPrev)
Definition: store.c:928
BOOL WINAPI CertCloseStore(HCERTSTORE hCertStore, DWORD dwFlags)
Definition: store.c:1127
static const WCHAR ca[]
Definition: main.c:443
static const WCHAR addressBook[]
Definition: main.c:441
#define SetLastError(x)
Definition: compat.h:752
return ret
Definition: mutex.c:146
#define L(x)
Definition: resources.c:13
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
GLuint GLuint GLsizei count
Definition: gl.h:1545
static const BYTE crl[]
Definition: message.c:817
#define memset(x, y, z)
Definition: compat.h:39
DWORD WINAPI GetLastError(void)
Definition: except.c:1042
DWORD WINAPI GetCurrentThreadId(void)
Definition: thread.c:459
#define CERT_STORE_CREATE_NEW_FLAG
Definition: wincrypt.h:2633
#define CERT_STORE_PROV_MEMORY
Definition: wincrypt.h:2455
#define CERT_STORE_ADD_ALWAYS
Definition: wincrypt.h:2654
#define CERT_STORE_PROV_SYSTEM_W
Definition: wincrypt.h:2463
#define CERT_SYSTEM_STORE_CURRENT_USER
Definition: wincrypt.h:2528
#define WH_CBT
Definition: winuser.h:35
HHOOK WINAPI SetWindowsHookExA(_In_ int, _In_ HOOKPROC, _In_opt_ HINSTANCE, _In_ DWORD)
BOOL WINAPI UnhookWindowsHookEx(_In_ HHOOK)

Referenced by START_TEST().

Variable Documentation

◆ hDestCertStore

◆ hook

HHOOK hook
static

Definition at line 293 of file cryptui.c.

Referenced by cbt_hook_proc(), and test_crypt_ui_wiz_import().

◆ hwndParent

HWND hwndParent

Definition at line 299 of file cryptui.c.

Referenced by CExplorerBand::_CreateTreeView(), SEALED_::Activate(), ArrangeWindows(), CascadeWindows(), check_window_style(), ChildWindowFromPointEx(), COMBO_Create(), COMBO_WindowProc(), ComboWndProc_common(), Configure(), CTextEditWindow::Create(), CAppInfoDisplay::Create(), CAppsListView::Create(), CMainToolbar::Create(), CSearchBar::Create(), CComboBox::Create(), CApplicationView::Create(), CRichEdit::Create(), CUiSplitPanel::Create(), CDowloadingAppsListView::Create(), CStartButton::Create(), CACListView::Create(), CACScrollBar::Create(), CACSizeBox::Create(), CTreeView::Create(), CardWindow::Create(), CStatusBar::Create(), CreateButtonSet(), UIComposition::CreateCompButtonWnd(), UIComposition::CreateCompositionWindow(), SEALED_::CreateControlWindow(), UIComposition::CreateDefFrameWnd(), CreateListView(), CreateScreenSaveWnd(), CMenuToolbarBase::CreateToolbar(), CreateTreeView(), CryptUIWizExport(), CryptUIWizImport(), CSysPagerWnd_CreateInstance(), CTrayClockWnd_CreateInstance(), CTrayNotifyWnd_CreateInstance(), DECLARE_INTERFACE_(), DefaultHandler_DoVerb(), DisplayWizard(), do_import(), CMiniatureWindow::DoCreate(), CPaintToolBar::DoCreate(), CToolBox::DoCreate(), CTrayShowDesktopButton::DoCreate(), DoCreateWindow(), anonymous_namespace{mstscax.cpp}::CoClass::DoVerb(), DrawInsert(), EnableVisualTheme(), FindWindowExA(), FindWindowExW(), GetControlColor(), HH_AddHTMLPane(), HH_AddNavigationPane(), HH_AddSizeBar(), HH_AddToolbar(), ImmCreateSoftKeyboard(), INetCfgComponent_fnRaisePropertyUi(), CAutoComplete::Init(), CBalloonQueue::Init(), CTrayNotifyWnd::Initialize(), InitWebBrowser(), IntDefWindowProc(), InternetDialA(), InternetDialW(), InternetGoOnlineA(), InternetGoOnlineW(), InvokeObjectPickerDialog(), InvokeRemoteRegistryPickerDialog(), SEALED_::IOleObject::DoVerb(), LayoutInit(), MapWndProc(), CGridView::MapWndProc(), MCIWndCreateA(), MCIWndCreateW(), MimeSecurity_GetMessageType(), NP_GetNavigationRect(), NtUserBuildHwndList(), NtUserChildWindowFromPointEx(), NtUserFindWindowEx(), NtUserGetControlColor(), OleObject_DoVerb(), OleUIPromptUserA(), OleUIPromptUserW(), OleUIUpdateLinksA(), OleUIUpdateLinksW(), OnTimer(), ParseCommandLine(), PROPSHEET_AdjustButtons(), PROPSHEET_AdjustButtonsWizard(), PROPSHEET_CreatePage(), PROPSHEET_CreateTabControl(), PROPSHEET_DialogProc(), RealChildWindowFromPoint(), ScreenSaver(), CMenuBand::SetMenu(), CMenuBand::SetShellFolder(), CISFBand::SetSite(), CMenuBand::SetSite(), SetupDiCreateDeviceInfoA(), SetupDiCreateDeviceInfoList(), SetupDiCreateDeviceInfoListExA(), SetupDiCreateDeviceInfoListExW(), SetupDiCreateDeviceInfoW(), SetupDiInstallClassA(), SetupDiInstallClassExA(), SetupDiInstallClassExW(), SetupDiInstallClassW(), SetupDiOpenDeviceInfoA(), SetupDiOpenDeviceInfoW(), SetupPromptForDiskA(), SetupPromptForDiskW(), SHOpenWithDialog(), show_export_ui(), show_import_ui(), ShowDeviceProperties(), ShowHTMLDialog(), ShowLastWin32Error(), SQLConfigDataSource(), SQLConfigDataSourceW(), SQLGetTranslator(), SQLGetTranslatorW(), SQLInstallODBC(), SQLInstallODBCW(), CProgressDialog::StartProgressDialog(), T1_OnImeControl(), test_notify(), test_pack_CREATESTRUCTA(), test_pack_CREATESTRUCTW(), ThemeDrawScrollBarsGrip(), TileWindows(), TOOLBAR_GetIdealSize(), TRACKBAR_AlignBuddies(), UpdateDriverForPlugAndPlayDevicesA(), UpdateDriverForPlugAndPlayDevicesW(), wWinMain(), XMLView_OleObject_DoVerb(), and ZoneMgrImpl_PromptAction().

◆ iTunesCert1

const BYTE iTunesCert1[]
static

Definition at line 46 of file cryptui.c.

Referenced by test_crypt_ui_wiz_import().

◆ iTunesCert2

const BYTE iTunesCert2[]
static

Definition at line 116 of file cryptui.c.

Referenced by test_crypt_ui_wiz_import().

◆ iTunesCert3

const BYTE iTunesCert3[]
static

Definition at line 199 of file cryptui.c.

Referenced by test_crypt_ui_wiz_import().

◆ pImportSrc

Definition at line 300 of file cryptui.c.

Referenced by CryptUIWizImport(), do_import(), and show_import_ui().

◆ pwszWizardTitle

HWND LPCWSTR pwszWizardTitle

◆ signedCRL

const BYTE signedCRL[]
static
Initial value:
= { 0x30, 0x45, 0x30, 0x2c, 0x30, 0x02, 0x06,
0x00, 0x30, 0x15, 0x31, 0x13, 0x30, 0x11, 0x06, 0x03, 0x55, 0x04, 0x03, 0x13,
0x0a, 0x4a, 0x75, 0x61, 0x6e, 0x20, 0x4c, 0x61, 0x6e, 0x67, 0x00, 0x18, 0x0f,
0x31, 0x36, 0x30, 0x31, 0x30, 0x31, 0x30, 0x31, 0x30, 0x30, 0x30, 0x30, 0x30,
0x30, 0x5a, 0x30, 0x02, 0x06, 0x00, 0x03, 0x11, 0x00, 0x0f, 0x0e, 0x0d, 0x0c,
0x0b, 0x0a, 0x09, 0x08, 0x07, 0x06, 0x05, 0x04, 0x03, 0x02, 0x01, 0x00 }

Definition at line 285 of file cryptui.c.

Referenced by test_crypt_ui_wiz_import().

◆ v1CertWithValidPubKey

BYTE v1CertWithValidPubKey[]
static
Initial value:
= {
0x30,0x81,0xcf,0x02,0x01,0x01,0x30,0x02,0x06,0x00,0x30,0x15,0x31,0x13,0x30,
0x11,0x06,0x03,0x55,0x04,0x03,0x13,0x0a,0x4a,0x75,0x61,0x6e,0x20,0x4c,0x61,
0x6e,0x67,0x00,0x30,0x22,0x18,0x0f,0x31,0x36,0x30,0x31,0x30,0x31,0x30,0x31,
0x30,0x30,0x30,0x30,0x30,0x30,0x5a,0x18,0x0f,0x31,0x36,0x30,0x31,0x30,0x31,
0x30,0x31,0x30,0x30,0x30,0x30,0x30,0x30,0x5a,0x30,0x15,0x31,0x13,0x30,0x11,
0x06,0x03,0x55,0x04,0x03,0x13,0x0a,0x4a,0x75,0x61,0x6e,0x20,0x4c,0x61,0x6e,
0x67,0x00,0x30,0x5c,0x30,0x0d,0x06,0x09,0x2a,0x86,0x48,0x86,0xf7,0x0d,0x01,
0x01,0x01,0x05,0x00,0x03,0x4b,0x00,0x30,0x48,0x02,0x41,0x00,0xe2,0x54,0x3a,
0xa7,0x83,0xb1,0x27,0x14,0x3e,0x59,0xbb,0xb4,0x53,0xe6,0x1f,0xe7,0x5d,0xf1,
0x21,0x68,0xad,0x85,0x53,0xdb,0x6b,0x1e,0xeb,0x65,0x97,0x03,0x86,0x60,0xde,
0xf3,0x6c,0x38,0x75,0xe0,0x4c,0x61,0xbb,0xbc,0x62,0x17,0xa9,0xcd,0x79,0x3f,
0x21,0x4e,0x96,0xcb,0x0e,0xdc,0x61,0x94,0x30,0x18,0x10,0x6b,0xd0,0x1c,0x10,
0x79,0x02,0x03,0x01,0x00,0x01,0xa3,0x16,0x30,0x14,0x30,0x12,0x06,0x03,0x55,
0x1d,0x13,0x01,0x01,0xff,0x04,0x08,0x30,0x06,0x01,0x01,0xff,0x02,0x01,0x01 }

Definition at line 31 of file cryptui.c.

Referenced by test_crypt_ui_wiz_import().