summaryrefslogtreecommitdiff
path: root/source4/auth
diff options
context:
space:
mode:
authorAndreas Schneider <asn@redhat.com>2009-12-16 15:52:30 +0100
committerStefan Metzmacher <metze@samba.org>2009-12-16 20:28:38 +0100
commit226a9db2d9e0e15c14fb286761bff68253028a0c (patch)
treec3450e989b356428e3add85150a9179f8e34d2c7 /source4/auth
parent743e6363d54cf45a14de517e297faaa8258caaec (diff)
downloadsamba-226a9db2d9e0e15c14fb286761bff68253028a0c.tar.gz
samba-226a9db2d9e0e15c14fb286761bff68253028a0c.tar.bz2
samba-226a9db2d9e0e15c14fb286761bff68253028a0c.zip
s4-gensec: Replace gensec_set_my_addr() with new tsocket based fn.
Diffstat (limited to 'source4/auth')
-rw-r--r--source4/auth/gensec/gensec.c9
-rw-r--r--source4/auth/gensec/gensec.h1
2 files changed, 0 insertions, 10 deletions
diff --git a/source4/auth/gensec/gensec.c b/source4/auth/gensec/gensec.c
index 7e6a552ef7..e1680c9c89 100644
--- a/source4/auth/gensec/gensec.c
+++ b/source4/auth/gensec/gensec.c
@@ -1280,15 +1280,6 @@ _PUBLIC_ const struct tsocket_address *gensec_get_remote_address(struct gensec_s
return gensec_security->remote_addr;
}
-_PUBLIC_ NTSTATUS gensec_set_my_addr(struct gensec_security *gensec_security, struct socket_address *my_addr)
-{
- gensec_security->my_addr = my_addr;
- if (my_addr && !talloc_reference(gensec_security, my_addr)) {
- return NT_STATUS_NO_MEMORY;
- }
- return NT_STATUS_OK;
-}
-
_PUBLIC_ NTSTATUS gensec_set_peer_addr(struct gensec_security *gensec_security, struct socket_address *peer_addr)
{
gensec_security->peer_addr = peer_addr;
diff --git a/source4/auth/gensec/gensec.h b/source4/auth/gensec/gensec.h
index 6fed4b6d80..2baf1eabd3 100644
--- a/source4/auth/gensec/gensec.h
+++ b/source4/auth/gensec/gensec.h
@@ -299,7 +299,6 @@ const struct tsocket_address *gensec_get_local_address(struct gensec_security *g
const struct tsocket_address *gensec_get_remote_address(struct gensec_security *gensec_security);
NTSTATUS gensec_set_peer_addr(struct gensec_security *gensec_security, struct socket_address *peer_addr);
-NTSTATUS gensec_set_my_addr(struct gensec_security *gensec_security, struct socket_address *my_addr);
NTSTATUS gensec_start_mech_by_name(struct gensec_security *gensec_security,
const char *name);