ReactOS  0.4.15-dev-2956-g61e7ea5
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 */
40  case DLL_PROCESS_ATTACH:
42  break;
43  }
44  return TRUE;
45 }
#define TRUE
Definition: types.h:120
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
Definition: loader.c:85
#define DLL_PROCESS_ATTACH
Definition: compat.h:131
#define FALSE
Definition: types.h:117
static WCHAR reason[MAX_STRING_RESOURCE_LEN]
Definition: object.c:1904
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 }
static HCRYPTPROV hProv
Definition: rsaenh.c:32
#define debugstr_w
Definition: kernel32.h:32
#define FIXME(fmt,...)
Definition: debug.h:111

◆ 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 }
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
#define E_FAIL
Definition: ddrawi.h:102
#define debugstr_w
Definition: kernel32.h:32
#define FIXME(fmt,...)
Definition: debug.h:111

◆ 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 }
#define FALSE
Definition: types.h:117
#define debugstr_w
Definition: kernel32.h:32
#define FIXME(fmt,...)
Definition: debug.h:111
_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 }
#define S_OK
Definition: intsafe.h:52
static BOOL heap_free(void *mem)
Definition: appwiz.h:75

◆ 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 }
char * wine_dbgstr_w(const wchar_t *wstr)
Definition: atltest.h:87
#define FIXME(fmt,...)
Definition: debug.h:111
GLbitfield flags
Definition: glext.h:7161
#define E_NOTIMPL
Definition: ddrawi.h:99
Definition: tftpd.h:85

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( mssign  )