Whamcloud - gitweb
LU-4085 build: gss/krb5 is disabled despite functions found 13/7913/6
authorThomas Stibor <thomas@stibor.net>
Thu, 10 Oct 2013 13:33:33 +0000 (15:33 +0200)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 19 Nov 2013 14:00:32 +0000 (14:00 +0000)
commit3fc1eb34d8a4d352e3482a4feec364ef3b7a5d75
tree921e2f01fa346619fa00a364e338217bd36de351
parenta0e74aa58234752ec01c7a056af41fcefd2e43b6
LU-4085 build: gss/krb5 is disabled despite functions found

The function available check for krb5int_derive_key and
krb5_derive_key by means of AC_CHECK_LIB($gssapi_lib,...)
does not set shell variables HAVE_KRB5_DERIVE_KEY,
HAVE_KRB5INT_DERIVE_KEY so the test
AS_IF([test "x$HAVE_KRB5INT_DERIVE_KEY" = "x1"
-o "x$HAVE_KRB5_DERIVE_KEY" = "x1"] gives false despite
the functions are found. As a side effect this fix
revealed that calls with real prototypes are required.
Thus prototypes of krb5_derive_key(...) and
krb5int_derive_key(...) are provided, and required
structures from krb5-int.h are copied.

Signed-off-by: Thomas Stibor <thomas@stibor.net>
Change-Id: I8c4cce5f861c9e4d01071024c4b852a2274c1b40
Reviewed-on: http://review.whamcloud.com/7913
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Reviewed-by: Nathaniel Clark <nathaniel.l.clark@intel.com>
lustre/autoconf/kerberos5.m4
lustre/utils/gss/context.h
lustre/utils/gss/context_lucid.c