blob: 1c87f0689ebdb692ca878ed61e5e1d644d735b33 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
/*
* Copyright 1993 OpenVision Technologies, Inc., All Rights Reserved
*
* $Header$
*
*/
#if !defined(lint) && !defined(__CODECENTER__)
static char *rcsid = "$Header$";
#endif
#include <kadm5/admin.h>
#include <stdlib.h>
#include "server_internal.h"
kadm5_ret_t
kadm5_free_principal_ent(void *server_handle,
kadm5_principal_ent_t val)
{
kadm5_server_handle_t handle = server_handle;
CHECK_HANDLE(server_handle);
if(val) {
if(val->principal)
krb5_free_principal(handle->context, val->principal);
if(val->mod_name)
krb5_free_principal(handle->context, val->mod_name);
if(val->policy)
free(val->policy);
/* XXX free key_data and tl_data */
}
return KADM5_OK;
}
|