crypt32: Trace more return values.
This commit is contained in:
parent
9da1baa130
commit
84a54b5a1f
@ -707,11 +707,15 @@ BOOL WINAPI CryptAcquireCertificatePrivateKey(PCCERT_CONTEXT pCert,
|
|||||||
BOOL WINAPI CertCompareCertificate(DWORD dwCertEncodingType,
|
BOOL WINAPI CertCompareCertificate(DWORD dwCertEncodingType,
|
||||||
PCERT_INFO pCertId1, PCERT_INFO pCertId2)
|
PCERT_INFO pCertId1, PCERT_INFO pCertId2)
|
||||||
{
|
{
|
||||||
|
BOOL ret;
|
||||||
|
|
||||||
TRACE("(%08x, %p, %p)\n", dwCertEncodingType, pCertId1, pCertId2);
|
TRACE("(%08x, %p, %p)\n", dwCertEncodingType, pCertId1, pCertId2);
|
||||||
|
|
||||||
return CertCompareCertificateName(dwCertEncodingType, &pCertId1->Issuer,
|
ret = CertCompareCertificateName(dwCertEncodingType, &pCertId1->Issuer,
|
||||||
&pCertId2->Issuer) && CertCompareIntegerBlob(&pCertId1->SerialNumber,
|
&pCertId2->Issuer) && CertCompareIntegerBlob(&pCertId1->SerialNumber,
|
||||||
&pCertId2->SerialNumber);
|
&pCertId2->SerialNumber);
|
||||||
|
TRACE("returning %d\n", ret);
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL WINAPI CertCompareCertificateName(DWORD dwCertEncodingType,
|
BOOL WINAPI CertCompareCertificateName(DWORD dwCertEncodingType,
|
||||||
@ -731,6 +735,7 @@ BOOL WINAPI CertCompareCertificateName(DWORD dwCertEncodingType,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
ret = FALSE;
|
ret = FALSE;
|
||||||
|
TRACE("returning %d\n", ret);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -773,6 +778,7 @@ BOOL WINAPI CertCompareIntegerBlob(PCRYPT_INTEGER_BLOB pInt1,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
ret = FALSE;
|
ret = FALSE;
|
||||||
|
TRACE("returning %d\n", ret);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1134,6 +1140,7 @@ PCCERT_CONTEXT WINAPI CertFindCertificateInStore(HCERTSTORE hCertStore,
|
|||||||
SetLastError(CRYPT_E_NOT_FOUND);
|
SetLastError(CRYPT_E_NOT_FOUND);
|
||||||
ret = NULL;
|
ret = NULL;
|
||||||
}
|
}
|
||||||
|
TRACE("returning %p\n", ret);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1220,7 +1227,7 @@ PCCERT_CONTEXT WINAPI CertGetIssuerCertificateFromStore(HCERTSTORE hCertStore,
|
|||||||
ret = NULL;
|
ret = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
TRACE("returning %p\n", ret);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -575,6 +575,7 @@ BOOL WINAPI CryptSIPCreateIndirectData(SIP_SUBJECTINFO* pSubjectInfo, DWORD* pcb
|
|||||||
|
|
||||||
if ((sip = CRYPT_GetCachedSIP(pSubjectInfo->pgSubjectType)))
|
if ((sip = CRYPT_GetCachedSIP(pSubjectInfo->pgSubjectType)))
|
||||||
ret = sip->info.pfCreate(pSubjectInfo, pcbIndirectData, pIndirectData);
|
ret = sip->info.pfCreate(pSubjectInfo, pcbIndirectData, pIndirectData);
|
||||||
|
TRACE("returning %d\n", ret);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -593,6 +594,7 @@ BOOL WINAPI CryptSIPGetSignedDataMsg(SIP_SUBJECTINFO* pSubjectInfo, DWORD* pdwEn
|
|||||||
if ((sip = CRYPT_GetCachedSIP(pSubjectInfo->pgSubjectType)))
|
if ((sip = CRYPT_GetCachedSIP(pSubjectInfo->pgSubjectType)))
|
||||||
ret = sip->info.pfGet(pSubjectInfo, pdwEncodingType, dwIndex,
|
ret = sip->info.pfGet(pSubjectInfo, pdwEncodingType, dwIndex,
|
||||||
pcbSignedDataMsg, pbSignedDataMsg);
|
pcbSignedDataMsg, pbSignedDataMsg);
|
||||||
|
TRACE("returning %d\n", ret);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -611,6 +613,7 @@ BOOL WINAPI CryptSIPPutSignedDataMsg(SIP_SUBJECTINFO* pSubjectInfo, DWORD pdwEnc
|
|||||||
if ((sip = CRYPT_GetCachedSIP(pSubjectInfo->pgSubjectType)))
|
if ((sip = CRYPT_GetCachedSIP(pSubjectInfo->pgSubjectType)))
|
||||||
ret = sip->info.pfPut(pSubjectInfo, pdwEncodingType, pdwIndex,
|
ret = sip->info.pfPut(pSubjectInfo, pdwEncodingType, pdwIndex,
|
||||||
cbSignedDataMsg, pbSignedDataMsg);
|
cbSignedDataMsg, pbSignedDataMsg);
|
||||||
|
TRACE("returning %d\n", ret);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -627,6 +630,7 @@ BOOL WINAPI CryptSIPRemoveSignedDataMsg(SIP_SUBJECTINFO* pSubjectInfo,
|
|||||||
|
|
||||||
if ((sip = CRYPT_GetCachedSIP(pSubjectInfo->pgSubjectType)))
|
if ((sip = CRYPT_GetCachedSIP(pSubjectInfo->pgSubjectType)))
|
||||||
ret = sip->info.pfRemove(pSubjectInfo, dwIndex);
|
ret = sip->info.pfRemove(pSubjectInfo, dwIndex);
|
||||||
|
TRACE("returning %d\n", ret);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -643,5 +647,6 @@ BOOL WINAPI CryptSIPVerifyIndirectData(SIP_SUBJECTINFO* pSubjectInfo,
|
|||||||
|
|
||||||
if ((sip = CRYPT_GetCachedSIP(pSubjectInfo->pgSubjectType)))
|
if ((sip = CRYPT_GetCachedSIP(pSubjectInfo->pgSubjectType)))
|
||||||
ret = sip->info.pfVerify(pSubjectInfo, pIndirectData);
|
ret = sip->info.pfVerify(pSubjectInfo, pIndirectData);
|
||||||
|
TRACE("returning %d\n", ret);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user