Commit 044f6454 authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

wininet: Implement ShowX509EncodedCertificate.

parent 8c1f3308
...@@ -2,7 +2,7 @@ EXTRADEFS = -D_WINX32_ ...@@ -2,7 +2,7 @@ EXTRADEFS = -D_WINX32_
MODULE = wininet.dll MODULE = wininet.dll
IMPORTLIB = wininet IMPORTLIB = wininet
IMPORTS = mpr shlwapi shell32 user32 advapi32 IMPORTS = mpr shlwapi shell32 user32 advapi32
DELAYIMPORTS = secur32 crypt32 DELAYIMPORTS = secur32 crypt32 cryptui
EXTRALIBS = @SOCKETLIBS@ @ZLIB@ EXTRALIBS = @SOCKETLIBS@ @ZLIB@
C_SRCS = \ C_SRCS = \
......
...@@ -65,6 +65,8 @@ ...@@ -65,6 +65,8 @@
#include "shlwapi.h" #include "shlwapi.h"
#include "sspi.h" #include "sspi.h"
#include "wincrypt.h" #include "wincrypt.h"
#include "winuser.h"
#include "cryptuiapi.h"
#include "internet.h" #include "internet.h"
#include "wine/debug.h" #include "wine/debug.h"
...@@ -6077,6 +6079,24 @@ BOOL WINAPI InternetShowSecurityInfoByURLW(LPCWSTR url, HWND window) ...@@ -6077,6 +6079,24 @@ BOOL WINAPI InternetShowSecurityInfoByURLW(LPCWSTR url, HWND window)
*/ */
DWORD WINAPI ShowX509EncodedCertificate(HWND parent, LPBYTE cert, DWORD len) DWORD WINAPI ShowX509EncodedCertificate(HWND parent, LPBYTE cert, DWORD len)
{ {
FIXME("stub: %p %p %u\n", parent, cert, len); PCCERT_CONTEXT certContext = CertCreateCertificateContext(X509_ASN_ENCODING,
return ERROR_CALL_NOT_IMPLEMENTED; cert, len);
DWORD ret;
if (certContext)
{
CRYPTUI_VIEWCERTIFICATE_STRUCTW view;
memset(&view, 0, sizeof(view));
view.hwndParent = parent;
view.pCertContext = certContext;
if (CryptUIDlgViewCertificateW(&view, NULL))
ret = ERROR_SUCCESS;
else
ret = GetLastError();
CertFreeCertificateContext(certContext);
}
else
ret = GetLastError();
return ret;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment