46 lines
1.7 KiB
C
46 lines
1.7 KiB
C
|
|
//------------------------------------------------------------------------------
|
||
|
|
// RCSP Project
|
||
|
|
// Copyright (c) 2007 Scientific Lab. Gamma Technologies. All rights reserved.
|
||
|
|
//
|
||
|
|
// R-CSP/R-PKCS11 LIB Loader
|
||
|
|
//------------------------------------------------------------------------------
|
||
|
|
#ifndef __RLIB_LOAD_H
|
||
|
|
#define __RLIB_LOAD_H
|
||
|
|
//------------------------------------------------------------------------------
|
||
|
|
#define LOADLIBRARY
|
||
|
|
//------------------------------------------------------------------------------
|
||
|
|
#ifndef CK_PTR
|
||
|
|
#define CK_PTR *
|
||
|
|
#endif
|
||
|
|
#ifndef NULL_PTR
|
||
|
|
#define NULL_PTR 0
|
||
|
|
#endif
|
||
|
|
#ifndef CK_CALLBACK_FUNCTION
|
||
|
|
#define CK_CALLBACK_FUNCTION(returnType, name) returnType (* name)
|
||
|
|
#endif
|
||
|
|
#ifndef CK_DEFINE_FUNCTION
|
||
|
|
#define CK_DEFINE_FUNCTION(returnType, name) returnType name
|
||
|
|
#endif
|
||
|
|
#ifndef CK_DECLARE_FUNCTION
|
||
|
|
#define CK_DECLARE_FUNCTION(returnType, name) returnType name
|
||
|
|
#endif
|
||
|
|
#ifndef CK_DECLARE_FUNCTION_POINTER
|
||
|
|
#define CK_DECLARE_FUNCTION_POINTER(returnType, name) returnType (* name)
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#pragma pack(push, cryptoki, 1)
|
||
|
|
#include "pkcs11.h"
|
||
|
|
#pragma pack(pop, cryptoki)
|
||
|
|
//------------------------------------------------------------------------------
|
||
|
|
#define CSP_REGKEY "SOFTWARE\\Microsoft\\Cryptography\\Defaults\\Provider\\Tumar CSP"
|
||
|
|
#define CAPI_LIB_PATH ""
|
||
|
|
#define PKCS_LIB_PATH ""
|
||
|
|
//------------------------------------------------------------------------------
|
||
|
|
int LoadPkcsLib (char *dllpkcs);
|
||
|
|
void FreePkcsLib(void);
|
||
|
|
int do_GetFunctionList( void );
|
||
|
|
//------------------------------------------------------------------------------
|
||
|
|
extern CK_C_GetFunctionList FC_GetFunctionList;
|
||
|
|
//------------------------------------------------------------------------------
|
||
|
|
#endif
|