cryptui: Implement importing CTLs in CryptUIWizImport.
This commit is contained in:
parent
95a38f3ac5
commit
f6fae84304
|
@ -3704,12 +3704,18 @@ BOOL WINAPI CryptUIWizImport(DWORD dwFlags, HWND hwndParent, LPCWSTR pwszWizardT
|
||||||
else
|
else
|
||||||
import_warn_type_mismatch(dwFlags, hwndParent, pwszWizardTitle);
|
import_warn_type_mismatch(dwFlags, hwndParent, pwszWizardTitle);
|
||||||
break;
|
break;
|
||||||
|
case CRYPTUI_WIZ_IMPORT_SUBJECT_CTL_CONTEXT:
|
||||||
|
if ((ret = check_context_type(dwFlags, CERT_QUERY_CONTENT_CTL)))
|
||||||
|
ret = import_ctl(pImportSrc->u.pCTLContext, hDestCertStore);
|
||||||
|
else
|
||||||
|
import_warn_type_mismatch(dwFlags, hwndParent, pwszWizardTitle);
|
||||||
|
break;
|
||||||
case CRYPTUI_WIZ_IMPORT_SUBJECT_CERT_STORE:
|
case CRYPTUI_WIZ_IMPORT_SUBJECT_CERT_STORE:
|
||||||
ret = import_store(dwFlags, hwndParent, pwszWizardTitle,
|
ret = import_store(dwFlags, hwndParent, pwszWizardTitle,
|
||||||
pImportSrc->u.hCertStore, hDestCertStore);
|
pImportSrc->u.hCertStore, hDestCertStore);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
FIXME("source type not implemented: %u\n", pImportSrc->dwSubjectChoice);
|
WARN("unknown source type: %u\n", pImportSrc->dwSubjectChoice);
|
||||||
SetLastError(E_INVALIDARG);
|
SetLastError(E_INVALIDARG);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue