Module: wine Branch: refs/heads/master Commit: 7fc56136be20fae833ca0249436f08c73ae492ae URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=7fc56136be20fae833ca0249...
Author: Juan Lang juan_lang@yahoo.com Date: Tue Aug 1 17:20:33 2006 -0700
wintrust: Implement TrustIsCertificateSelfSigned.
---
dlls/wintrust/Makefile.in | 2 +- dlls/wintrust/wintrust.spec | 2 +- dlls/wintrust/wintrust_main.c | 13 +++++++++++++ 3 files changed, 15 insertions(+), 2 deletions(-)
diff --git a/dlls/wintrust/Makefile.in b/dlls/wintrust/Makefile.in index 22000f3..de2b25e 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 d5d0994..28de155 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 9d5f4e6..6c56fcb 100644 --- a/dlls/wintrust/wintrust_main.c +++ b/dlls/wintrust/wintrust_main.c @@ -83,6 +83,19 @@ BOOL WINAPI CryptCATAdminReleaseContext( }
/*********************************************************************** + * 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.@) */ LONG WINAPI WinVerifyTrust( HWND hwnd, GUID *ActionID, WINTRUST_DATA* ActionData )