r4081: use clearer names
authorStefan Metzmacher <metze@samba.org>
Mon, 6 Dec 2004 17:44:33 +0000 (17:44 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:06:24 +0000 (13:06 -0500)
metze
(This used to be commit 5d7d6f02cf1aa731d371c97054480d83d85102cb)

source4/librpc/idl/dcerpc.idl
source4/librpc/rpc/dcerpc.c
source4/rpc_server/dcesrv_auth.c

index 1b8add3e79ad02bf05660809c6f680e5a44ca52f..64769119049172769e0074f32c4f5b02103dd101 100644 (file)
@@ -175,7 +175,7 @@ interface dcerpc
                [case(DCERPC_PKT_ALTER)]     dcerpc_bind     alter;
                [case(DCERPC_PKT_ALTER_ACK)] dcerpc_bind_ack alter_ack;
                [case(DCERPC_PKT_FAULT)]     dcerpc_fault    fault;
                [case(DCERPC_PKT_ALTER)]     dcerpc_bind     alter;
                [case(DCERPC_PKT_ALTER_ACK)] dcerpc_bind_ack alter_ack;
                [case(DCERPC_PKT_FAULT)]     dcerpc_fault    fault;
-               [case(DCERPC_PKT_AUTH3)]     dcerpc_auth3    auth;
+               [case(DCERPC_PKT_AUTH3)]     dcerpc_auth3    auth3;
                [case(DCERPC_PKT_BIND_NAK)]  dcerpc_bind_nak bind_nak;
        } dcerpc_payload;
 
                [case(DCERPC_PKT_BIND_NAK)]  dcerpc_bind_nak bind_nak;
        } dcerpc_payload;
 
index 7cd18d2807e0ab54c3e1eefcd38b30256d7f4112..2ff3d233355eff13990277df379f0d3843e83ccb 100644 (file)
@@ -681,8 +681,8 @@ NTSTATUS dcerpc_auth3(struct dcerpc_pipe *p,
        pkt.pfc_flags = DCERPC_PFC_FLAG_FIRST | DCERPC_PFC_FLAG_LAST;
        pkt.call_id = next_call_id(p);
        pkt.auth_length = 0;
        pkt.pfc_flags = DCERPC_PFC_FLAG_FIRST | DCERPC_PFC_FLAG_LAST;
        pkt.call_id = next_call_id(p);
        pkt.auth_length = 0;
-       pkt.u.auth._pad = 0;
-       pkt.u.auth.auth_info = data_blob(NULL, 0);
+       pkt.u.auth3._pad = 0;
+       pkt.u.auth3.auth_info = data_blob(NULL, 0);
 
        /* construct the NDR form of the packet */
        status = dcerpc_push_auth(&blob, mem_ctx, &pkt, p->security_state.auth_info);
 
        /* construct the NDR form of the packet */
        status = dcerpc_push_auth(&blob, mem_ctx, &pkt, p->security_state.auth_info);
index a753a7d519afb6ff17a7da94c777873385f9cef5..f546e8d6e1f429f506c298a65df08e39a36da510 100644 (file)
@@ -157,11 +157,11 @@ BOOL dcesrv_auth_auth3(struct dcesrv_call_state *call)
        /* We can't work without an existing gensec state, and an new blob to feed it */
        if (!dce_conn->auth_state.auth_info ||
            !dce_conn->auth_state.gensec_security ||
        /* We can't work without an existing gensec state, and an new blob to feed it */
        if (!dce_conn->auth_state.auth_info ||
            !dce_conn->auth_state.gensec_security ||
-           pkt->u.auth.auth_info.length == 0) {
+           pkt->u.auth3.auth_info.length == 0) {
                return False;
        }
 
                return False;
        }
 
-       status = ndr_pull_struct_blob(&pkt->u.auth.auth_info,
+       status = ndr_pull_struct_blob(&pkt->u.auth3.auth_info,
                                      call,
                                      dce_conn->auth_state.auth_info,
                                      (ndr_pull_flags_fn_t)ndr_pull_dcerpc_auth);
                                      call,
                                      dce_conn->auth_state.auth_info,
                                      (ndr_pull_flags_fn_t)ndr_pull_dcerpc_auth);