{ BIO *b; int ret;  if ((b=BIO_new(BIO_s_file())) == NULL) { X509err(X509_F_X509_PRINT_FP,ERR_R_BUF_LIB); return(0); } BIO_set_fp(b,fp,BIO_NOCLOSE); ret=X509_print(b, x); BIO_free(b); return(ret); }
{ return X509_print_ex_fp(fp, x, XN_FLAG_COMPAT, X509_FLAG_COMPAT); }
int X509_print_fp(FILE *fp, X509 *x)        {        BIO *b;        int ret;        if ((b=BIO_new(BIO_s_file())) == NULL)		{		X509err(X509_F_X509_PRINT_FP,ERR_R_BUF_LIB);                return(0);		}        BIO_set_fp(b,fp,BIO_NOCLOSE);        ret=X509_print(b, x);        BIO_free(b);        return(ret);        }