gss_krb5: create a define for token header size and clean up ptr location
authorKevin Coffman <kwc@citi.umich.edu>
Wed, 30 Apr 2008 16:45:53 +0000 (12:45 -0400)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Mon, 23 Jun 2008 17:47:25 +0000 (13:47 -0400)
commitd00953a53e9a2edbe005c1e596f1e96a8a293401
tree3e476deb8cfd5e97a48a725bb21af28dfdea879d
parent8837abcab3d16608bd2c7fac051a839d48f2f30c
gss_krb5: create a define for token header size and clean up ptr location

cleanup:
Document token header size with a #define instead of open-coding it.

Don't needlessly increment "ptr" past the beginning of the header
which makes the values passed to functions more understandable and
eliminates the need for extra "krb5_hdr" pointer.

Clean up some intersecting  white-space issues flagged by checkpatch.pl.

This leaves the checksum length hard-coded at 8 for DES.  A later patch
cleans that up.

Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
include/linux/sunrpc/gss_krb5.h
net/sunrpc/auth_gss/gss_krb5_seal.c
net/sunrpc/auth_gss/gss_krb5_unseal.c
net/sunrpc/auth_gss/gss_krb5_wrap.c