1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

s4:ldap_server: s/private/private_data

metze
This commit is contained in:
Stefan Metzmacher 2009-02-02 09:31:38 +01:00
parent 2dc838341d
commit 0fadddf8d4
3 changed files with 12 additions and 12 deletions

View File

@ -100,9 +100,9 @@ struct ldapsrv_sasl_context {
struct socket_context *sasl_socket; struct socket_context *sasl_socket;
}; };
static void ldapsrv_set_sasl(void *private) static void ldapsrv_set_sasl(void *private_data)
{ {
struct ldapsrv_sasl_context *ctx = talloc_get_type(private, struct ldapsrv_sasl_context); struct ldapsrv_sasl_context *ctx = talloc_get_type(private_data, struct ldapsrv_sasl_context);
talloc_steal(ctx->conn->connection, ctx->sasl_socket); talloc_steal(ctx->conn->connection, ctx->sasl_socket);
talloc_unlink(ctx->conn->connection, ctx->conn->connection->socket); talloc_unlink(ctx->conn->connection, ctx->conn->connection->socket);

View File

@ -29,9 +29,9 @@ struct ldapsrv_starttls_context {
struct socket_context *tls_socket; struct socket_context *tls_socket;
}; };
static void ldapsrv_start_tls(void *private) static void ldapsrv_start_tls(void *private_data)
{ {
struct ldapsrv_starttls_context *ctx = talloc_get_type(private, struct ldapsrv_starttls_context); struct ldapsrv_starttls_context *ctx = talloc_get_type(private_data, struct ldapsrv_starttls_context);
talloc_steal(ctx->conn->connection, ctx->tls_socket); talloc_steal(ctx->conn->connection, ctx->tls_socket);
talloc_unlink(ctx->conn->connection, ctx->conn->connection->socket); talloc_unlink(ctx->conn->connection, ctx->conn->connection->socket);

View File

@ -55,9 +55,9 @@ void ldapsrv_terminate_connection(struct ldapsrv_connection *conn,
/* /*
handle packet errors handle packet errors
*/ */
static void ldapsrv_error_handler(void *private, NTSTATUS status) static void ldapsrv_error_handler(void *private_data, NTSTATUS status)
{ {
struct ldapsrv_connection *conn = talloc_get_type(private, struct ldapsrv_connection *conn = talloc_get_type(private_data,
struct ldapsrv_connection); struct ldapsrv_connection);
ldapsrv_terminate_connection(conn, nt_errstr(status)); ldapsrv_terminate_connection(conn, nt_errstr(status));
} }
@ -132,10 +132,10 @@ static void ldapsrv_process_message(struct ldapsrv_connection *conn,
/* /*
decode/process data decode/process data
*/ */
static NTSTATUS ldapsrv_decode(void *private, DATA_BLOB blob) static NTSTATUS ldapsrv_decode(void *private_data, DATA_BLOB blob)
{ {
NTSTATUS status; NTSTATUS status;
struct ldapsrv_connection *conn = talloc_get_type(private, struct ldapsrv_connection *conn = talloc_get_type(private_data,
struct ldapsrv_connection); struct ldapsrv_connection);
struct asn1_data *asn1 = asn1_init(conn); struct asn1_data *asn1 = asn1_init(conn);
struct ldap_message *msg = talloc(conn, struct ldap_message); struct ldap_message *msg = talloc(conn, struct ldap_message);
@ -170,9 +170,9 @@ static NTSTATUS ldapsrv_decode(void *private, DATA_BLOB blob)
static void ldapsrv_conn_idle_timeout(struct tevent_context *ev, static void ldapsrv_conn_idle_timeout(struct tevent_context *ev,
struct tevent_timer *te, struct tevent_timer *te,
struct timeval t, struct timeval t,
void *private) void *private_data)
{ {
struct ldapsrv_connection *conn = talloc_get_type(private, struct ldapsrv_connection); struct ldapsrv_connection *conn = talloc_get_type(private_data, struct ldapsrv_connection);
ldapsrv_terminate_connection(conn, "Timeout. No requests after bind"); ldapsrv_terminate_connection(conn, "Timeout. No requests after bind");
} }
@ -217,9 +217,9 @@ static void ldapsrv_send(struct stream_connection *c, uint16_t flags)
static void ldapsrv_conn_init_timeout(struct tevent_context *ev, static void ldapsrv_conn_init_timeout(struct tevent_context *ev,
struct tevent_timer *te, struct tevent_timer *te,
struct timeval t, struct timeval t,
void *private) void *private_data)
{ {
struct ldapsrv_connection *conn = talloc_get_type(private, struct ldapsrv_connection); struct ldapsrv_connection *conn = talloc_get_type(private_data, struct ldapsrv_connection);
ldapsrv_terminate_connection(conn, "Timeout. No requests after initial connection"); ldapsrv_terminate_connection(conn, "Timeout. No requests after initial connection");
} }