This didn't get to the 0.9.8-dev thread...

This commit is contained in:
Richard Levitte 2002-11-13 18:09:27 +00:00
parent 0709385d3c
commit c112323dd5
3 changed files with 4 additions and 10 deletions

View File

@ -538,7 +538,7 @@ int MAIN(int argc, char **argv)
#endif #endif
if(!noprompt && 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"); BIO_printf (bio_err, "Can't read Password\n");
goto export_end; goto export_end;

View File

@ -152,7 +152,7 @@ ASN1_GENERALIZEDTIME *ASN1_TIME_to_generalizedtime(ASN1_TIME *t, ASN1_GENERALIZE
if (t->data[0] >= '5') strcpy(str, "19"); if (t->data[0] >= '5') strcpy(str, "19");
else strcpy(str, "20"); else strcpy(str, "20");
strcat(str, (char *)t->data); BUF_strlcat(str, (char *)t->data, t->length+2);
return ret; return ret;
} }

View File

@ -562,18 +562,12 @@ static int print(BIO *bp, const char *number, BIGNUM *num, unsigned char *buf,
int off) int off)
{ {
int n,i; int n,i;
char str[128];
const char *neg; const char *neg;
if (num == NULL) return(1); if (num == NULL) return(1);
neg = (BN_get_sign(num))?"-":""; neg = (BN_get_sign(num))?"-":"";
if (off) if(!BIO_indent(bp,off,128))
{ return 0;
if (off > 128) off=128;
memset(str,' ',off);
if (BIO_write(bp,str,off) <= 0) return(0);
}
if (BN_is_zero(num)) if (BN_is_zero(num))
{ {
if (BIO_printf(bp, "%s 0\n", number) <= 0) if (BIO_printf(bp, "%s 0\n", number) <= 0)