wintrust: Implement TrustIsCertificateSelfSigned.
This commit is contained in:
parent
5af2b06d47
commit
7fc56136be
|
@ -4,7 +4,7 @@ SRCDIR = @srcdir@
|
|||
VPATH = @srcdir@
|
||||
MODULE = wintrust.dll
|
||||
IMPORTLIB = libwintrust.$(IMPLIBEXT)
|
||||
IMPORTS = kernel32
|
||||
IMPORTS = crypt32 kernel32
|
||||
|
||||
C_SRCS = wintrust_main.c
|
||||
|
||||
|
|
|
@ -71,7 +71,7 @@
|
|||
@ stub TrustDecode
|
||||
@ stub TrustFindIssuerCertificate
|
||||
@ stub TrustFreeDecode
|
||||
@ stub TrustIsCertificateSelfSigned
|
||||
@ stdcall TrustIsCertificateSelfSigned(ptr)
|
||||
@ stub TrustOpenStores
|
||||
@ stub WTHelperCertFindIssuerCertificate
|
||||
@ stub WTHelperCertIsSelfSigned
|
||||
|
|
|
@ -82,6 +82,19 @@ BOOL WINAPI CryptCATAdminReleaseContext(HCATADMIN hCatAdmin, DWORD dwFlags )
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
* TrustIsCertificateSelfSigned (WINTRUST.@)
|
||||
*/
|
||||
BOOL WINAPI TrustIsCertificateSelfSigned( PCCERT_CONTEXT cert )
|
||||
{
|
||||
BOOL ret;
|
||||
|
||||
TRACE("%p\n", cert);
|
||||
ret = CertCompareCertificateName(cert->dwCertEncodingType,
|
||||
&cert->pCertInfo->Subject, &cert->pCertInfo->Issuer);
|
||||
return ret;
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
* WinVerifyTrust (WINTRUST.@)
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue