make getpass dependent on HAVE_GETPASS
This commit is contained in:
@@ -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: ");
|
||||
|
||||
@@ -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: ");
|
||||
|
||||
Reference in New Issue
Block a user