wininet: Moved dialog-related functions to dialog.c.
This commit is contained in:
parent
376a4f7837
commit
8ca611a598
@ -37,6 +37,7 @@
|
|||||||
#include "winerror.h"
|
#include "winerror.h"
|
||||||
#define NO_SHLWAPI_STREAM
|
#define NO_SHLWAPI_STREAM
|
||||||
#include "shlwapi.h"
|
#include "shlwapi.h"
|
||||||
|
#include "cryptuiapi.h"
|
||||||
|
|
||||||
#include "internet.h"
|
#include "internet.h"
|
||||||
|
|
||||||
@ -560,3 +561,48 @@ DWORD WINAPI InternetErrorDlg(HWND hWnd, HINTERNET hRequest,
|
|||||||
WININET_Release(&req->hdr);
|
WININET_Release(&req->hdr);
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/***********************************************************************
|
||||||
|
* InternetShowSecurityInfoByURLA (@)
|
||||||
|
*/
|
||||||
|
BOOL WINAPI InternetShowSecurityInfoByURLA(LPCSTR url, HWND window)
|
||||||
|
{
|
||||||
|
FIXME("stub: %s %p\n", url, window);
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
/***********************************************************************
|
||||||
|
* InternetShowSecurityInfoByURLW (@)
|
||||||
|
*/
|
||||||
|
BOOL WINAPI InternetShowSecurityInfoByURLW(LPCWSTR url, HWND window)
|
||||||
|
{
|
||||||
|
FIXME("stub: %s %p\n", debugstr_w(url), window);
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
/***********************************************************************
|
||||||
|
* ShowX509EncodedCertificate (@)
|
||||||
|
*/
|
||||||
|
DWORD WINAPI ShowX509EncodedCertificate(HWND parent, LPBYTE cert, DWORD len)
|
||||||
|
{
|
||||||
|
PCCERT_CONTEXT certContext = CertCreateCertificateContext(X509_ASN_ENCODING,
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
@ -66,7 +66,6 @@
|
|||||||
#include "sspi.h"
|
#include "sspi.h"
|
||||||
#include "wincrypt.h"
|
#include "wincrypt.h"
|
||||||
#include "winuser.h"
|
#include "winuser.h"
|
||||||
#include "cryptuiapi.h"
|
|
||||||
|
|
||||||
#include "internet.h"
|
#include "internet.h"
|
||||||
#include "wine/debug.h"
|
#include "wine/debug.h"
|
||||||
@ -6112,48 +6111,3 @@ BOOL WINAPI IsHostInProxyBypassList(DWORD flags, LPCSTR szHost, DWORD length)
|
|||||||
FIXME("STUB: flags=%d host=%s length=%d\n",flags,szHost,length);
|
FIXME("STUB: flags=%d host=%s length=%d\n",flags,szHost,length);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/***********************************************************************
|
|
||||||
* InternetShowSecurityInfoByURLA (@)
|
|
||||||
*/
|
|
||||||
BOOL WINAPI InternetShowSecurityInfoByURLA(LPCSTR url, HWND window)
|
|
||||||
{
|
|
||||||
FIXME("stub: %s %p\n", url, window);
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
/***********************************************************************
|
|
||||||
* InternetShowSecurityInfoByURLW (@)
|
|
||||||
*/
|
|
||||||
BOOL WINAPI InternetShowSecurityInfoByURLW(LPCWSTR url, HWND window)
|
|
||||||
{
|
|
||||||
FIXME("stub: %s %p\n", debugstr_w(url), window);
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
/***********************************************************************
|
|
||||||
* ShowX509EncodedCertificate (@)
|
|
||||||
*/
|
|
||||||
DWORD WINAPI ShowX509EncodedCertificate(HWND parent, LPBYTE cert, DWORD len)
|
|
||||||
{
|
|
||||||
PCCERT_CONTEXT certContext = CertCreateCertificateContext(X509_ASN_ENCODING,
|
|
||||||
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;
|
|
||||||
}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user