wintrust: Implement WTHelperGetProvCertFromChain.
This commit is contained in:
parent
0823c4fc61
commit
f1ec80d13b
|
@ -80,7 +80,7 @@
|
|||
@ stub WTHelperGetFileHandle
|
||||
@ stub WTHelperGetFileName
|
||||
@ stub WTHelperGetKnownUsages
|
||||
@ stub WTHelperGetProvCertFromChain
|
||||
@ stdcall WTHelperGetProvCertFromChain(ptr long)
|
||||
@ stub WTHelperGetProvPrivateDataFromChain
|
||||
@ stdcall WTHelperGetProvSignerFromChain(ptr long long long)
|
||||
@ stub WTHelperIsInRootStore
|
||||
|
|
|
@ -124,6 +124,23 @@ CRYPT_PROVIDER_SGNR * WINAPI WTHelperGetProvSignerFromChain(
|
|||
return sgnr;
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
* WTHelperGetProvCertFromChain (WINTRUST.@)
|
||||
*/
|
||||
CRYPT_PROVIDER_CERT * WINAPI WTHelperGetProvCertFromChain(
|
||||
CRYPT_PROVIDER_SGNR *pSgnr, DWORD idxCert)
|
||||
{
|
||||
CRYPT_PROVIDER_CERT *cert;
|
||||
|
||||
TRACE("(%p %d)\n", pSgnr, idxCert);
|
||||
|
||||
if (idxCert >= pSgnr->csCertChain || !pSgnr->pasCertChain)
|
||||
return NULL;
|
||||
cert = &pSgnr->pasCertChain[idxCert];
|
||||
TRACE("returning %p\n", cert);
|
||||
return cert;
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
* WTHelperProvDataFromStateData (WINTRUST.@)
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue