#endif
if(!noprompt &&
- EVP_read_pw_string(pass, 50, "Enter Export Password:", 1))
+ EVP_read_pw_string(pass, sizeof pass, "Enter Export Password:", 1))
{
BIO_printf (bio_err, "Can't read Password\n");
goto export_end;
if (t->data[0] >= '5') strcpy(str, "19");
else strcpy(str, "20");
- strcat(str, (char *)t->data);
+ BUF_strlcat(str, (char *)t->data, t->length+2);
return ret;
}
int off)
{
int n,i;
- char str[128];
const char *neg;
if (num == NULL) return(1);
neg = (BN_get_sign(num))?"-":"";
- if (off)
- {
- if (off > 128) off=128;
- memset(str,' ',off);
- if (BIO_write(bp,str,off) <= 0) return(0);
- }
-
+ if(!BIO_indent(bp,off,128))
+ return 0;
if (BN_is_zero(num))
{
if (BIO_printf(bp, "%s 0\n", number) <= 0)