Loading apps/dgst.c +8 −1 Original line number Diff line number Diff line Loading @@ -551,7 +551,7 @@ int do_fp(BIO *out, unsigned char *buf, BIO *bp, int sep, int binout, const char *sig_name, const char *md_name, const char *file,BIO *bmd) { size_t len; ssize_t len; int i; for (;;) Loading Loading @@ -598,7 +598,14 @@ int do_fp(BIO *out, unsigned char *buf, BIO *bp, int sep, int binout, } } else { len=BIO_gets(bp,(char *)buf,BUFSIZE); if (len <0) { ERR_print_errors(bio_err); return 1; } } if(binout) BIO_write(out, buf, len); else Loading crypto/evp/bio_md.c +5 −3 Original line number Diff line number Diff line Loading @@ -130,8 +130,8 @@ static int md_read(BIO *b, char *out, int outl) { if (ret > 0) { EVP_DigestUpdate(ctx,(unsigned char *)out, (unsigned int)ret); if (EVP_DigestUpdate(ctx,(unsigned char *)out, (unsigned int)ret)<=0) return (-1); } } BIO_clear_retry_flags(b); Loading Loading @@ -253,7 +253,9 @@ static int md_gets(BIO *bp, char *buf, int size) ctx=bp->ptr; if (size < ctx->digest->md_size) return(0); EVP_DigestFinal_ex(ctx,(unsigned char *)buf,&ret); if (EVP_DigestFinal_ex(ctx,(unsigned char *)buf,&ret)<=0) return -1; return((int)ret); } Loading Loading
apps/dgst.c +8 −1 Original line number Diff line number Diff line Loading @@ -551,7 +551,7 @@ int do_fp(BIO *out, unsigned char *buf, BIO *bp, int sep, int binout, const char *sig_name, const char *md_name, const char *file,BIO *bmd) { size_t len; ssize_t len; int i; for (;;) Loading Loading @@ -598,7 +598,14 @@ int do_fp(BIO *out, unsigned char *buf, BIO *bp, int sep, int binout, } } else { len=BIO_gets(bp,(char *)buf,BUFSIZE); if (len <0) { ERR_print_errors(bio_err); return 1; } } if(binout) BIO_write(out, buf, len); else Loading
crypto/evp/bio_md.c +5 −3 Original line number Diff line number Diff line Loading @@ -130,8 +130,8 @@ static int md_read(BIO *b, char *out, int outl) { if (ret > 0) { EVP_DigestUpdate(ctx,(unsigned char *)out, (unsigned int)ret); if (EVP_DigestUpdate(ctx,(unsigned char *)out, (unsigned int)ret)<=0) return (-1); } } BIO_clear_retry_flags(b); Loading Loading @@ -253,7 +253,9 @@ static int md_gets(BIO *bp, char *buf, int size) ctx=bp->ptr; if (size < ctx->digest->md_size) return(0); EVP_DigestFinal_ex(ctx,(unsigned char *)buf,&ret); if (EVP_DigestFinal_ex(ctx,(unsigned char *)buf,&ret)<=0) return -1; return((int)ret); } Loading