コード修正

git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-09-30%20-%20paladin.7z/paladin/ctr_eFuse@126 ff987cc8-cf2f-4642-8568-d52cce064691
This commit is contained in:
kubodera_yuichi 2009-12-29 04:05:25 +00:00
parent 1d7042f104
commit b2d392fec9
6 changed files with 15 additions and 19 deletions

View File

@ -122,8 +122,6 @@ extern "C" {
#include "nfkm.h"
#include "rqcard-applic.h"
#include "rqcard-fips.h"
// nShield optional
#include "simplebignum.h"
#endif // USE_HSM
#include <openssl/err.h>

View File

@ -13,7 +13,7 @@
#include "nfastapp.h"
#include "nfutil.h"
#include "my_hsm_alloc.h"
#include "cr_hsm_alloc.h"
/* --------------------- */

View File

@ -1,9 +1,9 @@
/*
* my_hsm_alloc.h
* cr_hsm_alloc.h
*/
#ifndef MY_HSM_ALLOC_H
#define MY_HSM_ALLOC_H
#ifndef CR_HSM_ALLOC_H
#define CR_HSM_ALLOC_H
#include "nfastapp.h"
@ -26,5 +26,5 @@ void my_hsm_free( void *ptr,
}
#endif
#endif // MY_HSM_ALLOC_H
#endif // CR_HSM_ALLOC_H

View File

@ -26,7 +26,7 @@
#include "nfastapp.h"
#include "nfutil.h"
#include "my_hsm_bignum.h"
#include "cr_hsm_bignum.h"
/* --------------------- */

View File

@ -22,8 +22,8 @@
*
*/
#ifndef MY_ALLOC_H
#define MY_ALLOC_H
#ifndef CR_HSM_BIGNUM_H
#define CR_HSM_BIGNUM_H
#include "nfastapp.h"
@ -174,5 +174,4 @@ extern int my_compare ( const struct NFast_Bignum *pA,
}
#endif
#endif
#endif // CR_HSM_BIGNUM_H

View File

@ -119,6 +119,7 @@
#ifdef USE_HSM
#include "cr_hsm_code.h"
#include "cr_hsm_bignum.h"
#include "cr_generate_id.h"
#include "cr_generate_id_private.h"
@ -127,8 +128,6 @@
#include "nfkm.h"
#include "rqcard-applic.h"
#include "rqcard-fips.h"
// nShield optional
#include "cr_hsm_bignum.h"
// TORIAEZU : nFast variables
NFast_AppHandle hsmHandle;
@ -176,11 +175,11 @@ int hsm_initialize( void )
// set BigNum upcalls for HSM
ret_code = NFastApp_SetBignumUpcalls(
hsmHandle,
sbn_bignumreceiveupcall,
sbn_bignumsendlenupcall,
sbn_bignumsendupcall,
sbn_bignumfreeupcall,
sbn_bignumformatupcall,
my_bignumreceiveupcall,
my_bignumsendlenupcall,
my_bignumsendupcall,
my_bignumfreeupcall,
my_bignumformatupcall,
NULL );
if ( ret_code != CR_GENID_SUCCESS )
{