+Wed May 28 13:34:17 1997 Barry Jaspan <bjaspan@mit.edu>
+
+ * admin.h: add prototype for kadm5_setkey_principal
+
+ * misc_free.c (kadm5_free_key_data): add kadm5_free_data
+
Mon Mar 31 17:41:11 1997 Barry Jaspan <bjaspan@mit.edu>
* kadm_err.et, kadm_rpc.h, kadm_rpc_xdr.c: add support for
krb5_keyblock **keyblocks,
int *n_keys);
#endif
+kadm5_ret_t kadm5_setkey_principal(void *server_handle,
+ krb5_principal principal,
+ krb5_keyblock *keyblocks,
+ int n_keys);
+
kadm5_ret_t kadm5_create_policy(void *server_handle,
kadm5_policy_ent_t ent,
long mask);
return KADM5_OK;
}
-
/* XXX this ought to be in libkrb5.a, but isn't */
kadm5_ret_t krb5_free_key_data_contents(context, key)
krb5_context context;
return KADM5_OK;
}
+kadm5_ret_t kadm5_free_key_data(void *server_handle,
+ krb5_int16 *n_key_data,
+ krb5_key_data *key_data)
+{
+ kadm5_server_handle_t handle = server_handle;
+ int i, nkeys = (int) *n_key_data;
+
+ _KADM5_CHECK_HANDLE(server_handle);
+
+ if (key_data == NULL)
+ return KADM5_OK;
+
+ for (i = 0; i < nkeys; i++)
+ krb5_free_key_data_contents(handle->context, &key_data[i]);
+ free(key_data);
+ return KADM5_OK;
+}
+
kadm5_ret_t
kadm5_free_principal_ent(void *server_handle,
kadm5_principal_ent_t val)