projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dbb7654
)
Use correct length when prompting for password.
author
Dr. Stephen Henson
<steve@openssl.org>
Fri, 4 Apr 2014 11:44:43 +0000
(12:44 +0100)
committer
Dr. Stephen Henson
<steve@openssl.org>
Fri, 4 Apr 2014 11:44:43 +0000
(12:44 +0100)
Use bufsiz - 1 not BUFSIZ - 1 when prompting for a password in
the openssl utility.
Thanks to Rob Mackinnon, Leviathan Security for reporting this issue.
apps/apps.c
patch
|
blob
|
history
diff --git
a/apps/apps.c
b/apps/apps.c
index b99996e944cd7e4c69f33677506c46157a9baac5..b82882aa0cb08da2b5a36202fd606384b4be0267 100644
(file)
--- a/
apps/apps.c
+++ b/
apps/apps.c
@@
-588,12
+588,12
@@
int password_callback(char *buf, int bufsiz, int verify,
if (ok >= 0)
ok = UI_add_input_string(ui,prompt,ui_flags,buf,
- PW_MIN_LENGTH,
BUFSIZ
-1);
+ PW_MIN_LENGTH,
bufsiz
-1);
if (ok >= 0 && verify)
{
buff = (char *)OPENSSL_malloc(bufsiz);
ok = UI_add_verify_string(ui,prompt,ui_flags,buff,
- PW_MIN_LENGTH,
BUFSIZ
-1, buf);
+ PW_MIN_LENGTH,
bufsiz
-1, buf);
}
if (ok >= 0)
do