make getpass dependent on HAVE_GETPASS

This commit is contained in:
Mark Andrews
2009-09-04 02:09:33 +00:00
parent 2d13af354a
commit 762682e990
2 changed files with 2 additions and 2 deletions

View File

@@ -137,7 +137,7 @@ main(int argc, char *argv[])
/* Login to the Token (Keystore) */
if (!pin)
#ifndef OPENCRYPTOKI
#ifndef HAVE_GETPASS
pin = (CK_UTF8CHAR *)getpassphrase("Enter Pin: ");
#else
pin = (CK_UTF8CHAR *)getpass("Enter Pin: ");

View File

@@ -101,7 +101,7 @@ main(int argc, char *argv[])
/* Login to the Token (Keystore) */
if (!public) {
if (!pin)
#ifndef OPENCRYPTOKI
#ifndef HAVE_GETPASS
pin = (CK_UTF8CHAR *)getpassphrase("Enter Pin: ");
#else
pin = (CK_UTF8CHAR *)getpass("Enter Pin: ");