char tmp[10240];  ascii2ebcdic(tmp, nval->value, strlen(nval->value)+1); BIO_printf(out, "%s:%s", nval->name, tmp);
int len; char *tmp; len = strlen(nval->value)+1; tmp = OPENSSL_malloc(len); if (tmp) { ascii2ebcdic(tmp, nval->value, len); BIO_printf(out, "%s:%s", nval->name, tmp); OPENSSL_free(tmp); }
void X509V3_EXT_val_prn(BIO *out, STACK_OF(CONF_VALUE) *val, int indent, int ml){	int i;	CONF_VALUE *nval;	if(!val) return;	if(!ml || !sk_CONF_VALUE_num(val)) {		BIO_printf(out, "%*s", indent, "");		if(!sk_CONF_VALUE_num(val)) BIO_puts(out, "<EMPTY>\n");	}	for(i = 0; i < sk_CONF_VALUE_num(val); i++) {		if(ml) BIO_printf(out, "%*s", indent, "");		else if(i > 0) BIO_printf(out, ", ");		nval = sk_CONF_VALUE_value(val, i);		if(!nval->name) BIO_puts(out, nval->value);		else if(!nval->value) BIO_puts(out, nval->name);#ifndef CHARSET_EBCDIC		else BIO_printf(out, "%s:%s", nval->name, nval->value);#else		else {			char tmp[10240]; /* 10k is BIO_printf's limit anyway */			ascii2ebcdic(tmp, nval->value, strlen(nval->value)+1);			BIO_printf(out, "%s:%s", nval->name, tmp);		}#endif		if(ml) BIO_puts(out, "\n");	}}