kinit: use result of security framework test to enable its use

we already test for the security framework. use the result of it
to decide if we want to enable its use
This commit is contained in:
Daria Phoebe Brashear
2017-10-24 13:04:12 -04:00
committed by Jeffrey Altman
parent e014662651
commit 6428136e18

View File

@@ -35,7 +35,7 @@
#include "kuser_locl.h"
#ifdef __APPLE__
#ifdef HAVE_FRAMEWORK_SECURITY
#include <Security/Security.h>
#endif
@@ -477,7 +477,7 @@ get_new_tickets(krb5_context context,
passwd[strcspn(passwd, "\n")] = '\0';
}
#ifdef __APPLE__
#ifdef HAVE_FRAMEWORK_SECURITY
if (passwd[0] == '\0') {
const char *realm;
OSStatus osret;