Set len to buffer size.

This commit is contained in:
Dr. Stephen Henson 2007-05-17 16:42:05 +00:00
parent e77dbf325f
commit 0f9e0abbee

View File

@ -593,6 +593,7 @@ int do_fp(BIO *out, unsigned char *buf, BIO *bp, int sep, int binout,
{
EVP_MD_CTX *ctx;
BIO_get_md_ctx(bp, &ctx);
len = BUFSIZE;
if(!EVP_DigestSignFinal(ctx, buf, &len))
{
BIO_printf(bio_err, "Error Signing Data\n");