diff options
author | Andreas Schneider <asn@redhat.com> | 2009-12-16 16:12:13 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2009-12-16 20:28:38 +0100 |
commit | ac2d31e24cfa24f6674b645b3661a1a2ce9ab060 (patch) | |
tree | 5327638efd2af52b7266a3b3e241fb3829eacd10 | |
parent | 8ca88042f0f4dae9f0207ec5de3074f26a2ef9cb (diff) | |
download | samba-ac2d31e24cfa24f6674b645b3661a1a2ce9ab060.tar.gz samba-ac2d31e24cfa24f6674b645b3661a1a2ce9ab060.tar.bz2 samba-ac2d31e24cfa24f6674b645b3661a1a2ce9ab060.zip |
s4-gensec: Replace gensec_set_peer_addr with new tsocket based fn.
-rw-r--r-- | source4/auth/gensec/gensec.c | 9 | ||||
-rw-r--r-- | source4/auth/gensec/gensec.h | 2 | ||||
-rw-r--r-- | source4/kdc/kpasswdd.c | 2 |
3 files changed, 1 insertions, 12 deletions
diff --git a/source4/auth/gensec/gensec.c b/source4/auth/gensec/gensec.c index d6acb262dc..603a956442 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_peer_addr(struct gensec_security *gensec_security, struct socket_address *peer_addr) -{ - gensec_security->peer_addr = peer_addr; - if (peer_addr && !talloc_reference(gensec_security, peer_addr)) { - return NT_STATUS_NO_MEMORY; - } - return NT_STATUS_OK; -} - _PUBLIC_ struct socket_address *gensec_get_peer_addr(struct gensec_security *gensec_security) { if (gensec_security->peer_addr) { diff --git a/source4/auth/gensec/gensec.h b/source4/auth/gensec/gensec.h index 2baf1eabd3..fe628bbbe9 100644 --- a/source4/auth/gensec/gensec.h +++ b/source4/auth/gensec/gensec.h @@ -298,8 +298,6 @@ NTSTATUS gensec_set_remote_address(struct gensec_security *gensec_security, const struct tsocket_address *gensec_get_local_address(struct gensec_security *gensec_security); 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_start_mech_by_name(struct gensec_security *gensec_security, const char *name); diff --git a/source4/kdc/kpasswdd.c b/source4/kdc/kpasswdd.c index 586dd1304b..9b3336a7a1 100644 --- a/source4/kdc/kpasswdd.c +++ b/source4/kdc/kpasswdd.c @@ -524,7 +524,7 @@ bool kpasswdd_process(struct kdc_server *kdc, * older MIT clients need this, we might have to insert more * complex code */ - nt_status = gensec_set_peer_addr(gensec_security, peer_addr); + nt_status = gensec_set_local_address(gensec_security, peer_addr); if (!NT_STATUS_IS_OK(nt_status)) { talloc_free(tmp_ctx); return false; |