summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-07-15 16:49:21 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-07-20 09:17:11 +1000
commit058f5e60c5e3a9ac91a1d28b3165f84252cfecad (patch)
tree15ad77ac444aa8153435a36208806bf0ac68c033 /source3
parentec5f1b78affbbd56c787696cb6f63a547be2cc25 (diff)
downloadsamba-058f5e60c5e3a9ac91a1d28b3165f84252cfecad.tar.gz
samba-058f5e60c5e3a9ac91a1d28b3165f84252cfecad.tar.bz2
samba-058f5e60c5e3a9ac91a1d28b3165f84252cfecad.zip
s3-auth remove unused copy_serverinfo
Signed-off-by: Andrew Tridgell <tridge@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/auth/auth_util.c59
-rw-r--r--source3/auth/proto.h2
2 files changed, 0 insertions, 61 deletions
diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c
index da84e0a424..6a4e71f77e 100644
--- a/source3/auth/auth_util.c
+++ b/source3/auth/auth_util.c
@@ -909,65 +909,6 @@ NTSTATUS make_session_info_from_username(TALLOC_CTX *mem_ctx,
}
-struct auth_serversupplied_info *copy_serverinfo(TALLOC_CTX *mem_ctx,
- const struct auth_serversupplied_info *src)
-{
- struct auth_serversupplied_info *dst;
-
- dst = make_server_info(mem_ctx);
- if (dst == NULL) {
- return NULL;
- }
-
- dst->guest = src->guest;
- dst->system = src->system;
- dst->utok.uid = src->utok.uid;
- dst->utok.gid = src->utok.gid;
- dst->utok.ngroups = src->utok.ngroups;
- if (src->utok.ngroups != 0) {
- dst->utok.groups = (gid_t *)talloc_memdup(
- dst, src->utok.groups,
- sizeof(gid_t)*dst->utok.ngroups);
- } else {
- dst->utok.groups = NULL;
- }
-
- if (src->security_token) {
- dst->security_token = dup_nt_token(dst, src->security_token);
- if (!dst->security_token) {
- TALLOC_FREE(dst);
- return NULL;
- }
- }
-
- dst->session_key = data_blob_talloc( dst, src->session_key.data,
- src->session_key.length);
-
- dst->lm_session_key = data_blob_talloc(dst, src->lm_session_key.data,
- src->lm_session_key.length);
-
- dst->info3 = copy_netr_SamInfo3(dst, src->info3);
- if (!dst->info3) {
- TALLOC_FREE(dst);
- return NULL;
- }
- dst->extra = src->extra;
-
- dst->unix_name = talloc_strdup(dst, src->unix_name);
- if (!dst->unix_name) {
- TALLOC_FREE(dst);
- return NULL;
- }
-
- dst->sanitized_username = talloc_strdup(dst, src->sanitized_username);
- if (!dst->sanitized_username) {
- TALLOC_FREE(dst);
- return NULL;
- }
-
- return dst;
-}
-
static struct auth_serversupplied_info *copy_session_info_serverinfo(TALLOC_CTX *mem_ctx,
const struct auth3_session_info *src)
{
diff --git a/source3/auth/proto.h b/source3/auth/proto.h
index 9f497a48e3..f1a0b14a90 100644
--- a/source3/auth/proto.h
+++ b/source3/auth/proto.h
@@ -166,8 +166,6 @@ NTSTATUS make_session_info_from_username(TALLOC_CTX *mem_ctx,
const char *username,
bool is_guest,
struct auth3_session_info **session_info);
-struct auth_serversupplied_info *copy_serverinfo(TALLOC_CTX *mem_ctx,
- const struct auth_serversupplied_info *src);
struct auth3_session_info *copy_session_info(TALLOC_CTX *mem_ctx,
const struct auth3_session_info *src);
bool init_guest_info(void);