diff options
author | Michael Demeter <michael.demeter@intel.com> | 2014-04-10 10:51:15 -0700 |
---|---|---|
committer | Michael Demeter <michael.demeter@intel.com> | 2014-04-10 10:51:15 -0700 |
commit | ede964da6cdc84f4357176d8aa2587ca2a52a902 (patch) | |
tree | 4907eaa9b771cdbb8e0bc629ba7905d2ee15fa78 /apps/apps.c | |
parent | 975084c3fdbacd5f8a3c626171be8d4df27b2ac5 (diff) | |
download | openssl-ede964da6cdc84f4357176d8aa2587ca2a52a902.tar.gz openssl-ede964da6cdc84f4357176d8aa2587ca2a52a902.tar.bz2 openssl-ede964da6cdc84f4357176d8aa2587ca2a52a902.zip |
Imported Upstream version 1.0.1gupstream/1.0.1g
Diffstat (limited to 'apps/apps.c')
-rw-r--r-- | apps/apps.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/apps.c b/apps/apps.c index 1096eee..b76db10 100644 --- a/apps/apps.c +++ b/apps/apps.c @@ -586,12 +586,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 @@ -2841,7 +2841,7 @@ double app_tminterval(int stop,int usertime) if (proc==NULL) { - if (GetVersion() < 0x80000000) + if (check_winnt()) proc = OpenProcess(PROCESS_QUERY_INFORMATION,FALSE, GetCurrentProcessId()); if (proc==NULL) proc = (HANDLE)-1; |