SUREWAREerr(SUREWARE_F_SUREWAREHK_LOAD_PRIVATE_KEY,ENGINE_R_NOT_INITIALISED);
SUREWAREerr(SUREWARE_F_SUREWAREHK_LOAD_PRIVKEY,ENGINE_R_NOT_INITIALISED);
static EVP_PKEY *surewarehk_load_privkey(ENGINE *e, const char *key_id,					 UI_METHOD *ui_method, void *callback_data){	EVP_PKEY *res = NULL;	int ret=0;	unsigned long el=0;	char *hptr=NULL;	char keytype=0;	char msg[64]="ENGINE_load_privkey";	if(!p_surewarehk_Load_Privkey)	{		SUREWAREerr(SUREWARE_F_SUREWAREHK_LOAD_PRIVATE_KEY,ENGINE_R_NOT_INITIALISED);	}	else	{		ret=p_surewarehk_Load_Privkey(msg,key_id,&hptr,&el,&keytype);		if (ret!=1)		{			SUREWAREerr(SUREWARE_F_SUREWAREHK_LOAD_PRIVATE_KEY,ENGINE_R_FAILED_LOADING_PRIVATE_KEY);			ERR_add_error_data(1,msg);				}		else			res=sureware_load_public(e,key_id,hptr,el,keytype);	}	return res;}