From 13c4b63a45d210398bdc14739bdc93144343621f Mon Sep 17 00:00:00 2001 From: kubodera_yuichi Date: Wed, 23 Dec 2009 10:32:41 +0000 Subject: [PATCH] =?UTF-8?q?r72=E3=81=AEHSM=E9=96=A2=E9=80=A3=E3=82=B3?= =?UTF-8?q?=E3=83=BC=E3=83=89=E5=AF=BE=E7=AD=96=E6=BC=8F=E3=82=8C?= 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@73 ff987cc8-cf2f-4642-8568-d52cce064691 --- cr_hsm_util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cr_hsm_util.c b/cr_hsm_util.c index 9686aa7..19b3332 100644 --- a/cr_hsm_util.c +++ b/cr_hsm_util.c @@ -145,7 +145,7 @@ int GetTimestamp( u8 *pYear, u8 *pMonth, u8 *pMday, u8 *pHour, u8 *pMin, u8 *pSe #ifdef USE_HSM ret_code = hsm_get_rtc( &tv.tv_sec ); if( ret_code != CR_GENID_SUCCESS ) { - SetErrorInfo( ret_code, __FILE__, __LINE__ ); + SetErrorInfo( __FUNCTION__, __LINE__ ); return ret_code; } #else // !USE_HSM @@ -225,7 +225,7 @@ int GenerateRandom( u8 *pDst, int length ) ret_code = hsm_generate_random( pDst, CR_RANDOM_LENGTH ); if ( ret_code != CR_GENID_SUCCESS ) { - SetErrorInfo( CR_GENID_ERROR_ECDSA_VERIFY, __FILE__, __LINE__ ); + SetErrorInfo( __FUNCTION__, __LINE__ ); } #else // !USE_HSM int i;