支持CERTEX HSM接口调用
读取配置表PXY_PROFILE_HSM 重构配置读取代码
This commit is contained in:
45
common/rt/include/rlib_load.h
Normal file
45
common/rt/include/rlib_load.h
Normal file
@@ -0,0 +1,45 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// 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
|
||||
Reference in New Issue
Block a user