mirror of
https://github.com/samba-team/samba.git
synced 2025-02-25 17:57:42 +03:00
s4:kdc: expose a sdb_entry_free() function
We'll remove sdb_entry_ex soon. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
f8d9cdb5ff
commit
c95a0bca5f
@ -27,11 +27,9 @@
|
||||
#include "samba_kdc.h"
|
||||
#include "lib/krb5_wrap/krb5_samba.h"
|
||||
|
||||
static void free_sdb_entry(struct sdb_entry *s);
|
||||
|
||||
void sdb_free_entry(struct sdb_entry_ex *ent)
|
||||
{
|
||||
free_sdb_entry(&ent->entry);
|
||||
sdb_entry_free(&ent->entry);
|
||||
ZERO_STRUCTP(ent);
|
||||
}
|
||||
|
||||
@ -72,7 +70,7 @@ void sdb_keys_free(struct sdb_keys *keys)
|
||||
ZERO_STRUCTP(keys);
|
||||
}
|
||||
|
||||
static void free_sdb_entry(struct sdb_entry *s)
|
||||
void sdb_entry_free(struct sdb_entry *s)
|
||||
{
|
||||
if (s->skdc_entry != NULL) {
|
||||
s->skdc_entry->db_entry = NULL;
|
||||
|
@ -131,6 +131,7 @@ struct sdb_entry_ex {
|
||||
void sdb_free_entry(struct sdb_entry_ex *e);
|
||||
void sdb_key_free(struct sdb_key *key);
|
||||
void sdb_keys_free(struct sdb_keys *keys);
|
||||
void sdb_entry_free(struct sdb_entry *e);
|
||||
struct SDBFlags int2SDBFlags(unsigned n);
|
||||
|
||||
#endif /* _KDC_SDB_H_ */
|
||||
|
Loading…
x
Reference in New Issue
Block a user