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
/
apps.c
diff --git
a/apps/apps.c
b/apps/apps.c
index 271dfa143938fe903b94507b4354fbc9a5ab7172..4a8c9263a7cc3e0e59989d7f986a498e01999de7 100644
(file)
--- a/
apps/apps.c
+++ b/
apps/apps.c
@@
-615,7
+615,7
@@
int password_callback(char *buf, int bufsiz, int verify,
if (buff)
{
if (buff)
{
-
memset(buff,0
,(unsigned int)bufsiz);
+
OPENSSL_cleanse(buff
,(unsigned int)bufsiz);
OPENSSL_free(buff);
}
OPENSSL_free(buff);
}
@@
-625,13
+625,13
@@
int password_callback(char *buf, int bufsiz, int verify,
{
BIO_printf(bio_err, "User interface error\n");
ERR_print_errors(bio_err);
{
BIO_printf(bio_err, "User interface error\n");
ERR_print_errors(bio_err);
-
memset(buf,0
,(unsigned int)bufsiz);
+
OPENSSL_cleanse(buf
,(unsigned int)bufsiz);
res = 0;
}
if (ok == -2)
{
BIO_printf(bio_err,"aborted!\n");
res = 0;
}
if (ok == -2)
{
BIO_printf(bio_err,"aborted!\n");
-
memset(buf,0
,(unsigned int)bufsiz);
+
OPENSSL_cleanse(buf
,(unsigned int)bufsiz);
res = 0;
}
UI_free(ui);
res = 0;
}
UI_free(ui);