diff --git a/dlls/wintrust/Makefile.in b/dlls/wintrust/Makefile.in index 22000f35233..de2b25e537b 100644 --- a/dlls/wintrust/Makefile.in +++ b/dlls/wintrust/Makefile.in @@ -4,7 +4,7 @@ SRCDIR = @srcdir@ VPATH = @srcdir@ MODULE = wintrust.dll IMPORTLIB = libwintrust.$(IMPLIBEXT) -IMPORTS = kernel32 +IMPORTS = crypt32 kernel32 C_SRCS = wintrust_main.c diff --git a/dlls/wintrust/wintrust.spec b/dlls/wintrust/wintrust.spec index d5d09941af7..28de1555027 100644 --- a/dlls/wintrust/wintrust.spec +++ b/dlls/wintrust/wintrust.spec @@ -71,7 +71,7 @@ @ stub TrustDecode @ stub TrustFindIssuerCertificate @ stub TrustFreeDecode -@ stub TrustIsCertificateSelfSigned +@ stdcall TrustIsCertificateSelfSigned(ptr) @ stub TrustOpenStores @ stub WTHelperCertFindIssuerCertificate @ stub WTHelperCertIsSelfSigned diff --git a/dlls/wintrust/wintrust_main.c b/dlls/wintrust/wintrust_main.c index 9d5f4e66353..6c56fcb336d 100644 --- a/dlls/wintrust/wintrust_main.c +++ b/dlls/wintrust/wintrust_main.c @@ -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.@) */