Fix from HEAD.

This commit is contained in:
Dr. Stephen Henson 2006-05-17 18:25:59 +00:00
parent 986ad56124
commit 83231cb376

View File

@ -826,11 +826,13 @@ int alg_print (BIO *x, X509_ALGOR *alg)
const unsigned char *p;
p = alg->parameter->value.sequence->data;
pbe = d2i_PBEPARAM(NULL, &p, alg->parameter->value.sequence->length);
if (!pbe)
return 1;
BIO_printf (bio_err, "%s, Iteration %ld\n",
OBJ_nid2ln(OBJ_obj2nid(alg->algorithm)),
ASN1_INTEGER_get(pbe->iter));
PBEPARAM_free (pbe);
return 0;
return 1;
}
/* Load all certificates from a given file */