[PATCH] remove some dead prototypes
Günther Deschner
gd at samba.org
Wed May 10 08:25:45 UTC 2017
Hi,
please review and push.
Thanks,
Guenther
--
Günther Deschner GPG-ID: 8EE11688
Red Hat gdeschner at redhat.com
Samba Team gd at samba.org
-------------- next part --------------
From d8db1c454983bf297c282bb85ffa0d30ba5f9b59 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?G=C3=BCnther=20Deschner?= <gd at samba.org>
Date: Fri, 5 May 2017 15:21:03 +0200
Subject: [PATCH 01/14] s3-auth: remove some dead prototypes
Guenther
Signed-off-by: Guenther Deschner <gd at samba.org>
---
source3/auth/proto.h | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/source3/auth/proto.h b/source3/auth/proto.h
index 4a1aa24..3942815 100644
--- a/source3/auth/proto.h
+++ b/source3/auth/proto.h
@@ -99,7 +99,6 @@ NTSTATUS auth_builtin_init(TALLOC_CTX *mem_ctx);
/* The following definitions come from auth/auth_domain.c */
-void attempt_machine_password_change(void);
NTSTATUS auth_domain_init(TALLOC_CTX *mem_ctx);
/* The following definitions come from auth/auth_generic.c */
@@ -128,7 +127,6 @@ NTSTATUS auth3_generate_session_info(struct auth4_context *auth_context,
NTSTATUS auth3_get_challenge(struct auth4_context *auth4_context,
uint8_t chal[8]);
-bool auth3_may_set_challenge(struct auth4_context *auth4_context);
NTSTATUS auth3_set_challenge(struct auth4_context *auth4_context, const uint8_t *chal,
const char *challenge_set_by);
@@ -270,7 +268,6 @@ NTSTATUS make_server_info_wbcAuthUserInfo(TALLOC_CTX *mem_ctx,
const char *domain,
const struct wbcAuthUserInfo *info,
struct auth_serversupplied_info **server_info);
-void free_user_info(struct auth_usersupplied_info **user_info);
bool is_trusted_domain(const char* dom_name);
NTSTATUS session_extract_session_key(const struct auth_session_info *session_info, DATA_BLOB *session_key, enum session_key_use_intent intent);
@@ -292,7 +289,6 @@ NTSTATUS make_user_info(TALLOC_CTX *mem_ctx,
const struct samr_Password *nt_interactive_pwd,
const char *plaintext_password,
enum auth_password_state password_state);
-void free_user_info(struct auth_usersupplied_info **user_info);
NTSTATUS do_map_to_guest_server_info(TALLOC_CTX *mem_ctx,
NTSTATUS status,
@@ -333,10 +329,6 @@ NTSTATUS passwd_to_SamInfo3(TALLOC_CTX *mem_ctx,
struct netr_SamInfo3 *copy_netr_SamInfo3(TALLOC_CTX *mem_ctx,
const struct netr_SamInfo3 *orig);
-/* The following definitions come from auth/auth_wbc.c */
-
-NTSTATUS auth_wbc_init(void);
-
/* The following definitions come from auth/pampass.c */
bool smb_pam_claim_session(const char *user, const char *tty, const char *rhost);
@@ -349,7 +341,6 @@ bool smb_pam_passchange(const char *user, const char *rhost,
/* The following definitions come from auth/pass_check.c */
-void dfs_unlogin(void);
NTSTATUS pass_check(const struct passwd *pass,
const char *user,
const char *rhost,
--
2.9.3
From 2bf034041ef39b1672de1d4b5df45ad7092a577b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?G=C3=BCnther=20Deschner?= <gd at samba.org>
Date: Fri, 5 May 2017 15:37:31 +0200
Subject: [PATCH 02/14] s3-passdb: remove some dead prototypes
Guenther
Signed-off-by: Guenther Deschner <gd at samba.org>
---
source3/include/passdb.h | 5 -----
1 file changed, 5 deletions(-)
diff --git a/source3/include/passdb.h b/source3/include/passdb.h
index dcf806b..7579cdc 100644
--- a/source3/include/passdb.h
+++ b/source3/include/passdb.h
@@ -895,11 +895,6 @@ NTSTATUS pdb_lookup_rids(const struct dom_sid *domain_sid,
uint32_t *rids,
const char **names,
enum lsa_SidType *attrs);
-NTSTATUS pdb_lookup_names(const struct dom_sid *domain_sid,
- int num_names,
- const char **names,
- uint32_t *rids,
- enum lsa_SidType *attrs);
bool pdb_get_account_policy(enum pdb_policy_type type, uint32_t *value);
bool pdb_set_account_policy(enum pdb_policy_type type, uint32_t value);
bool pdb_get_seq_num(time_t *seq_num);
--
2.9.3
From e23bbb748432ec8476780292f4a424fed1330911 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?G=C3=BCnther=20Deschner?= <gd at samba.org>
Date: Fri, 5 May 2017 16:26:31 +0200
Subject: [PATCH 03/14] lib/krb5_samba: remove some dead prototypes
Guenther
Signed-off-by: Guenther Deschner <gd at samba.org>
---
lib/krb5_wrap/krb5_samba.h | 2 --
1 file changed, 2 deletions(-)
diff --git a/lib/krb5_wrap/krb5_samba.h b/lib/krb5_wrap/krb5_samba.h
index c921538..6927349 100644
--- a/lib/krb5_wrap/krb5_samba.h
+++ b/lib/krb5_wrap/krb5_samba.h
@@ -183,8 +183,6 @@ bool smb_krb5_get_smb_session_key(TALLOC_CTX *mem_ctx,
bool remote);
krb5_error_code smb_krb5_kt_free_entry(krb5_context context, krb5_keytab_entry *kt_entry);
-void kerberos_set_creds_enctype(krb5_creds *pcreds, int enctype);
-bool kerberos_compatible_enctypes(krb5_context context, krb5_enctype enctype1, krb5_enctype enctype2);
void smb_krb5_free_data_contents(krb5_context context, krb5_data *pdata);
krb5_error_code smb_krb5_renew_ticket(const char *ccache_string, const char *client_string, const char *service_string, time_t *expire_time);
krb5_error_code smb_krb5_gen_netbios_krb5_address(smb_krb5_addresses **kerb_addr,
--
2.9.3
From 413c16b3f0ba7fe58532e37bd13438576ed48586 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?G=C3=BCnther=20Deschner?= <gd at samba.org>
Date: Fri, 5 May 2017 18:08:02 +0200
Subject: [PATCH 04/14] s3-smbd: remove some dead prototypes
Guenther
Signed-off-by: Guenther Deschner <gd at samba.org>
---
source3/smbd/proto.h | 1 -
1 file changed, 1 deletion(-)
diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h
index 841a095..19abf7e 100644
--- a/source3/smbd/proto.h
+++ b/source3/smbd/proto.h
@@ -262,7 +262,6 @@ mode_t unix_mode(connection_struct *conn, int dosmode,
const char *inherit_from_dir);
uint32_t dos_mode_msdfs(connection_struct *conn,
const struct smb_filename *smb_fname);
-int dos_attributes_to_stat_dos_flags(uint32_t dosmode);
uint32_t dos_mode(connection_struct *conn, struct smb_filename *smb_fname);
int file_set_dosmode(connection_struct *conn, struct smb_filename *smb_fname,
uint32_t dosmode, const char *parent_dir, bool newfile);
--
2.9.3
From f8d06752952fd27d31922236075b191e9072fede Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?G=C3=BCnther=20Deschner?= <gd at samba.org>
Date: Fri, 5 May 2017 18:11:28 +0200
Subject: [PATCH 05/14] s3-winbindd: remove some dead prototypes
Guenther
Signed-off-by: Guenther Deschner <gd at samba.org>
---
source3/winbindd/winbindd_proto.h | 28 ----------------------------
1 file changed, 28 deletions(-)
diff --git a/source3/winbindd/winbindd_proto.h b/source3/winbindd/winbindd_proto.h
index b8d8baa..ebd9b44 100644
--- a/source3/winbindd/winbindd_proto.h
+++ b/source3/winbindd/winbindd_proto.h
@@ -580,34 +580,6 @@ struct tevent_req *winbindd_lookupname_send(TALLOC_CTX *mem_ctx,
NTSTATUS winbindd_lookupname_recv(struct tevent_req *req,
struct winbindd_response *response);
-struct tevent_req *winbindd_sid_to_uid_send(TALLOC_CTX *mem_ctx,
- struct tevent_context *ev,
- struct winbindd_cli_state *cli,
- struct winbindd_request *request);
-NTSTATUS winbindd_sid_to_uid_recv(struct tevent_req *req,
- struct winbindd_response *response);
-
-struct tevent_req *winbindd_sid_to_gid_send(TALLOC_CTX *mem_ctx,
- struct tevent_context *ev,
- struct winbindd_cli_state *cli,
- struct winbindd_request *request);
-NTSTATUS winbindd_sid_to_gid_recv(struct tevent_req *req,
- struct winbindd_response *response);
-
-struct tevent_req *winbindd_uid_to_sid_send(TALLOC_CTX *mem_ctx,
- struct tevent_context *ev,
- struct winbindd_cli_state *cli,
- struct winbindd_request *request);
-NTSTATUS winbindd_uid_to_sid_recv(struct tevent_req *req,
- struct winbindd_response *response);
-
-struct tevent_req *winbindd_gid_to_sid_send(TALLOC_CTX *mem_ctx,
- struct tevent_context *ev,
- struct winbindd_cli_state *cli,
- struct winbindd_request *request);
-NTSTATUS winbindd_gid_to_sid_recv(struct tevent_req *req,
- struct winbindd_response *response);
-
struct tevent_req *winbindd_allocate_uid_send(TALLOC_CTX *mem_ctx,
struct tevent_context *ev,
struct winbindd_cli_state *cli,
--
2.9.3
From 49c65ed1360a865fb535f7ff098b1b92f8c6e776 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?G=C3=BCnther=20Deschner?= <gd at samba.org>
Date: Fri, 5 May 2017 18:12:56 +0200
Subject: [PATCH 06/14] s3-lib: remove some dead prototypes
Guenther
Signed-off-by: Guenther Deschner <gd at samba.org>
---
source3/lib/id_cache.h | 6 ------
1 file changed, 6 deletions(-)
diff --git a/source3/lib/id_cache.h b/source3/lib/id_cache.h
index 53731b5..e77486e 100644
--- a/source3/lib/id_cache.h
+++ b/source3/lib/id_cache.h
@@ -38,9 +38,3 @@ void id_cache_delete_message(struct messaging_context *msg_ctx,
uint32_t msg_type,
struct server_id server_id,
DATA_BLOB* data);
-
-void id_cache_flush_message(struct messaging_context *msg_ctx,
- void* private_data,
- uint32_t msg_type,
- struct server_id server_id,
- DATA_BLOB* data);
--
2.9.3
From ffacec885ddf8c94afb65e233c8418a12481a311 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?G=C3=BCnther=20Deschner?= <gd at samba.org>
Date: Fri, 5 May 2017 18:14:29 +0200
Subject: [PATCH 07/14] s3-libsmb: remove some dead prototype
Guenther
Signed-off-by: Guenther Deschner <gd at samba.org>
---
source3/libsmb/proto.h | 1 -
1 file changed, 1 deletion(-)
diff --git a/source3/libsmb/proto.h b/source3/libsmb/proto.h
index b453733..c5e28ef 100644
--- a/source3/libsmb/proto.h
+++ b/source3/libsmb/proto.h
@@ -181,7 +181,6 @@ bool cli_check_msdfs_proxy(TALLOC_CTX *ctx,
int cli_set_message(char *buf,int num_words,int num_bytes,bool zero);
unsigned int cli_set_timeout(struct cli_state *cli, unsigned int timeout);
bool cli_set_backup_intent(struct cli_state *cli, bool flag);
-void cli_setup_packet_buf(struct cli_state *cli, char *buf);
extern struct GUID cli_state_client_guid;
struct cli_state *cli_state_create(TALLOC_CTX *mem_ctx,
int fd,
--
2.9.3
From 01ca2303829c8bc6d703cc31e4c0c40992c2abe3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?G=C3=BCnther=20Deschner?= <gd at samba.org>
Date: Tue, 9 May 2017 11:19:00 +0200
Subject: [PATCH 08/14] s3-proto: remove some dead prototypes
Guenther
Signed-off-by: Guenther Deschner <gd at samba.org>
---
source3/include/proto.h | 11 -----------
1 file changed, 11 deletions(-)
diff --git a/source3/include/proto.h b/source3/include/proto.h
index bb40056..4e7a431 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -243,14 +243,6 @@ void sys_srandom(unsigned int seed);
int groups_max(void);
int sys_getgroups(int setlen, gid_t *gidset);
int sys_setgroups(gid_t UNUSED(primary_gid), int setlen, gid_t *gidset);
-ssize_t sys_getxattr (const char *path, const char *name, void *value, size_t size);
-ssize_t sys_fgetxattr (int filedes, const char *name, void *value, size_t size);
-ssize_t sys_listxattr (const char *path, char *list, size_t size);
-ssize_t sys_flistxattr (int filedes, char *list, size_t size);
-int sys_removexattr (const char *path, const char *name);
-int sys_fremovexattr (int filedes, const char *name);
-int sys_setxattr (const char *path, const char *name, const void *value, size_t size, int flags);
-int sys_fsetxattr (int filedes, const char *name, const void *value, size_t size, int flags);
uint32_t unix_dev_major(SMB_DEV_T dev);
uint32_t unix_dev_minor(SMB_DEV_T dev);
char *sys_realpath(const char *path);
@@ -363,8 +355,6 @@ char *get_mydnsdomname(TALLOC_CTX *ctx);
char *automount_lookup(TALLOC_CTX *ctx, const char *user_name);
char *automount_lookup(TALLOC_CTX *ctx, const char *user_name);
bool process_exists(const struct server_id pid);
-bool processes_exist(const struct server_id *pids, int num_pids,
- bool *results);
const char *uidtoname(uid_t uid);
char *gidtoname(gid_t gid);
uid_t nametouid(const char *name);
@@ -433,7 +423,6 @@ bool map_open_params_to_ntcreate(const char *smb_base_fname,
uint32_t *pprivate_flags);
struct security_unix_token *copy_unix_token(TALLOC_CTX *ctx, const struct security_unix_token *tok);
bool dir_check_ftype(uint32_t mode, uint32_t dirtype);
-void init_modules(void);
/* The following definitions come from lib/util_builtin.c */
--
2.9.3
From 11df7fc6d9be5f1f17fd241bb78f49818804ef6f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?G=C3=BCnther=20Deschner?= <gd at samba.org>
Date: Wed, 10 May 2017 09:28:40 +0200
Subject: [PATCH 09/14] s3-rpc_server: remove some dead prototypes
Guenther
Signed-off-by: Guenther Deschner <gd at samba.org>
---
source3/rpc_server/rpc_service_setup.h | 24 ------------------------
1 file changed, 24 deletions(-)
diff --git a/source3/rpc_server/rpc_service_setup.h b/source3/rpc_server/rpc_service_setup.h
index da89cbc..7613ff3 100644
--- a/source3/rpc_server/rpc_service_setup.h
+++ b/source3/rpc_server/rpc_service_setup.h
@@ -25,30 +25,6 @@
struct ndr_interface_table;
struct rpc_srv_callbacks;
-/**
- * @brief Register an endpoint at the endpoint mapper.
- *
- * This just sets up a register and monitor loop to try to regsiter the
- * endpoint at the endpoint mapper.
- *
- * @param[in] ev_ctx The event context to setup the loop.
- *
- * @param[in] msg_ctx The messaging context to use for the connnection.
- *
- * @param[in] iface The interface table to register.
- *
- * @param[in] ncalrpc The name of the ncalrpc pipe or NULL.
- *
- * @param[in] port The tcpip port or 0.
- *
- * @return NT_STATUS_OK on success or a corresponding error code.
- */
-NTSTATUS rpc_ep_setup_register(struct tevent_context *ev_ctx,
- struct messaging_context *msg_ctx,
- const struct ndr_interface_table *iface,
- const char *ncalrpc,
- uint16_t port);
-
bool dcesrv_ep_setup(struct tevent_context *ev_ctx,
struct messaging_context *msg_ctx);
--
2.9.3
From 1325c243e074ab954771baf54a90384f3ddced96 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?G=C3=BCnther=20Deschner?= <gd at samba.org>
Date: Wed, 10 May 2017 09:28:53 +0200
Subject: [PATCH 10/14] s4-rpc_server: remove some dead prototypes
Guenther
Signed-off-by: Guenther Deschner <gd at samba.org>
---
source4/rpc_server/dcerpc_server.h | 2 --
1 file changed, 2 deletions(-)
diff --git a/source4/rpc_server/dcerpc_server.h b/source4/rpc_server/dcerpc_server.h
index ecb874e..89377ab 100644
--- a/source4/rpc_server/dcerpc_server.h
+++ b/source4/rpc_server/dcerpc_server.h
@@ -405,9 +405,7 @@ struct dcesrv_handle *dcesrv_handle_fetch(
struct dcesrv_connection_context *context,
struct policy_handle *p,
uint8_t handle_type);
-struct socket_address *dcesrv_connection_get_my_addr(struct dcesrv_connection *conn, TALLOC_CTX *mem_ctx);
-struct socket_address *dcesrv_connection_get_peer_addr(struct dcesrv_connection *conn, TALLOC_CTX *mem_ctx);
const struct tsocket_address *dcesrv_connection_get_local_address(struct dcesrv_connection *conn);
const struct tsocket_address *dcesrv_connection_get_remote_address(struct dcesrv_connection *conn);
--
2.9.3
From deea79a9814a777e637b07dd523a132ca6549b4b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?G=C3=BCnther=20Deschner?= <gd at samba.org>
Date: Wed, 10 May 2017 09:32:06 +0200
Subject: [PATCH 11/14] s4-auth: remove some dead prototypes
Guenther
Signed-off-by: Guenther Deschner <gd at samba.org>
---
source4/auth/auth.h | 7 -------
1 file changed, 7 deletions(-)
diff --git a/source4/auth/auth.h b/source4/auth/auth.h
index 0a691cf..066703d 100644
--- a/source4/auth/auth.h
+++ b/source4/auth/auth.h
@@ -178,15 +178,8 @@ NTSTATUS auth_check_password_recv(struct tevent_req *req,
struct auth_user_info_dc **user_info_dc,
uint8_t *pauthoritative);
-bool auth_challenge_may_be_modified(struct auth4_context *auth_ctx);
NTSTATUS auth_context_set_challenge(struct auth4_context *auth_ctx, const uint8_t chal[8], const char *set_by);
-NTSTATUS auth_get_user_info_dc_principal(TALLOC_CTX *mem_ctx,
- struct auth4_context *auth_ctx,
- const char *principal,
- struct ldb_dn *user_dn,
- struct auth_user_info_dc **user_info_dc);
-
NTSTATUS samba_server_gensec_start(TALLOC_CTX *mem_ctx,
struct tevent_context *event_ctx,
struct imessaging_context *msg_ctx,
--
2.9.3
From d29698bd29737ce2d8f43f2faaab869d102a3c80 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?G=C3=BCnther=20Deschner?= <gd at samba.org>
Date: Wed, 10 May 2017 09:33:47 +0200
Subject: [PATCH 12/14] s4-libcli: remove some dead prototypes
Guenther
Signed-off-by: Guenther Deschner <gd at samba.org>
---
source4/libcli/raw/libcliraw.h | 1 -
1 file changed, 1 deletion(-)
diff --git a/source4/libcli/raw/libcliraw.h b/source4/libcli/raw/libcliraw.h
index 96dfcd4..df0690f 100644
--- a/source4/libcli/raw/libcliraw.h
+++ b/source4/libcli/raw/libcliraw.h
@@ -272,7 +272,6 @@ struct smbcli_request *smb_raw_read_send(struct smbcli_tree *tree, union smb_rea
NTSTATUS smb_raw_trans_recv(struct smbcli_request *req,
TALLOC_CTX *mem_ctx,
struct smb_trans2 *parms);
-size_t smb_raw_max_trans_data(struct smbcli_tree *tree, size_t param_size);
struct smbcli_request *smb_raw_trans_send(struct smbcli_tree *tree, struct smb_trans2 *parms);
NTSTATUS smbcli_request_destroy(struct smbcli_request *req);
struct smbcli_request *smb_raw_write_send(struct smbcli_tree *tree, union smb_write *parms);
--
2.9.3
From ef080f450b7f83a298087a2c6cf07bb75b1d4c1f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?G=C3=BCnther=20Deschner?= <gd at samba.org>
Date: Wed, 10 May 2017 09:34:33 +0200
Subject: [PATCH 13/14] s4-lib/policy: remove some dead prototypes
Guenther
Signed-off-by: Guenther Deschner <gd at samba.org>
---
source4/lib/policy/policy.h | 2 --
1 file changed, 2 deletions(-)
diff --git a/source4/lib/policy/policy.h b/source4/lib/policy/policy.h
index fd26e59..3d8a0dc 100644
--- a/source4/lib/policy/policy.h
+++ b/source4/lib/policy/policy.h
@@ -89,8 +89,6 @@ NTSTATUS gp_get_gplinks(struct gp_context *gp_ctx, const char *req_dn, struct gp
NTSTATUS gp_list_gpos(struct gp_context *gp_ctx, struct security_token *token, const char ***ret);
NTSTATUS gp_get_gpo_info(struct gp_context *gp_ctx, const char *dn_str, struct gp_object **ret);
-NTSTATUS gp_set_gpo_info(struct gp_context *gp_ctx, const char *dn_str, struct gp_object *gpo);
-NTSTATUS gp_del_gpo(struct gp_context *gp_ctx, const char *dn_str);
NTSTATUS gp_get_gplink_options(TALLOC_CTX *mem_ctx, uint32_t flags, const char ***ret);
--
2.9.3
From dd4acb021884d4c60e980382829788298c82e353 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?G=C3=BCnther=20Deschner?= <gd at samba.org>
Date: Wed, 10 May 2017 10:05:59 +0200
Subject: [PATCH 14/14] s3-lib/idmap_cache: remove some dead prototypes
Guenther
Signed-off-by: Guenther Deschner <gd at samba.org>
---
source3/lib/idmap_cache.h | 1 -
1 file changed, 1 deletion(-)
diff --git a/source3/lib/idmap_cache.h b/source3/lib/idmap_cache.h
index 5b8586f..dc49702 100644
--- a/source3/lib/idmap_cache.h
+++ b/source3/lib/idmap_cache.h
@@ -35,7 +35,6 @@ void idmap_cache_set_sid2unixid(const struct dom_sid *sid, struct unixid *unix_i
bool idmap_cache_del_uid(uid_t uid);
bool idmap_cache_del_gid(gid_t gid);
-bool idmap_cache_del_both(uid_t uid);
bool idmap_cache_del_sid(const struct dom_sid *sid);
#endif /* _LIB_IDMAP_CACHE_H_ */
--
2.9.3
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 201 bytes
Desc: OpenPGP digital signature
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20170510/dac222f9/signature.sig>
More information about the samba-technical
mailing list