krb5_db_entry *entries,
int *nentries,
krb5_boolean *more );
-krb5_error_code krb5_db_free_principal ( krb5_context kcontext,
- krb5_db_entry *entry,
- int count );
+void krb5_db_free_principal ( krb5_context kcontext, krb5_db_entry *entry,
+ int count );
krb5_error_code krb5_db_put_principal ( krb5_context kcontext,
krb5_db_entry *entries,
int *nentries);
krb5_error_code krb5_db_get_mkey_list( krb5_context kcontext,
krb5_keylist_node ** keylist);
-krb5_error_code krb5_db_free_master_key ( krb5_context kcontext,
- krb5_keyblock *key );
krb5_error_code krb5_db_store_master_key ( krb5_context kcontext,
char *keyfile,
krb5_principal mname,
krb5_kvno mkvno,
krb5_keylist_node **mkeys_list );
-krb5_error_code
+void
krb5_db_free_mkey_list( krb5_context context,
krb5_keylist_node *mkey_list );
* allocate associated memory); thus, a plugin must allocate each field
* of a principal entry separately.
*/
- krb5_error_code (*free_principal)(krb5_context kcontext,
- krb5_db_entry *entry, int count);
+ void (*free_principal)(krb5_context kcontext, krb5_db_entry *entry,
+ int count);
/*
* Optional: Create or modify one or more principal entries. All callers
more);
}
-krb5_error_code
+void
krb5_db_free_principal(krb5_context kcontext, krb5_db_entry * entry, int count)
{
krb5_error_code status = 0;
status = get_vftabl(kcontext, &v);
if (status)
- return status;
- if (v->free_principal == NULL)
- return KRB5_KDB_DBTYPE_NOSUP;
- return v->free_principal(kcontext, entry, count);
+ return;
+ v->free_principal(kcontext, entry, count);
}
static void
return v->fetch_master_key_list(context, mname, mkey, mkvno, mkey_list);
}
-krb5_error_code
+void
krb5_db_free_mkey_list(krb5_context context,
krb5_keylist_node *mkey_list)
{
krb5_free_keyblock_contents(context, &prev->keyblock);
krb5_xfree(prev);
}
-
- return 0;
}
krb5_error_code
int * i,
krb5_boolean *b),
(ctx, p, d, i, b));
-WRAP_K (krb5_db2_free_principal,
- (krb5_context ctx,
- krb5_db_entry *d,
- int i),
- (ctx, d, i));
+WRAP_VOID (krb5_db2_free_principal,
+ (krb5_context ctx,
+ krb5_db_entry *d,
+ int i),
+ (ctx, d, i));
WRAP_K (krb5_db2_put_principal,
(krb5_context ctx,
krb5_db_entry *d,
/*
Free stuff returned by krb5_db2_get_principal.
*/
-krb5_error_code
+void
krb5_db2_free_principal(krb5_context context, krb5_db_entry *entries,
int nentries)
{
krb5_error_code krb5_db2_rename(krb5_context, char *, char *, int );
krb5_error_code krb5_db2_get_principal(krb5_context, krb5_const_principal,
krb5_db_entry *, int *, krb5_boolean *);
-krb5_error_code krb5_db2_free_principal(krb5_context, krb5_db_entry *, int);
+void krb5_db2_free_principal(krb5_context, krb5_db_entry *, int);
krb5_error_code krb5_db2_put_principal(krb5_context, krb5_db_entry *, int *,
char **db_args);
krb5_error_code krb5_db2_iterate_ext(krb5_context,
}
-krb5_error_code
+void
krb5_ldap_free_principal(krb5_context kcontext, krb5_db_entry *entries,
int nentries)
{
krb5_error_code
krb5_ldap_delete_principal(krb5_context, krb5_const_principal, int *);
-krb5_error_code
+void
krb5_ldap_free_principal(krb5_context, krb5_db_entry *, int );
krb5_error_code