diff --git a/contrib/pkcs11-keygen/destroyobj.c b/contrib/pkcs11-keygen/destroyobj.c index 9c714d8e90..0883978403 100644 --- a/contrib/pkcs11-keygen/destroyobj.c +++ b/contrib/pkcs11-keygen/destroyobj.c @@ -93,7 +93,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: "); diff --git a/contrib/pkcs11-keygen/readkey.c b/contrib/pkcs11-keygen/readkey.c index 869717c732..551e90fdf8 100644 --- a/contrib/pkcs11-keygen/readkey.c +++ b/contrib/pkcs11-keygen/readkey.c @@ -117,7 +117,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: "); diff --git a/contrib/pkcs11-keygen/set_key_id.c b/contrib/pkcs11-keygen/set_key_id.c index 5c3a3c409c..f2d8bcb8cf 100644 --- a/contrib/pkcs11-keygen/set_key_id.c +++ b/contrib/pkcs11-keygen/set_key_id.c @@ -101,7 +101,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: "); diff --git a/contrib/pkcs11-keygen/writekey.c b/contrib/pkcs11-keygen/writekey.c index 3d1ba99d71..d0aacb2702 100644 --- a/contrib/pkcs11-keygen/writekey.c +++ b/contrib/pkcs11-keygen/writekey.c @@ -139,7 +139,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: ");