diff options
author | Rafal Szczesniak <mimir@samba.org> | 2006-03-10 16:52:46 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:56:57 -0500 |
commit | 3452e89999296e4d9c724b96f712cc4777e95c22 (patch) | |
tree | 39ac0d6025186a0f20f002406c68669f8b280ae1 /source4/librpc | |
parent | 91b30e8cd3ea61ed7f8f53646bd5da2e748f5ee7 (diff) | |
download | samba-3452e89999296e4d9c724b96f712cc4777e95c22.tar.gz samba-3452e89999296e4d9c724b96f712cc4777e95c22.tar.bz2 samba-3452e89999296e4d9c724b96f712cc4777e95c22.zip |
r14165: More comments and my copyright.
rafal
(This used to be commit 6b94e81e5a31bb413149d9328746b1fed65c7f3d)
Diffstat (limited to 'source4/librpc')
-rw-r--r-- | source4/librpc/rpc/dcerpc_util.c | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/source4/librpc/rpc/dcerpc_util.c b/source4/librpc/rpc/dcerpc_util.c index a1e2c47b0f..1a6d91ee2e 100644 --- a/source4/librpc/rpc/dcerpc_util.c +++ b/source4/librpc/rpc/dcerpc_util.c @@ -6,6 +6,7 @@ Copyright (C) Andrew Tridgell 2003 Copyright (C) Jelmer Vernooij 2004 Copyright (C) Andrew Bartlett <abartlet@samba.org> 2005 + Copyright (C) Rafal Szczesniak 2006 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -1048,6 +1049,9 @@ static void continue_auth(struct composite_context *ctx); static void continue_auth_none(struct composite_context *ctx); +/* + Stage 2 of pipe_auth: Receive result of schannel bind request +*/ static void continue_auth_schannel(struct composite_context *ctx) { struct composite_context *c = talloc_get_type(ctx->async.private_data, @@ -1060,6 +1064,9 @@ static void continue_auth_schannel(struct composite_context *ctx) } +/* + Stage 2 of pipe_auth: Receive result of authenticated bind request +*/ static void continue_auth(struct composite_context *ctx) { struct composite_context *c = talloc_get_type(ctx->async.private_data, @@ -1072,6 +1079,9 @@ static void continue_auth(struct composite_context *ctx) } +/* + Stage 2 of pipe_auth: Receive result of non-authenticated bind request +*/ static void continue_auth_none(struct composite_context *ctx) { struct composite_context *c = talloc_get_type(ctx->async.private_data, @@ -1084,6 +1094,10 @@ static void continue_auth_none(struct composite_context *ctx) } +/* + Request to perform an authenticated bind if required. Authentication + is determined using credentials passed and binding flags. +*/ struct composite_context *dcerpc_pipe_auth_send(struct dcerpc_pipe *p, struct dcerpc_binding *binding, const struct dcerpc_interface_table *table, @@ -1106,6 +1120,7 @@ struct composite_context *dcerpc_pipe_auth_send(struct dcerpc_pipe *p, c->private_data = s; c->event_ctx = p->conn->event_ctx; + /* store parameters in state structure */ s->binding = binding; s->table = table; s->credentials = credentials; @@ -1186,6 +1201,9 @@ struct composite_context *dcerpc_pipe_auth_send(struct dcerpc_pipe *p, } +/* + Receive result of authenticated bind request on dcerpc pipe +*/ NTSTATUS dcerpc_pipe_auth_recv(struct composite_context *c) { NTSTATUS status; @@ -1205,7 +1223,7 @@ NTSTATUS dcerpc_pipe_auth_recv(struct composite_context *c) /* - perform an authenticated bind if needed - sync version + Perform an authenticated bind if needed - sync version */ NTSTATUS dcerpc_pipe_auth(struct dcerpc_pipe *p, struct dcerpc_binding *binding, |