From: Mark Andrews Date: Fri, 4 Sep 2009 02:09:33 +0000 (+0000) Subject: make getpass dependent on HAVE_GETPASS X-Git-Tag: v9.7.0a3~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=762682e99007bd6e3232251798315aad1e54cf35;p=thirdparty%2Fbind9.git make getpass dependent on HAVE_GETPASS --- diff --git a/contrib/pkcs11-keygen/genkey.c b/contrib/pkcs11-keygen/genkey.c index fc703916358..d1269243d47 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 68e22ec843f..efe95ee278b 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: ");