mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:19:49 +00:00
crypt32: Implement CertDeleteCTLFromStore.
This commit is contained in:
parent
7572f61f38
commit
7a2cedadbc
2 changed files with 27 additions and 6 deletions
|
@ -68,6 +68,33 @@ PCCTL_CONTEXT WINAPI CertEnumCTLsInStore(HCERTSTORE hCertStore,
|
|||
return ret;
|
||||
}
|
||||
|
||||
BOOL WINAPI CertDeleteCTLFromStore(PCCTL_CONTEXT pCtlContext)
|
||||
{
|
||||
BOOL ret;
|
||||
|
||||
TRACE("(%p)\n", pCtlContext);
|
||||
|
||||
if (!pCtlContext)
|
||||
ret = TRUE;
|
||||
else if (!pCtlContext->hCertStore)
|
||||
{
|
||||
ret = TRUE;
|
||||
CertFreeCTLContext(pCtlContext);
|
||||
}
|
||||
else
|
||||
{
|
||||
PWINECRYPT_CERTSTORE hcs =
|
||||
(PWINECRYPT_CERTSTORE)pCtlContext->hCertStore;
|
||||
|
||||
if (hcs->dwMagic != WINE_CRYPTCERTSTORE_MAGIC)
|
||||
ret = FALSE;
|
||||
else
|
||||
ret = hcs->ctls.deleteContext(hcs, (void *)pCtlContext);
|
||||
CertFreeCTLContext(pCtlContext);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
PCCTL_CONTEXT WINAPI CertCreateCTLContext(DWORD dwMsgAndCertEncodingType,
|
||||
const BYTE *pbCtlEncoded, DWORD cbCtlEncoded)
|
||||
{
|
||||
|
|
|
@ -1100,12 +1100,6 @@ BOOL WINAPI CertAddCTLContextToStore(HCERTSTORE hCertStore,
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
BOOL WINAPI CertDeleteCTLFromStore(PCCTL_CONTEXT pCtlContext)
|
||||
{
|
||||
FIXME("(%p): stub\n", pCtlContext);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
HCERTSTORE WINAPI CertDuplicateStore(HCERTSTORE hCertStore)
|
||||
{
|
||||
WINECRYPT_CERTSTORE *hcs = (WINECRYPT_CERTSTORE *)hCertStore;
|
||||
|
|
Loading…
Reference in a new issue