wintrust: Implement WTHelperGetProvCertFromChain.

This commit is contained in:
Juan Lang 2007-08-14 10:16:10 -07:00 committed by Alexandre Julliard
parent 0823c4fc61
commit f1ec80d13b
2 changed files with 18 additions and 1 deletions

View File

@ -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

View File

@ -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.@)
*/