void * ASN1_item_d2i_bio ( const ASN1_ITEM * it , BIO * in , void * x ) {
 BUF_MEM * b = NULL ;
 const unsigned char * p ;
 void * ret = NULL ;
 int len ;
 len = asn1_d2i_read_bio ( in , & b ) ;
 if ( len < 0 ) goto err ;
 p = ( const unsigned char * ) b -> data ;
 ret = ASN1_item_d2i ( x , & p , len , it ) ;
 err : BUF_MEM_free ( b ) ;
 return ( ret ) ;
 }
void * ASN1_item_d2i_bio ( const ASN1_ITEM * it , BIO * in , void * x ) {
 BUF_MEM * b = NULL ;
 const unsigned char * p ;
 void * ret = NULL ;
 int len ;
 len = asn1_d2i_read_bio ( in , & b ) ;
 if ( len < 0 ) goto err ;
 p = ( const unsigned char * ) b -> data ;
 ret = ASN1_item_d2i ( x , & p , len , it ) ;
 err : BUF_MEM_free ( b ) ;
 return ( ret ) ;
 }