CVS update: samba/source/samrd
Luke Leighton
lkcl at samba.org
Fri Aug 18 16:26:39 EST 2000
Date: Friday August 18, 2000 @ 16:26
Author: lkcl
Update of /data/cvs/samba/source/samrd
In directory samba:/tmp/cvs-serv2915/samrd
Modified Files:
Tag: SAMBA_TNG
srv_samr_dom_tdb.c srv_samr_sam_tdb.c
Log Message:
- created cli_connect_api:
typedef void *cli_rpc_info; /* peter samuelson's idea */
typedef struct cli_connect_fns
{
/* create new connection. strictly speaking, one arg should be
* full dce/rpc format: e.g "ncacn_np:\\server\pipe\pipename" */
cli_rpc_info *cli_connect_add(const char *pipe_name,
const vuser_key *key,
const char *srv_name,
const struct ntuser_creds *ntc,
BOOL reuse, BOOL *is_new_connection);
/* terminate client connection */
void cli_connection_free(cli_rpc_info *con);
/* get nt creds associated with an msrpc session. */
struct ntdom_info *cli_conn_get_ntinfo(cli_rpc_info *con);
/* get a server name associated with a connection */
const char *cli_con_get_srvname(cli_rpc_info *con);
/* write full PDU to a pipe */
BOOL rpc_api_write(cli_rpc_info *con, prs_struct *data);
/* read full PDU from a pipe */
BOOL rpc_api_rcv_pdu(cli_rpc_info *con, prs_struct *rdata);
/* detect dead servers. The fd is set to -1 when we get an error */
BOOL rpc_con_ok(cli_rpc_info *con);
/* write full PDU and read full PDU to a pipe */
BOOL rpc_api_send_rcv_pdu(cli_rpc_info *con, prs_struct *data,
prs_struct *rdata);
} cli_connect_fns;
- fixed memory leaks (sander!!!) due to change in semantics of prs_create()
which *used* to "take over" the memory passed to it, but now copies mem
into an smc_alloc buffer.
- getfileline() causing problems on zero-length lines and zero-length files.
More information about the samba-cvs
mailing list