Skip Menu |
 

From: ghudson@mit.edu
Subject: git commit
Download (untitled) / with headers
text/plain 1.6KiB

Use library malloc for principal, policy entries

Alter the KDB module contract to require that KDB modules use an
allocator compatible with the malloc() seen by libkrb5 and libkdb5.
Change krb5_db_alloc() and krb5_db_free() to provide access to this
allocator. Remove free_principal, free_policy, alloc, and free from
the KDB interface and from all in-tree KDB modules.

https://github.com/krb5/krb5/commit/03d34fcfa329fbc2f686a0b34e2731e37f483a34
Author: Greg Hudson <ghudson@mit.edu>
Commit: 03d34fcfa329fbc2f686a0b34e2731e37f483a34
Branch: master
src/include/kdb.h | 40 +++++----------
src/lib/kdb/kdb5.c | 53 ++++++++++---------
src/plugins/kdb/db2/db2_exp.c | 11 ----
src/plugins/kdb/db2/kdb_db2.c | 23 +--------
src/plugins/kdb/db2/kdb_db2.h | 4 --
src/plugins/kdb/db2/kdb_xdr.c | 35 +-------------
src/plugins/kdb/db2/lockout.c | 2 +-
src/plugins/kdb/ldap/ldap_exp.c | 4 --
src/plugins/kdb/ldap/libkdb_ldap/ldap_principal.c | 13 +----
src/plugins/kdb/ldap/libkdb_ldap/ldap_principal.h | 2 -
src/plugins/kdb/ldap/libkdb_ldap/ldap_principal2.c | 2 +-
src/plugins/kdb/ldap/libkdb_ldap/ldap_pwd_policy.c | 17 +------
src/plugins/kdb/ldap/libkdb_ldap/ldap_pwd_policy.h | 3 -
.../kdb/ldap/libkdb_ldap/libkdb_ldap.exports | 4 --
src/plugins/kdb/ldap/libkdb_ldap/lockout.c | 2 +-
src/plugins/kdb/test/kdb_test.c | 46 -----------------
16 files changed, 52 insertions(+), 209 deletions(-)
From: ghudson@mit.edu
Subject: git commit
Download (untitled) / with headers
text/plain 1.1KiB

Simplify principal and policy manipulation code

Now that principal entry and policy fields are allocated using the
malloc visible to the krb5 libraries, we don't need to use
krb5_db_alloc() and krb5_db_free() when modifying them within our
code.

https://github.com/krb5/krb5/commit/d0168227a062bc70b1ec04295cdaa512c33c2233
Author: Greg Hudson <ghudson@mit.edu>
Commit: d0168227a062bc70b1ec04295cdaa512c33c2233
Branch: master
src/kadmin/dbutil/dump.c | 3 +-
src/kadmin/dbutil/kdb5_create.c | 3 +-
src/lib/kadm5/srv/svr_policy.c | 8 +--
src/lib/kadm5/srv/svr_principal.c | 106 +++-------------------
src/lib/kdb/encrypt_key.c | 11 +--
src/lib/kdb/kdb5.c | 71 ++++++---------
src/lib/kdb/kdb_convert.c | 3 +-
src/lib/kdb/kdb_cpw.c | 103 +++++----------------
src/lib/kdb/t_stringattr.c | 3 +-
src/plugins/kdb/ldap/ldap_util/kdb5_ldap_realm.c | 14 +---
src/tests/create/kdb5_mkdums.c | 3 +-
11 files changed, 75 insertions(+), 253 deletions(-)