TALLOC_FREE(fname);
}
-static void free_pipe_auth_data(struct pipe_auth_data *auth)
-{
- TALLOC_FREE(auth->auth_ctx);
-}
-
static DATA_BLOB generic_session_key(void)
{
return data_blob("SystemLibraryDTC", 16);
p->out_data.data_sent_length = 0;
p->out_data.current_pdu_sent = 0;
- free_pipe_auth_data(&p->auth);
+ TALLOC_FREE(p->auth.auth_ctx);
p->auth.auth_level = DCERPC_AUTH_LEVEL_NONE;
p->auth.auth_type = DCERPC_AUTH_TYPE_NONE;
p->pipe_bound = False;
talloc_steal(mem_ctx, response->data);
p->auth.auth_ctx = spnego_ctx;
- p->auth.auth_data_free_func = &free_pipe_auth_data;
p->auth.auth_type = DCERPC_AUTH_TYPE_SPNEGO;
DEBUG(10, ("SPNEGO auth started\n"));
/* We're finished with this bind - no more packets. */
p->auth.auth_ctx = schannel_auth;
- p->auth.auth_data_free_func = &free_pipe_auth_data;
p->auth.auth_type = DCERPC_AUTH_TYPE_SCHANNEL;
p->pipe_bound = True;
talloc_steal(mem_ctx, response->data);
p->auth.auth_ctx = ntlmssp_state;
- p->auth.auth_data_free_func = &free_pipe_auth_data;
p->auth.auth_type = DCERPC_AUTH_TYPE_NTLMSSP;
DEBUG(10, (__location__ ": NTLMSSP auth started\n"));
talloc_steal(mem_ctx, response->data);
p->auth.auth_ctx = gse_ctx;
- p->auth.auth_data_free_func = &free_pipe_auth_data;
p->auth.auth_type = DCERPC_AUTH_TYPE_KRB5;
DEBUG(10, ("KRB5 auth started\n"));
err:
- free_pipe_auth_data(&p->auth);
+ TALLOC_FREE(p->auth.auth_ctx);
return false;
}