diff options
author | Günther Deschner <gd@samba.org> | 2008-02-13 14:08:59 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-02-13 14:18:58 +0100 |
commit | 4140f3213d678fa998d1cf6e6f1eaf4d5be7903a (patch) | |
tree | 6e212dd15843606d7d73f6e3e28b6b59349f12ec /source3/rpc_server/srv_netlog.c | |
parent | b94093173d9831935b7526ad0e8a93b791d7957a (diff) | |
download | samba-4140f3213d678fa998d1cf6e6f1eaf4d5be7903a.tar.gz samba-4140f3213d678fa998d1cf6e6f1eaf4d5be7903a.tar.bz2 samba-4140f3213d678fa998d1cf6e6f1eaf4d5be7903a.zip |
Use pidl for _netr_ServerReqChallenge.
Guenther
(This used to be commit ef424319410b7a29ecdfefca53b7e9704beb6139)
Diffstat (limited to 'source3/rpc_server/srv_netlog.c')
-rw-r--r-- | source3/rpc_server/srv_netlog.c | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/source3/rpc_server/srv_netlog.c b/source3/rpc_server/srv_netlog.c index 7faf63205e..1b23cd835a 100644 --- a/source3/rpc_server/srv_netlog.c +++ b/source3/rpc_server/srv_netlog.c @@ -55,29 +55,7 @@ static bool proxy_netr_call(pipes_struct *p, uint8 opnum) static bool api_net_req_chal(pipes_struct *p) { - NET_Q_REQ_CHAL q_u; - NET_R_REQ_CHAL r_u; - prs_struct *data = &p->in_data.data; - prs_struct *rdata = &p->out_data.rdata; - - ZERO_STRUCT(q_u); - ZERO_STRUCT(r_u); - - /* grab the challenge... */ - if(!net_io_q_req_chal("", &q_u, data, 0)) { - DEBUG(0,("api_net_req_chal: Failed to unmarshall NET_Q_REQ_CHAL.\n")); - return False; - } - - r_u.status = _net_req_chal(p, &q_u, &r_u); - - /* store the response in the SMB stream */ - if(!net_io_r_req_chal("", &r_u, rdata, 0)) { - DEBUG(0,("api_net_req_chal: Failed to marshall NET_R_REQ_CHAL.\n")); - return False; - } - - return True; + return proxy_netr_call(p, NDR_NETR_SERVERREQCHALLENGE); } /************************************************************************* |