]> git.ipfire.org Git - thirdparty/krb5.git/commit
Refactor LDAP DB option parsing code
authorGreg Hudson <ghudson@mit.edu>
Tue, 29 Jan 2013 01:15:01 +0000 (20:15 -0500)
committerGreg Hudson <ghudson@mit.edu>
Tue, 29 Jan 2013 01:31:19 +0000 (20:31 -0500)
commit0b1dc2f93da4c860dd27f1ac997617b712dff383
tree42708b1e4393c9fe3f49969aefb8143844189533
parent2743fdee849be4a00a9ea72d601004c95b22dd56
Refactor LDAP DB option parsing code

krb5_ldap_open and krb5_ldap_create contain two large, almost
identical blocks of DB option processing code.  Factor it out into a
new function krb5_ldap_parse_db_params in ldap_misc.c, and simplify
the factored-out code.  Create a helper function to add server entries
and use it to simplify krb5_ldap_read_server_params as well as DB
option parsing.  Since the new DB option helper uses isspace instead
of isblank, we no longer require portability goop for isblank.
src/configure.in
src/plugins/kdb/ldap/libkdb_ldap/kdb_ldap.c
src/plugins/kdb/ldap/libkdb_ldap/kdb_ldap.h
src/plugins/kdb/ldap/libkdb_ldap/ldap_create.c
src/plugins/kdb/ldap/libkdb_ldap/ldap_misc.c
src/plugins/kdb/ldap/libkdb_ldap/ldap_misc.h
src/tests/t_kdb.py