AEPerr(AEP_F_AEP_INIT,AEP_R_NOT_LOADED);
AEPHKerr(AEPHK_F_AEP_INIT,AEPHK_R_NOT_LOADED);
static int aep_init(ENGINE *e)	{	t_AEP_ModExp          *p1;	t_AEP_ModExpCrt       *p2;#ifdef AEPRAND	t_AEP_GenRandom       *p3;#endif	t_AEP_Finalize        *p4;	t_AEP_Initialize      *p5;	t_AEP_OpenConnection  *p6;	t_AEP_SetBNCallBacks  *p7;	t_AEP_CloseConnection *p8;	int to_return = 0; 	if(aep_dso != NULL)		{		AEPerr(AEP_F_AEP_INIT,AEP_R_ALREADY_LOADED);		goto err;		}	/* Attempt to load libaep.so. */	aep_dso = DSO_load(NULL, AEP_LIBNAME, NULL, 0);  	if(aep_dso == NULL)		{		AEPerr(AEP_F_AEP_INIT,AEP_R_NOT_LOADED);		goto err;		}	if(	!(p1 = (t_AEP_ModExp *)     DSO_bind_func( aep_dso,AEP_F1))  ||		!(p2 = (t_AEP_ModExpCrt*)   DSO_bind_func( aep_dso,AEP_F2))  ||#ifdef AEPRAND		!(p3 = (t_AEP_GenRandom*)   DSO_bind_func( aep_dso,AEP_F3))  ||#endif		!(p4 = (t_AEP_Finalize*)    DSO_bind_func( aep_dso,AEP_F4))  ||		!(p5 = (t_AEP_Initialize*)  DSO_bind_func( aep_dso,AEP_F5))  ||		!(p6 = (t_AEP_OpenConnection*) DSO_bind_func( aep_dso,AEP_F6))  ||		!(p7 = (t_AEP_SetBNCallBacks*) DSO_bind_func( aep_dso,AEP_F7))  ||		!(p8 = (t_AEP_CloseConnection*) DSO_bind_func( aep_dso,AEP_F8)))		{		AEPerr(AEP_F_AEP_INIT,AEP_R_NOT_LOADED);		goto err;		}	/* Copy the pointers */  	p_AEP_ModExp           = p1;	p_AEP_ModExpCrt        = p2;#ifdef AEPRAND	p_AEP_GenRandom        = p3;#endif	p_AEP_Finalize         = p4;	p_AEP_Initialize       = p5;	p_AEP_OpenConnection   = p6;	p_AEP_SetBNCallBacks   = p7;	p_AEP_CloseConnection  = p8; 	to_return = 1; 	return to_return; err: 	if(aep_dso)		DSO_free(aep_dso);			p_AEP_OpenConnection    = NULL;	p_AEP_ModExp            = NULL;	p_AEP_ModExpCrt         = NULL;#ifdef AEPRAND	p_AEP_GenRandom         = NULL;#endif	p_AEP_Initialize        = NULL;	p_AEP_Finalize          = NULL;	p_AEP_SetBNCallBacks    = NULL;	p_AEP_CloseConnection   = NULL;	return to_return;	}