ReactOS 0.4.15-dev-6056-gb29b268
mssign32_main.c File Reference
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "wincrypt.h"
#include "wine/debug.h"
#include "wine/heap.h"
#include "mssign32_private.h"
Include dependency graph for mssign32_main.c:

Go to the source code of this file.

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (mssign)
 
BOOL WINAPI DllMain (HINSTANCE hinst, DWORD reason, LPVOID lpv)
 
HRESULT WINAPI PvkGetCryptProv (HWND hwnd, LPCWSTR pwszCaption, LPCWSTR pwszCapiProvider, DWORD dwProviderType, LPCWSTR pwszPvkFile, LPCWSTR pwszKeyContainerName, DWORD *pdwKeySpec, LPWSTR *ppwszTmpContainer, HCRYPTPROV *phCryptProv)
 
BOOL WINAPI PvkPrivateKeyAcquireContextFromMemory (LPCWSTR pwszProvName, DWORD dwProvType, BYTE *pbData, DWORD cbData, HWND hwndOwner, LPCWSTR pwszKeyName, DWORD *pdwKeySpec, HCRYPTPROV *phCryptProv, LPWSTR *ppwszTmpContainer)
 
void WINAPI PvkFreeCryptProv (HCRYPTPROV hProv, LPCWSTR pwszCapiProvider, DWORD dwProviderType, LPWSTR pwszTmpContainer)
 
HRESULT WINAPI SignerSignEx (DWORD flags, SIGNER_SUBJECT_INFO *subject_info, SIGNER_CERT *signer_cert, SIGNER_SIGNATURE_INFO *signature_info, SIGNER_PROVIDER_INFO *provider_info, const WCHAR *http_time_stamp, CRYPT_ATTRIBUTES *request, void *sip_data, SIGNER_CONTEXT **signer_context)
 
HRESULT WINAPI SignerFreeSignerContext (SIGNER_CONTEXT *signer_context)
 

Function Documentation

◆ DllMain()

BOOL WINAPI DllMain ( HINSTANCE  hinst,
DWORD  reason,
LPVOID  lpv 
)

Definition at line 34 of file mssign32_main.c.

35{
36 switch(reason)
37 {
38 case DLL_WINE_PREATTACH:
39 return FALSE; /* prefer native version */
42 break;
43 }
44 return TRUE;
45}
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
static WCHAR reason[MAX_STRING_RESOURCE_LEN]
Definition: object.c:1904
#define DLL_PROCESS_ATTACH
Definition: compat.h:131
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
Definition: loader.c:85
static HINSTANCE hinst
Definition: edit.c:551

◆ PvkFreeCryptProv()

void WINAPI PvkFreeCryptProv ( HCRYPTPROV  hProv,
LPCWSTR  pwszCapiProvider,
DWORD  dwProviderType,
LPWSTR  pwszTmpContainer 
)

Definition at line 70 of file mssign32_main.c.

72{
73 FIXME("%08lx %s %d %s stub\n", hProv, debugstr_w(pwszCapiProvider), dwProviderType,
74 debugstr_w(pwszTmpContainer));
75}
#define FIXME(fmt,...)
Definition: debug.h:111
#define debugstr_w
Definition: kernel32.h:32
static HCRYPTPROV hProv
Definition: rsaenh.c:32

◆ PvkGetCryptProv()

HRESULT WINAPI PvkGetCryptProv ( HWND  hwnd,
LPCWSTR  pwszCaption,
LPCWSTR  pwszCapiProvider,
DWORD  dwProviderType,
LPCWSTR  pwszPvkFile,
LPCWSTR  pwszKeyContainerName,
DWORD pdwKeySpec,
LPWSTR ppwszTmpContainer,
HCRYPTPROV phCryptProv 
)

Definition at line 48 of file mssign32_main.c.

51{
52 FIXME("%p %s %s %d %s %s %p %p %p stub\n", hwnd, debugstr_w(pwszCaption), debugstr_w(pwszCapiProvider),
53 dwProviderType, debugstr_w(pwszPvkFile), debugstr_w(pwszKeyContainerName),
54 pdwKeySpec, ppwszTmpContainer, phCryptProv);
55
56 return E_FAIL;
57}
#define E_FAIL
Definition: ddrawi.h:102
_In_ LONG _In_ HWND hwnd
Definition: winddi.h:4023

◆ PvkPrivateKeyAcquireContextFromMemory()

BOOL WINAPI PvkPrivateKeyAcquireContextFromMemory ( LPCWSTR  pwszProvName,
DWORD  dwProvType,
BYTE pbData,
DWORD  cbData,
HWND  hwndOwner,
LPCWSTR  pwszKeyName,
DWORD pdwKeySpec,
HCRYPTPROV phCryptProv,
LPWSTR ppwszTmpContainer 
)

Definition at line 59 of file mssign32_main.c.

62{
63 FIXME("%s %d %p %d %p %s %p %p %p stub\n", debugstr_w(pwszProvName), dwProvType,
64 pbData, cbData, hwndOwner, debugstr_w(pwszKeyName), pdwKeySpec,
65 phCryptProv, ppwszTmpContainer);
66
67 return FALSE;
68}
_In_ HCRYPTHASH _In_ BOOL _In_ DWORD _Inout_updates_bytes_to_ pdwDataLen BYTE * pbData
Definition: wincrypt.h:4201

◆ SignerFreeSignerContext()

HRESULT WINAPI SignerFreeSignerContext ( SIGNER_CONTEXT signer_context)

Definition at line 87 of file mssign32_main.c.

88{
89 heap_free(signer_context);
90 return S_OK;
91}
static BOOL heap_free(void *mem)
Definition: appwiz.h:75
#define S_OK
Definition: intsafe.h:52

◆ SignerSignEx()

HRESULT WINAPI SignerSignEx ( DWORD  flags,
SIGNER_SUBJECT_INFO subject_info,
SIGNER_CERT signer_cert,
SIGNER_SIGNATURE_INFO signature_info,
SIGNER_PROVIDER_INFO provider_info,
const WCHAR http_time_stamp,
CRYPT_ATTRIBUTES request,
void sip_data,
SIGNER_CONTEXT **  signer_context 
)

Definition at line 77 of file mssign32_main.c.

81{
82 FIXME("%x %p %p %p %p %s %p %p %p stub\n", flags, subject_info, signer_cert, signature_info, provider_info,
83 wine_dbgstr_w(http_time_stamp), request, sip_data, signer_cert);
84 return E_NOTIMPL;
85}
#define E_NOTIMPL
Definition: ddrawi.h:99
GLbitfield flags
Definition: glext.h:7161
#define wine_dbgstr_w
Definition: kernel32.h:34
Definition: tftpd.h:86

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( mssign  )