projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
This is rollback to 0.9.6h bn_mul.c to address problem reported in RT#272.
[oweals/openssl.git]
/
apps
/
dgst.c
diff --git
a/apps/dgst.c
b/apps/dgst.c
index 32e40c1f5368406796b6578bb38b1f4087b3d1e0..280f79b4a23abaf5f1c3029642763bdc5dd7536f 100644
(file)
--- a/
apps/dgst.c
+++ b/
apps/dgst.c
@@
-117,7
+117,7
@@
int MAIN(int argc, char **argv)
goto end;
/* first check the program name */
goto end;
/* first check the program name */
- program_name(argv[0],pname,
PROG_NAME_SIZE
);
+ program_name(argv[0],pname,
sizeof pname
);
md=EVP_get_digestbyname(pname);
md=EVP_get_digestbyname(pname);
@@
-356,7
+356,7
@@
int MAIN(int argc, char **argv)
end:
if (buf != NULL)
{
end:
if (buf != NULL)
{
-
memset(buf,0
,BUFSIZE);
+
OPENSSL_cleanse(buf
,BUFSIZE);
OPENSSL_free(buf);
}
if (in != NULL) BIO_free(in);
OPENSSL_free(buf);
}
if (in != NULL) BIO_free(in);
@@
-365,7
+365,7
@@
end:
if(sigbuf) OPENSSL_free(sigbuf);
if (bmd != NULL) BIO_free(bmd);
apps_shutdown();
if(sigbuf) OPENSSL_free(sigbuf);
if (bmd != NULL) BIO_free(bmd);
apps_shutdown();
- EXIT(err);
+
OPENSSL_
EXIT(err);
}
int do_fp(BIO *out, unsigned char *buf, BIO *bp, int sep, int binout,
}
int do_fp(BIO *out, unsigned char *buf, BIO *bp, int sep, int binout,