Commit 34df5d58 authored by J. Bruce Fields's avatar J. Bruce Fields Committed by Linus Torvalds

Trivial; I kept forgetting what each of the xdr_netobj's passed to the gss-api

routine meant, so I thought I'd fool with the argument names in an effort to
make them more helpful.
parent 620563dd
......@@ -39,12 +39,12 @@ u32 gss_import_sec_context(
u32 gss_get_mic(
struct gss_ctx *ctx_id,
u32 qop,
struct xdr_netobj *message_buffer,
struct xdr_netobj *message_token);
struct xdr_netobj *message,
struct xdr_netobj *mic_token);
u32 gss_verify_mic(
struct gss_ctx *ctx_id,
struct xdr_netobj *signbuf,
struct xdr_netobj *checksum,
struct xdr_netobj *message,
struct xdr_netobj *mic_token,
u32 *qstate);
u32 gss_delete_sec_context(
struct gss_ctx **ctx_id);
......@@ -95,12 +95,12 @@ struct gss_api_ops {
u32 (*gss_get_mic)(
struct gss_ctx *ctx_id,
u32 qop,
struct xdr_netobj *message_buffer,
struct xdr_netobj *message_token);
struct xdr_netobj *message,
struct xdr_netobj *mic_token);
u32 (*gss_verify_mic)(
struct gss_ctx *ctx_id,
struct xdr_netobj *signbuf,
struct xdr_netobj *checksum,
struct xdr_netobj *message,
struct xdr_netobj *mic_token,
u32 *qstate);
void (*gss_delete_sec_context)(
void *internal_ctx_id);
......
......@@ -190,33 +190,33 @@ gss_import_sec_context(struct xdr_netobj *input_token,
->gss_import_sec_context(input_token, *ctx_id);
}
/* gss_verify_mic: hash messages_buffer and return gss verify token. */
/* gss_get_mic: compute a mic over message and return mic_token. */
u32
gss_get_mic(struct gss_ctx *context_handle,
u32 qop,
struct xdr_netobj *message_buffer,
struct xdr_netobj *message_token)
struct xdr_netobj *message,
struct xdr_netobj *mic_token)
{
return context_handle->mech_type->gm_ops
->gss_get_mic(context_handle,
qop,
message_buffer,
message_token);
message,
mic_token);
}
/* gss_verify_mic: hash messages_buffer and return gss verify token. */
/* gss_verify_mic: check whether the provided mic_token verifies message. */
u32
gss_verify_mic(struct gss_ctx *context_handle,
struct xdr_netobj *signbuf,
struct xdr_netobj *checksum,
struct xdr_netobj *message,
struct xdr_netobj *mic_token,
u32 *qstate)
{
return context_handle->mech_type->gm_ops
->gss_verify_mic(context_handle,
signbuf,
checksum,
message,
mic_token,
qstate);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment