dmake: do not set MAKEFLAGS=k
[unleashed/tickless.git] / usr / src / lib / krb5 / kadm5 / srv / svr_misc_free.c
blobfac57bc92af1b452c456dddabf4a075dfc760cb8
1 /*
2 * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
4 * Openvision retains the copyright to derivative works of
5 * this source code. Do *NOT* create a derivative of this
6 * source code before consulting with your legal department.
7 * Do *NOT* integrate *ANY* of this source code into another
8 * product before consulting with your legal department.
10 * For further information, read the top-level Openvision
11 * copyright which is contained in the top-level MIT Kerberos
12 * copyright.
14 * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
20 * Copyright 1993 OpenVision Technologies, Inc., All Rights Reserved
22 * $Header$
26 static char *rcsid = "$Header$";
27 #include <kadm5/admin.h>
28 #include <stdlib.h>
29 #include "server_internal.h"
31 kadm5_ret_t
32 kadm5_free_principal_ent(void *server_handle,
33 kadm5_principal_ent_t val)
35 kadm5_server_handle_t handle = server_handle;
37 CHECK_HANDLE(server_handle);
39 if(val) {
40 if(val->principal)
41 krb5_free_principal(handle->context, val->principal);
42 if(val->mod_name)
43 krb5_free_principal(handle->context, val->mod_name);
44 free(val->policy);
46 /* XXX free key_data and tl_data */
48 if (handle->api_version == KADM5_API_VERSION_1)
49 free(val);
51 return KADM5_OK;