diff options
| author | Kevin Coffman <kwc@citi.umich.edu> | 2010-03-17 13:02:47 -0400 | 
|---|---|---|
| committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2010-05-14 15:09:15 -0400 | 
| commit | 7561042fb7870be0b4ee57efddce68bda8968abf (patch) | |
| tree | 8946703293d7904928f473f14f4e645f6d5be65a /net/sunrpc/auth_gss/gss_mech_switch.c | |
| parent | 725f2865d4df31ac0768b13ae763beadc4bb8ce9 (diff) | |
| download | olio-linux-3.10-7561042fb7870be0b4ee57efddce68bda8968abf.tar.xz olio-linux-3.10-7561042fb7870be0b4ee57efddce68bda8968abf.zip  | |
gss_krb5: Added and improved code comments
Signed-off-by: Steve Dickson <steved@redhat.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net/sunrpc/auth_gss/gss_mech_switch.c')
| -rw-r--r-- | net/sunrpc/auth_gss/gss_mech_switch.c | 14 | 
1 files changed, 14 insertions, 0 deletions
diff --git a/net/sunrpc/auth_gss/gss_mech_switch.c b/net/sunrpc/auth_gss/gss_mech_switch.c index 76e4c6f4ac3..28a84ef41d1 100644 --- a/net/sunrpc/auth_gss/gss_mech_switch.c +++ b/net/sunrpc/auth_gss/gss_mech_switch.c @@ -285,6 +285,20 @@ gss_verify_mic(struct gss_ctx		*context_handle,  				 mic_token);  } +/* + * This function is called from both the client and server code. + * Each makes guarantees about how much "slack" space is available + * for the underlying function in "buf"'s head and tail while + * performing the wrap. + * + * The client and server code allocate RPC_MAX_AUTH_SIZE extra + * space in both the head and tail which is available for use by + * the wrap function. + * + * Underlying functions should verify they do not use more than + * RPC_MAX_AUTH_SIZE of extra space in either the head or tail + * when performing the wrap. + */  u32  gss_wrap(struct gss_ctx	*ctx_id,  	 int		offset,  |