Commit 762682e9 authored by Mark Andrews's avatar Mark Andrews

make getpass dependent on HAVE_GETPASS

parent 2d13af35
......@@ -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: ");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment