diff options
author | Kevin Coffman <kwc@citi.umich.edu> | 2008-04-30 12:45:53 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@citi.umich.edu> | 2008-06-23 13:47:25 -0400 |
commit | d00953a53e9a2edbe005c1e596f1e96a8a293401 (patch) | |
tree | 3e476deb8cfd5e97a48a725bb21af28dfdea879d /include/linux/sunrpc | |
parent | 8837abcab3d16608bd2c7fac051a839d48f2f30c (diff) | |
download | linux-d00953a53e9a2edbe005c1e596f1e96a8a293401.tar.gz linux-d00953a53e9a2edbe005c1e596f1e96a8a293401.tar.bz2 linux-d00953a53e9a2edbe005c1e596f1e96a8a293401.zip |
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>
Diffstat (limited to 'include/linux/sunrpc')
-rw-r--r-- | include/linux/sunrpc/gss_krb5.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/sunrpc/gss_krb5.h b/include/linux/sunrpc/gss_krb5.h index a10f1fb0bf7c..e7bbdba474d5 100644 --- a/include/linux/sunrpc/gss_krb5.h +++ b/include/linux/sunrpc/gss_krb5.h @@ -51,6 +51,9 @@ struct krb5_ctx { extern spinlock_t krb5_seq_lock; +/* The length of the Kerberos GSS token header */ +#define GSS_KRB5_TOK_HDR_LEN (16) + #define KG_TOK_MIC_MSG 0x0101 #define KG_TOK_WRAP_MSG 0x0201 |