diff --git a/contrib/pkcs11-keygen/genkey.c b/contrib/pkcs11-keygen/genkey.c index fc70391635..d1269243d4 100644 --- a/contrib/pkcs11-keygen/genkey.c +++ b/contrib/pkcs11-keygen/genkey.c @@ -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: "); diff --git a/contrib/pkcs11-keygen/listobjs.c b/contrib/pkcs11-keygen/listobjs.c index 68e22ec843..efe95ee278 100644 --- a/contrib/pkcs11-keygen/listobjs.c +++ b/contrib/pkcs11-keygen/listobjs.c @@ -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: ");