mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:19:49 +00:00
crypt32: Implement CertAddEncodedCTLToStore.
This commit is contained in:
parent
3eb62ad60b
commit
aebb937207
2 changed files with 23 additions and 10 deletions
|
@ -29,6 +29,29 @@
|
|||
|
||||
WINE_DEFAULT_DEBUG_CHANNEL(crypt);
|
||||
|
||||
BOOL WINAPI CertAddEncodedCTLToStore(HCERTSTORE hCertStore,
|
||||
DWORD dwMsgAndCertEncodingType, const BYTE *pbCtlEncoded, DWORD cbCtlEncoded,
|
||||
DWORD dwAddDisposition, PCCTL_CONTEXT *ppCtlContext)
|
||||
{
|
||||
PCCTL_CONTEXT ctl = CertCreateCTLContext(dwMsgAndCertEncodingType,
|
||||
pbCtlEncoded, cbCtlEncoded);
|
||||
BOOL ret;
|
||||
|
||||
TRACE("(%p, %08x, %p, %d, %08x, %p)\n", hCertStore,
|
||||
dwMsgAndCertEncodingType, pbCtlEncoded, cbCtlEncoded, dwAddDisposition,
|
||||
ppCtlContext);
|
||||
|
||||
if (ctl)
|
||||
{
|
||||
ret = CertAddCTLContextToStore(hCertStore, ctl, dwAddDisposition,
|
||||
ppCtlContext);
|
||||
CertFreeCTLContext(ctl);
|
||||
}
|
||||
else
|
||||
ret = FALSE;
|
||||
return ret;
|
||||
}
|
||||
|
||||
PCCTL_CONTEXT WINAPI CertCreateCTLContext(DWORD dwMsgAndCertEncodingType,
|
||||
const BYTE *pbCtlEncoded, DWORD cbCtlEncoded)
|
||||
{
|
||||
|
|
|
@ -1043,16 +1043,6 @@ PCCRL_CONTEXT WINAPI CertEnumCRLsInStore(HCERTSTORE hCertStore,
|
|||
return ret;
|
||||
}
|
||||
|
||||
BOOL WINAPI CertAddEncodedCTLToStore(HCERTSTORE hCertStore,
|
||||
DWORD dwMsgAndCertEncodingType, const BYTE *pbCtlEncoded, DWORD cbCtlEncoded,
|
||||
DWORD dwAddDisposition, PCCTL_CONTEXT *ppCtlContext)
|
||||
{
|
||||
FIXME("(%p, %08x, %p, %d, %08x, %p): stub\n", hCertStore,
|
||||
dwMsgAndCertEncodingType, pbCtlEncoded, cbCtlEncoded, dwAddDisposition,
|
||||
ppCtlContext);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
BOOL WINAPI CertAddCTLContextToStore(HCERTSTORE hCertStore,
|
||||
PCCTL_CONTEXT pCtlContext, DWORD dwAddDisposition,
|
||||
PCCTL_CONTEXT* ppStoreContext)
|
||||
|
|
Loading…
Reference in a new issue