libafscp: Make _GetLocalSecurityObject krb5-only

If we are compiled without kerberos support, afscp_util.c generates a
warning, breaking the build when built with --enable-checking:

      CC  .../src/libafscp/afscp_util.o
    .../src/libafscp/afscp_util.c:152:1: error: '_GetLocalSecurityObject' defined but not used [-Werror=unused-function]

To avoid this, don't define _GetLocalSecurityObject if we don't have
HAVE_KERBEROS.

Change-Id: I2515402e19c6c44ad70de6e6ab16c39d61334ab4
Reviewed-on: https://gerrit.openafs.org/15818
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Reviewed-by: Cheyenne Wills <cwills@sinenomine.net>
This commit is contained in:
Andrew Deason 2024-08-13 17:25:51 -05:00 committed by Michael Meffie
parent 7f188ff32d
commit 64a3f42c62

View File

@ -148,6 +148,7 @@ _GetNullSecurityObject(struct afscp_cell *cell)
return 0;
}
#ifdef HAVE_KERBEROS
static int
_GetLocalSecurityObject(struct afscp_cell *cell,
char *aname, char *ainst)
@ -209,6 +210,7 @@ _GetLocalSecurityObject(struct afscp_cell *cell,
}
return code;
}
#endif /* HAVE_KERBEROS */
int
_GetSecurityObject(struct afscp_cell *cell)