Whamcloud - gitweb
LU-8602 gss: Support GSS on linux 4.6+ kernels 89/23289/7
authorJames Simmons <uja.ornl@yahoo.com>
Sun, 1 Jan 2017 17:51:14 +0000 (12:51 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 31 Jan 2017 04:27:38 +0000 (04:27 +0000)
commitc6f5e8121366be05765dabe0008165166d3f431c
tree8575bfc822c627e74824893ad0393242deac6755
parent8718346e06cf2e17447dd3e3dc4e45b66d945aaf
LU-8602 gss: Support GSS on linux 4.6+ kernels

Currently the GSS code for Lustre directly uses the linux crypto API.
The GSS code uses struct crypto_hash which has now been removed in
newer kernels for struct crypto_ahash. It is possible in the future
that we could run into this issue again so to make porting easier
lets move the GSS code to the libcfs crypto api. That way in the
future when the linux crypto api changes the libcfs layer will handle
these changes so GSS will not need further patches. This patch also
exposes some of the libcfs crypto functions to user land as well.

Change-Id: I7baed64d0340ad864732a782ea401e2e0e9ae1b7
Signed-off-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-on: https://review.whamcloud.com/23289
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
Tested-by: Oleg Drokin <oleg.drokin@intel.com>
libcfs/include/libcfs/libcfs_crypto.h
lustre/include/lustre/lustre_user.h
lustre/ptlrpc/gss/gss_crypto.c
lustre/ptlrpc/gss/gss_crypto.h
lustre/ptlrpc/gss/gss_internal.h
lustre/ptlrpc/gss/gss_krb5_mech.c
lustre/ptlrpc/gss/gss_sk_mech.c
lustre/utils/gss/lgss_sk.c
lustre/utils/gss/sk_utils.c
lustre/utils/gss/sk_utils.h