wintrust: Implement TrustIsCertificateSelfSigned.

This commit is contained in:
Juan Lang 2006-08-01 17:20:33 -07:00 committed by Alexandre Julliard
parent 5af2b06d47
commit 7fc56136be
3 changed files with 15 additions and 2 deletions

View file

@ -4,7 +4,7 @@ SRCDIR = @srcdir@
VPATH = @srcdir@
MODULE = wintrust.dll
IMPORTLIB = libwintrust.$(IMPLIBEXT)
IMPORTS = kernel32
IMPORTS = crypt32 kernel32
C_SRCS = wintrust_main.c

View file

@ -71,7 +71,7 @@
@ stub TrustDecode
@ stub TrustFindIssuerCertificate
@ stub TrustFreeDecode
@ stub TrustIsCertificateSelfSigned
@ stdcall TrustIsCertificateSelfSigned(ptr)
@ stub TrustOpenStores
@ stub WTHelperCertFindIssuerCertificate
@ stub WTHelperCertIsSelfSigned

View file

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