void * ASN1_d2i_fp ( void * ( * xnew ) ( void ) , d2i_of_void * d2i , FILE * in , void * * x ) {
 BIO * b ;
 void * ret ;
 if ( ( b = BIO_new ( BIO_s_file ( ) ) ) == NULL ) {
 ASN1err ( ASN1_F_ASN1_D2I_FP , ERR_R_BUF_LIB ) ;
 return ( NULL ) ;
 }
 BIO_set_fp ( b , in , BIO_NOCLOSE ) ;
 ret = ASN1_d2i_bio ( xnew , d2i , b , x ) ;
 BIO_free ( b ) ;
 return ( ret ) ;
 }
void * ASN1_d2i_fp ( void * ( * xnew ) ( void ) , d2i_of_void * d2i , FILE * in , void * * x ) {
 BIO * b ;
 void * ret ;
 if ( ( b = BIO_new ( BIO_s_file ( ) ) ) == NULL ) {
 ASN1err ( ASN1_F_ASN1_D2I_FP , ERR_R_BUF_LIB ) ;
 return ( NULL ) ;
 }
 BIO_set_fp ( b , in , BIO_NOCLOSE ) ;
 ret = ASN1_d2i_bio ( xnew , d2i , b , x ) ;
 BIO_free ( b ) ;
 return ( ret ) ;
 }