summaryrefslogtreecommitdiffstats
path: root/src/util/sss_ldap.c
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2011-07-01 16:57:28 +0200
committerStephen Gallagher <sgallagh@redhat.com>2011-07-11 16:52:52 -0400
commit2e1973b90ea87b343d39fef1f6393cc201989ecd (patch)
tree0a3849264e36ac94b3c336ab5f69dc7032dc8479 /src/util/sss_ldap.c
parentd9e5e97c90b31b84c3abf6e7ce92176afa950f61 (diff)
downloadsssd_unused-2e1973b90ea87b343d39fef1f6393cc201989ecd.tar.gz
sssd_unused-2e1973b90ea87b343d39fef1f6393cc201989ecd.tar.xz
sssd_unused-2e1973b90ea87b343d39fef1f6393cc201989ecd.zip
Move IP adress escaping from the LDAP namespace
Diffstat (limited to 'src/util/sss_ldap.c')
-rw-r--r--src/util/sss_ldap.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/util/sss_ldap.c b/src/util/sss_ldap.c
index 1394b4d6..601885b4 100644
--- a/src/util/sss_ldap.c
+++ b/src/util/sss_ldap.c
@@ -18,7 +18,6 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <stdlib.h>
-#include <netdb.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/socket.h>
@@ -93,13 +92,6 @@ int sss_ldap_control_create(const char *oid, int iscritical,
#endif
}
-inline const char *
-sss_ldap_escape_ip_address(TALLOC_CTX *mem_ctx, int family, const char *addr)
-{
- return family == AF_INET6 ? talloc_asprintf(mem_ctx, "[%s]", addr) :
- talloc_strdup(mem_ctx, addr);
-}
-
#ifdef HAVE_LDAP_INIT_FD
struct sdap_async_sys_connect_state {
long old_flags;