From f99e13bfab2606162d934bffa1ed9eb54c66d1db Mon Sep 17 00:00:00 2001 From: kubodera_yuichi Date: Wed, 6 Jan 2010 02:26:46 +0000 Subject: [PATCH] =?UTF-8?q?=E3=83=90=E3=82=B0=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-09-30%20-%20paladin.7z/paladin/ctr_eFuse@141 ff987cc8-cf2f-4642-8568-d52cce064691 --- cr_hsm_code.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cr_hsm_code.c b/cr_hsm_code.c index ecb3403..30fb739 100644 --- a/cr_hsm_code.c +++ b/cr_hsm_code.c @@ -249,7 +249,7 @@ int hsm_initialize( void ) // load ecdsa dev keypair ret_code = hsm_ecdsa_load_keypair( hsmEcdsaPrivkeyidentDev, &hsmEcdsaPrivkeyidDev, - NULL, &hsmEcdsaPubkeyidDev ); + *(NFKM_KeyIdent*)NULL, &hsmEcdsaPubkeyidDev ); if ( ret_code != CR_GENID_SUCCESS ) { SetErrorInfo( __FUNCTION__, __LINE__ ); @@ -258,7 +258,7 @@ int hsm_initialize( void ) // load ecdsa prod keypair ret_code = hsm_ecdsa_load_keypair( hsmEcdsaPrivkeyidentProd, &hsmEcdsaPrivkeyidProd, - NULL, &hsmEcdsaPubkeyidProd ); + *(NFKM_KeyIdent*)NULL, &hsmEcdsaPubkeyidProd ); if ( ret_code != CR_GENID_SUCCESS ) { SetErrorInfo( __FUNCTION__, __LINE__ ); @@ -763,7 +763,7 @@ int hsm_ecdsa_load_keypair( NFKM_KeyIdent privKeyident, M_KeyID *privKeyid, } // priv - if ( privKeyident != NULL ) + if ( &privKeyident != NULL ) { // find key ret_code = NFKM_findkey( hsmHandle, privKeyident, &keyinfo, NULL ); @@ -794,7 +794,7 @@ int hsm_ecdsa_load_keypair( NFKM_KeyIdent privKeyident, M_KeyID *privKeyid, } // priv // pub - if ( pubKeyident != NULL ) + if ( &pubKeyident != NULL ) { // find key ret_code = NFKM_findkey( hsmHandle, pubKeyident, &keyinfo, NULL );