char *f; char buf[256];
static void write_new_certificate(BIO *bp, X509 *x, int output_der)	{	char *f;	char buf[256];	if (output_der)		{		(void)i2d_X509_bio(bp,x);		return;		}	f=X509_NAME_oneline(X509_get_issuer_name(x),buf,256);	BIO_printf(bp,"issuer :%s\n",f);	f=X509_NAME_oneline(X509_get_subject_name(x),buf,256);	BIO_printf(bp,"subject:%s\n",f);	BIO_puts(bp,"serial :");	i2a_ASN1_INTEGER(bp,x->cert_info->serialNumber);	BIO_puts(bp,"\n\n");	X509_print(bp,x);	BIO_puts(bp,"\n");	PEM_write_bio_X509(bp,x);	BIO_puts(bp,"\n");	}