Commit f1ec80d1 authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

wintrust: Implement WTHelperGetProvCertFromChain.

parent 0823c4fc
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
@ stub WTHelperGetFileHandle @ stub WTHelperGetFileHandle
@ stub WTHelperGetFileName @ stub WTHelperGetFileName
@ stub WTHelperGetKnownUsages @ stub WTHelperGetKnownUsages
@ stub WTHelperGetProvCertFromChain @ stdcall WTHelperGetProvCertFromChain(ptr long)
@ stub WTHelperGetProvPrivateDataFromChain @ stub WTHelperGetProvPrivateDataFromChain
@ stdcall WTHelperGetProvSignerFromChain(ptr long long long) @ stdcall WTHelperGetProvSignerFromChain(ptr long long long)
@ stub WTHelperIsInRootStore @ stub WTHelperIsInRootStore
......
...@@ -125,6 +125,23 @@ CRYPT_PROVIDER_SGNR * WINAPI WTHelperGetProvSignerFromChain( ...@@ -125,6 +125,23 @@ CRYPT_PROVIDER_SGNR * WINAPI WTHelperGetProvSignerFromChain(
} }
/*********************************************************************** /***********************************************************************
* 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.@) * WTHelperProvDataFromStateData (WINTRUST.@)
*/ */
CRYPT_PROVIDER_DATA * WINAPI WTHelperProvDataFromStateData(HANDLE hStateData) CRYPT_PROVIDER_DATA * WINAPI WTHelperProvDataFromStateData(HANDLE hStateData)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment