From: Theodore Tso Date: Fri, 13 Feb 1998 20:29:50 +0000 (+0000) Subject: Remove free functions. (Now moved to lib/krb5/krb/kfree.c) X-Git-Tag: krb5-1.1-beta1~834 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c784be44c3b8fbda2ea18d043b4c2a244fd3213c;p=krb5.git Remove free functions. (Now moved to lib/krb5/krb/kfree.c) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10439 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/free/.Sanitize b/src/lib/krb5/free/.Sanitize deleted file mode 100644 index 9a11e6869..000000000 --- a/src/lib/krb5/free/.Sanitize +++ /dev/null @@ -1,68 +0,0 @@ -# Sanitize.in for Kerberos V5 - -# Each directory to survive it's way into a release will need a file -# like this one called "./.Sanitize". All keyword lines must exist, -# and must exist in the order specified by this file. Each directory -# in the tree will be processed, top down, in the following order. - -# Hash started lines like this one are comments and will be deleted -# before anything else is done. Blank lines will also be squashed -# out. - -# The lines between the "Do-first:" line and the "Things-to-keep:" -# line are executed as a /bin/sh shell script before anything else is -# done in this - -Do-first: - -# All files listed between the "Things-to-keep:" line and the -# "Files-to-sed:" line will be kept. All other files will be removed. -# Directories listed in this section will have their own Sanitize -# called. Directories not listed will be removed in their entirety -# with rm -rf. - -Things-to-keep: - -.cvsignore -ChangeLog -Makefile.in -configure -configure.in -f_addr.c -f_address.c -f_ap_rep.c -f_ap_req.c -f_arep_enc.c -f_auth_cnt.c -f_authdata.c -f_authent.c -f_chksum.c -f_cred.c -f_cred_cnt.c -f_cred_enc.c -f_creds.c -f_einfo.c -f_enc_kdc.c -f_enc_tkt.c -f_error.c -f_kdc_rp.c -f_kdc_rq.c -f_keyblock.c -f_last_req.c -f_padata.c -f_princ.c -f_priv.c -f_priv_enc.c -f_pwd_data.c -f_pwd_seq.c -f_safe.c -f_tckt.c -f_tckts.c -f_tgt_cred.c -f_tkt_auth.c - -Things-to-lose: - -Do-last: - -# End of file. diff --git a/src/lib/krb5/free/ChangeLog b/src/lib/krb5/free/ChangeLog deleted file mode 100644 index 6c7daec5d..000000000 --- a/src/lib/krb5/free/ChangeLog +++ /dev/null @@ -1,133 +0,0 @@ -Mon Feb 2 17:02:29 1998 Theodore Ts'o - - * Makefile.in: Define BUILDTOP and thisconfigdir in the Makefile - -Sat Feb 22 22:26:56 1997 Richard Basch - - * Makefile.in: Use some of the new library list build rules in - win-post.in - -Wed Feb 19 22:45:29 1997 Richard Basch - - * Makefile.in f_unparse.c: - f_unparse.c implements the new routine krb5_free_unparsed_name - -Tue Feb 18 17:42:52 1997 Richard Basch - - * Makefile.in f_data.c: - f_data.c now implements the functions - krb5_free_data, krb5_free_data_contents - -Thu Nov 21 11:55:16 EST 1996 Richard Basch - - * Makefile.in: win32 build - - * f_addr.c f_address.c f_ap_rep.c f_ap_req.c f_arep_enc.c - f_auth_cnt.c f_authdata.c f_authent.c f_chksum.c f_cred.c - f_cred_cnt.c f_cred_enc.c f_creds.c f_enc_kdc.c f_enc_tkt.c - f_error.c f_kdc_rp.c f_kdc_rq.c f_keyblock.c f_last_req.c - f_padata.c f_princ.c f_priv.c f_priv_enc.c f_pwd_data.c - f_pwd_seq.c f_safe.c f_tckt.c f_tckts.c f_tkt_auth.c - DLL export free routines in krb5.h - -Thu Jan 2 17:10:16 1997 Tom Yu - - * Makefile.in: - * configure.in: Update to new library build procedure - -Fri Aug 2 14:03:44 1996 Barry Jaspan - - * f_keyblock.c (krb5_free_keyblock_contents): added - krb5_free_keyblock_contents - -Wed Nov 8 17:51:51 1995 Theodore Y. Ts'o - - * f_einfo.c (krb5_free_etype_info): Added new function to free a - krb5_etype_info structure. - -Fri Oct 6 22:03:59 1995 Theodore Y. Ts'o - - * Makefile.in: Remove ##DOS!include of config/windows.in. - config/windows.in is now included by wconfig. - -Mon Sep 25 16:57:16 1995 Theodore Y. Ts'o - - * Makefile.in: Removed "foo:: foo-$(WHAT)" lines from the - Makefile. - -Tue Sep 05 22:10:34 1995 Chris Provenzano (proven@mit.edu) - - * f_kdc_rq.c : Remove krb5_enctype references, and replace with - krb5_keytype where appropriate - -Fri Jun 9 19:34:18 1995 - - * configure.in: Remove standardized set of autoconf macros, which - are now handled by CONFIG_RULES. - -Fri May 26 20:20:10 1995 Theodore Y. Ts'o (tytso@dcl) - - * configure.in, Makefile.in: Add support for building shared libraries. - -Thu Apr 13 15:49:16 1995 Keith Vetter (keithv@fusion.com) - - * *.[ch]: removed unneeded INTERFACE from non-api functions. - -Fri Mar 17 19:45:01 1995 John Gilmore (gnu at toad.com) - - * Makefile.in (LDFLAGS): Elim duplicate. - -Wed Mar 15 12:21:24 1995 Keith Vetter (keithv@fusion.com) - - * f_cksum.c renamed to f_chksum.c because of module name conflicts - with crypto/des/f_cksum. - * Makefile.in: reflected above name change. - -Tue Mar 7 21:40:18 1995 Keith Vetter (keithv@fusion.com) - - * Makefile.in: changed library name for the PC. - -Tue Mar 7 19:53:33 1995 Mark Eichin - - * configure.in: take out ISODE_DEFS, ISODE_INCLUDE. - -Wed Mar 1 16:00:00 1995 Keith Vetter (keithv@fusion.com) - - * f_princ.h: changed int to krb5_int32 for the PC. - -Tue Feb 28 00:38:44 1995 John Gilmore (gnu at toad.com) - - * *.c: Avoid includes. - -Tue Feb 21 23:39:19 1995 Theodore Y. Ts'o (tytso@dcl) - - * f_cred_enc.c (krb5_free_cred_enc_part): Remove call to xfree at - the end. This routine only frees the contents of - the cred_enc_part structure. - -Tue Feb 21 0:1:55 1995 Keith Vetter (keithv@fusion.com) - - * Every C file (*.c): added windows INTERFACE keyword - * Makefile.in: made to work for PC - -Fri Feb 3 01:45:04 1995 John Gilmore - - Rename files for DOS 8.3 uniqueness: - * f_kdc_rep.c => f_kdc_rp.c - * f_kdc_req.c => f_kdc_rq.c - * f_ticket.c => f_tckt.c - * f_tickets.c => f_tckts.c - * Makefile.in was updated to match. - -Fri Jan 13 15:23:47 1995 Chris Provenzano (proven@mit.edu) - - * Added krb5_context to all krb5_routines - -Thu Oct 13 17:24:51 1994 Theodore Y. Ts'o (tytso@maytag) - - * configure.in: Add ISODE_DEFS - -Tue Oct 4 22:05:04 1994 Theodore Y. Ts'o (tytso@dcl) - - * f_princ.c (krb5_free_principal): Don't blow up if principal is NULL. - diff --git a/src/lib/krb5/free/Makefile.in b/src/lib/krb5/free/Makefile.in deleted file mode 100644 index 7aa0bec02..000000000 --- a/src/lib/krb5/free/Makefile.in +++ /dev/null @@ -1,121 +0,0 @@ -thisconfigdir=./ -BUILDTOP=$(U)$(U)$(U) -CFLAGS = $(CCOPTS) $(DEFS) - -##DOS##BUILDTOP = ..\..\.. -##DOS##PREFIXDIR=free -##DOS##OBJFILE=..\$(PREFIXDIR).lst -##WIN16##LIBNAME=..\krb5.lib - -STLIBOBJS= \ - f_addr.o \ - f_address.o \ - f_ap_rep.o \ - f_ap_req.o \ - f_arep_enc.o \ - f_authdata.o \ - f_authent.o \ - f_auth_cnt.o \ - f_chksum.o \ - f_cred.o \ - f_cred_cnt.o \ - f_cred_enc.o \ - f_creds.o \ - f_data.o \ - f_enc_kdc.o \ - f_enc_tkt.o \ - f_einfo.o \ - f_error.o \ - f_kdc_rp.o \ - f_kdc_rq.o \ - f_keyblock.o \ - f_last_req.o \ - f_padata.o \ - f_princ.o \ - f_priv.o \ - f_priv_enc.o \ - f_safe.o \ - f_tckt.o \ - f_tckts.o \ - f_tgt_cred.o \ - f_tkt_auth.o \ - f_pwd_data.o \ - f_pwd_seq.o \ - f_unparse.o - -OBJS= \ - f_addr.$(OBJEXT) \ - f_address.$(OBJEXT) \ - f_ap_rep.$(OBJEXT) \ - f_ap_req.$(OBJEXT) \ - f_arep_enc.$(OBJEXT) \ - f_authdata.$(OBJEXT) \ - f_authent.$(OBJEXT) \ - f_auth_cnt.$(OBJEXT) \ - f_chksum.$(OBJEXT) \ - f_cred.$(OBJEXT) \ - f_cred_cnt.$(OBJEXT) \ - f_cred_enc.$(OBJEXT) \ - f_creds.$(OBJEXT) \ - f_data.$(OBJEXT) \ - f_enc_kdc.$(OBJEXT) \ - f_enc_tkt.$(OBJEXT) \ - f_einfo.$(OBJEXT) \ - f_error.$(OBJEXT) \ - f_kdc_rp.$(OBJEXT) \ - f_kdc_rq.$(OBJEXT) \ - f_keyblock.$(OBJEXT) \ - f_last_req.$(OBJEXT) \ - f_padata.$(OBJEXT) \ - f_princ.$(OBJEXT) \ - f_priv.$(OBJEXT) \ - f_priv_enc.$(OBJEXT) \ - f_safe.$(OBJEXT) \ - f_tckt.$(OBJEXT) \ - f_tckts.$(OBJEXT) \ - f_tgt_cred.$(OBJEXT) \ - f_tkt_auth.$(OBJEXT) \ - f_pwd_data.$(OBJEXT) \ - f_pwd_seq.$(OBJEXT) \ - f_unparse.$(OBJEXT) - -SRCS= \ - $(srcdir)/f_addr.c \ - $(srcdir)/f_address.c \ - $(srcdir)/f_arep_enc.c \ - $(srcdir)/f_ap_rep.c \ - $(srcdir)/f_ap_req.c \ - $(srcdir)/f_authdata.c \ - $(srcdir)/f_authent.c \ - $(srcdir)/f_auth_cnt.c \ - $(srcdir)/f_chksum.c \ - $(srcdir)/f_cred.c \ - $(srcdir)/f_cred_cnt.c \ - $(srcdir)/f_cred_enc.c \ - $(srcdir)/f_creds.c \ - $(srcdir)/f_data.c \ - $(srcdir)/f_enc_kdc.c \ - $(srcdir)/f_enc_tkt.c \ - $(srcdir)/f_einfo.c \ - $(srcdir)/f_error.c \ - $(srcdir)/f_kdc_rp.c \ - $(srcdir)/f_kdc_rq.c \ - $(srcdir)/f_keyblock.c \ - $(srcdir)/f_last_req.c \ - $(srcdir)/f_padata.c \ - $(srcdir)/f_princ.c \ - $(srcdir)/f_priv.c \ - $(srcdir)/f_priv_enc.c \ - $(srcdir)/f_safe.c \ - $(srcdir)/f_tckt.c \ - $(srcdir)/f_tckts.c \ - $(srcdir)/f_tgt_cred.c \ - $(srcdir)/f_tkt_auth.c \ - $(srcdir)/f_pwd_data.c \ - $(srcdir)/f_pwd_seq.c \ - $(srcdir)/f_unparse.c - -##DOS##LIBOBJS = $(OBJS) - -all-unix:: all-libobjs -clean-unix:: clean-libobjs diff --git a/src/lib/krb5/free/configure.in b/src/lib/krb5/free/configure.in deleted file mode 100644 index 106deb0dd..000000000 --- a/src/lib/krb5/free/configure.in +++ /dev/null @@ -1,4 +0,0 @@ -AC_INIT(configure.in) -CONFIG_RULES -KRB5_BUILD_LIBOBJS -V5_AC_OUTPUT_MAKEFILE diff --git a/src/lib/krb5/free/f_addr.c b/src/lib/krb5/free/f_addr.c deleted file mode 100644 index 9faea10be..000000000 --- a/src/lib/krb5/free/f_addr.c +++ /dev/null @@ -1,37 +0,0 @@ -/* - * lib/krb5/free/f_addr.c - * - * Copyright 1990 by the Massachusetts Institute of Technology. - * - * Export of this software from the United States of America may - * require a specific license from the United States Government. - * It is the responsibility of any person or organization contemplating - * export to obtain such a license before exporting. - * - * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and - * distribute this software and its documentation for any purpose and - * without fee is hereby granted, provided that the above copyright - * notice appear in all copies and that both that copyright notice and - * this permission notice appear in supporting documentation, and that - * the name of M.I.T. not be used in advertising or publicity pertaining - * to distribution of the software without specific, written prior - * permission. M.I.T. makes no representations about the suitability of - * this software for any purpose. It is provided "as is" without express - * or implied warranty. - * - * - * krb5_free_address() - */ - -#include "k5-int.h" - -KRB5_DLLIMP void KRB5_CALLCONV -krb5_free_address(context, val) - krb5_context context; - krb5_address FAR *val; -{ - if (val->contents) - krb5_xfree(val->contents); - krb5_xfree(val); - return; -} diff --git a/src/lib/krb5/free/f_address.c b/src/lib/krb5/free/f_address.c deleted file mode 100644 index 7387eba68..000000000 --- a/src/lib/krb5/free/f_address.c +++ /dev/null @@ -1,43 +0,0 @@ -/* - * lib/krb5/free/f_address.c - * - * Copyright 1990 by the Massachusetts Institute of Technology. - * All Rights Reserved. - * - * Export of this software from the United States of America may - * require a specific license from the United States Government. - * It is the responsibility of any person or organization contemplating - * export to obtain such a license before exporting. - * - * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and - * distribute this software and its documentation for any purpose and - * without fee is hereby granted, provided that the above copyright - * notice appear in all copies and that both that copyright notice and - * this permission notice appear in supporting documentation, and that - * the name of M.I.T. not be used in advertising or publicity pertaining - * to distribution of the software without specific, written prior - * permission. M.I.T. makes no representations about the suitability of - * this software for any purpose. It is provided "as is" without express - * or implied warranty. - * - * - * krb5_free_addresses() - */ - -#include "k5-int.h" - -KRB5_DLLIMP void KRB5_CALLCONV -krb5_free_addresses(context, val) - krb5_context context; - krb5_address FAR * FAR *val; -{ - register krb5_address **temp; - - for (temp = val; *temp; temp++) { - if ((*temp)->contents) - krb5_xfree((*temp)->contents); - krb5_xfree(*temp); - } - krb5_xfree(val); - return; -} diff --git a/src/lib/krb5/free/f_ap_rep.c b/src/lib/krb5/free/f_ap_rep.c deleted file mode 100644 index 50e67109c..000000000 --- a/src/lib/krb5/free/f_ap_rep.c +++ /dev/null @@ -1,38 +0,0 @@ -/* - * lib/krb5/free/f_ap_rep.c - * - * Copyright 1990 by the Massachusetts Institute of Technology. - * All Rights Reserved. - * - * Export of this software from the United States of America may - * require a specific license from the United States Government. - * It is the responsibility of any person or organization contemplating - * export to obtain such a license before exporting. - * - * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and - * distribute this software and its documentation for any purpose and - * without fee is hereby granted, provided that the above copyright - * notice appear in all copies and that both that copyright notice and - * this permission notice appear in supporting documentation, and that - * the name of M.I.T. not be used in advertising or publicity pertaining - * to distribution of the software without specific, written prior - * permission. M.I.T. makes no representations about the suitability of - * this software for any purpose. It is provided "as is" without express - * or implied warranty. - * - * - * krb5_free_ap_rep() - */ - -#include "k5-int.h" - -KRB5_DLLIMP void KRB5_CALLCONV -krb5_free_ap_rep(context, val) - krb5_context context; - register krb5_ap_rep FAR *val; -{ - if (val->enc_part.ciphertext.data) - krb5_xfree(val->enc_part.ciphertext.data); - krb5_xfree(val); - return; -} diff --git a/src/lib/krb5/free/f_ap_req.c b/src/lib/krb5/free/f_ap_req.c deleted file mode 100644 index 8e63a6ed7..000000000 --- a/src/lib/krb5/free/f_ap_req.c +++ /dev/null @@ -1,40 +0,0 @@ -/* - * lib/krb5/free/f_ap_req.c - * - * Copyright 1990 by the Massachusetts Institute of Technology. - * All Rights Reserved. - * - * Export of this software from the United States of America may - * require a specific license from the United States Government. - * It is the responsibility of any person or organization contemplating - * export to obtain such a license before exporting. - * - * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and - * distribute this software and its documentation for any purpose and - * without fee is hereby granted, provided that the above copyright - * notice appear in all copies and that both that copyright notice and - * this permission notice appear in supporting documentation, and that - * the name of M.I.T. not be used in advertising or publicity pertaining - * to distribution of the software without specific, written prior - * permission. M.I.T. makes no representations about the suitability of - * this software for any purpose. It is provided "as is" without express - * or implied warranty. - * - * - * krb5_free_ap_req() - */ - -#include "k5-int.h" - -KRB5_DLLIMP void KRB5_CALLCONV -krb5_free_ap_req(context, val) - krb5_context context; - register krb5_ap_req FAR *val; -{ - if (val->ticket) - krb5_free_ticket(context, val->ticket); - if (val->authenticator.ciphertext.data) - krb5_xfree(val->authenticator.ciphertext.data); - krb5_xfree(val); - return; -} diff --git a/src/lib/krb5/free/f_arep_enc.c b/src/lib/krb5/free/f_arep_enc.c deleted file mode 100644 index 99eff9a0f..000000000 --- a/src/lib/krb5/free/f_arep_enc.c +++ /dev/null @@ -1,38 +0,0 @@ -/* - * lib/krb5/free/f_arep_enc.c - * - * Copyright 1990 by the Massachusetts Institute of Technology. - * All Rights Reserved. - * - * Export of this software from the United States of America may - * require a specific license from the United States Government. - * It is the responsibility of any person or organization contemplating - * export to obtain such a license before exporting. - * - * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and - * distribute this software and its documentation for any purpose and - * without fee is hereby granted, provided that the above copyright - * notice appear in all copies and that both that copyright notice and - * this permission notice appear in supporting documentation, and that - * the name of M.I.T. not be used in advertising or publicity pertaining - * to distribution of the software without specific, written prior - * permission. M.I.T. makes no representations about the suitability of - * this software for any purpose. It is provided "as is" without express - * or implied warranty. - * - * - * krb5_free_ap_rep_enc_part() - */ - -#include "k5-int.h" - -KRB5_DLLIMP void KRB5_CALLCONV -krb5_free_ap_rep_enc_part(context, val) - krb5_context context; - krb5_ap_rep_enc_part FAR *val; -{ - if (val->subkey) - krb5_free_keyblock(context, val->subkey); - krb5_xfree(val); - return; -} diff --git a/src/lib/krb5/free/f_auth_cnt.c b/src/lib/krb5/free/f_auth_cnt.c deleted file mode 100644 index 8b7a11a9d..000000000 --- a/src/lib/krb5/free/f_auth_cnt.c +++ /dev/null @@ -1,44 +0,0 @@ -/* - * lib/krb5/free/f_auth_cnt.c - * - * Copyright 1990,1991 by the Massachusetts Institute of Technology. - * All Rights Reserved. - * All Rights Reserved. - * - * Export of this software from the United States of America may - * require a specific license from the United States Government. - * It is the responsibility of any person or organization contemplating - * export to obtain such a license before exporting. - * - * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and - * distribute this software and its documentation for any purpose and - * without fee is hereby granted, provided that the above copyright - * notice appear in all copies and that both that copyright notice and - * this permission notice appear in supporting documentation, and that - * the name of M.I.T. not be used in advertising or publicity pertaining - * to distribution of the software without specific, written prior - * permission. M.I.T. makes no representations about the suitability of - * this software for any purpose. It is provided "as is" without express - * or implied warranty. - * - * - * krb5_free_authenticator() - */ - -#include "k5-int.h" - -KRB5_DLLIMP void KRB5_CALLCONV -krb5_free_authenticator_contents(context, val) - krb5_context context; - krb5_authenticator FAR *val; -{ - if (val->checksum) - krb5_free_checksum(context, val->checksum); - if (val->client) - krb5_free_principal(context, val->client); - if (val->subkey) - krb5_free_keyblock(context, val->subkey); - if (val->authorization_data) - krb5_free_authdata(context, val->authorization_data); - return; -} diff --git a/src/lib/krb5/free/f_authdata.c b/src/lib/krb5/free/f_authdata.c deleted file mode 100644 index f91a26ba2..000000000 --- a/src/lib/krb5/free/f_authdata.c +++ /dev/null @@ -1,43 +0,0 @@ -/* - * lib/krb5/free/f_authdata.c - * - * Copyright 1990 by the Massachusetts Institute of Technology. - * All Rights Reserved. - * - * Export of this software from the United States of America may - * require a specific license from the United States Government. - * It is the responsibility of any person or organization contemplating - * export to obtain such a license before exporting. - * - * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and - * distribute this software and its documentation for any purpose and - * without fee is hereby granted, provided that the above copyright - * notice appear in all copies and that both that copyright notice and - * this permission notice appear in supporting documentation, and that - * the name of M.I.T. not be used in advertising or publicity pertaining - * to distribution of the software without specific, written prior - * permission. M.I.T. makes no representations about the suitability of - * this software for any purpose. It is provided "as is" without express - * or implied warranty. - * - * - * krb5_free_authdata() - */ - -#include "k5-int.h" - -KRB5_DLLIMP void KRB5_CALLCONV -krb5_free_authdata(context, val) - krb5_context context; - krb5_authdata FAR * FAR *val; -{ - register krb5_authdata **temp; - - for (temp = val; *temp; temp++) { - if ((*temp)->contents) - krb5_xfree((*temp)->contents); - krb5_xfree(*temp); - } - krb5_xfree(val); - return; -} diff --git a/src/lib/krb5/free/f_authent.c b/src/lib/krb5/free/f_authent.c deleted file mode 100644 index 898da745c..000000000 --- a/src/lib/krb5/free/f_authent.c +++ /dev/null @@ -1,45 +0,0 @@ -/* - * lib/krb5/free/f_authent.c - * - * Copyright 1990,1991 by the Massachusetts Institute of Technology. - * All Rights Reserved. - * All Rights Reserved. - * - * Export of this software from the United States of America may - * require a specific license from the United States Government. - * It is the responsibility of any person or organization contemplating - * export to obtain such a license before exporting. - * - * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and - * distribute this software and its documentation for any purpose and - * without fee is hereby granted, provided that the above copyright - * notice appear in all copies and that both that copyright notice and - * this permission notice appear in supporting documentation, and that - * the name of M.I.T. not be used in advertising or publicity pertaining - * to distribution of the software without specific, written prior - * permission. M.I.T. makes no representations about the suitability of - * this software for any purpose. It is provided "as is" without express - * or implied warranty. - * - * - * krb5_free_authenticator() - */ - -#include "k5-int.h" - -KRB5_DLLIMP void KRB5_CALLCONV -krb5_free_authenticator(context, val) - krb5_context context; - krb5_authenticator FAR *val; -{ - if (val->checksum) - krb5_free_checksum(context, val->checksum); - if (val->client) - krb5_free_principal(context, val->client); - if (val->subkey) - krb5_free_keyblock(context, val->subkey); - if (val->authorization_data) - krb5_free_authdata(context, val->authorization_data); - krb5_xfree(val); - return; -} diff --git a/src/lib/krb5/free/f_chksum.c b/src/lib/krb5/free/f_chksum.c deleted file mode 100644 index ac2fd7674..000000000 --- a/src/lib/krb5/free/f_chksum.c +++ /dev/null @@ -1,38 +0,0 @@ -/* - * lib/krb5/free/f_chksum.c - * - * Copyright 1990 by the Massachusetts Institute of Technology. - * All Rights Reserved. - * - * Export of this software from the United States of America may - * require a specific license from the United States Government. - * It is the responsibility of any person or organization contemplating - * export to obtain such a license before exporting. - * - * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and - * distribute this software and its documentation for any purpose and - * without fee is hereby granted, provided that the above copyright - * notice appear in all copies and that both that copyright notice and - * this permission notice appear in supporting documentation, and that - * the name of M.I.T. not be used in advertising or publicity pertaining - * to distribution of the software without specific, written prior - * permission. M.I.T. makes no representations about the suitability of - * this software for any purpose. It is provided "as is" without express - * or implied warranty. - * - * - * krb5_free_checksum() - */ - -#include "k5-int.h" - -KRB5_DLLIMP void KRB5_CALLCONV -krb5_free_checksum(context, val) - krb5_context context; - register krb5_checksum *val; -{ - if (val->contents) - krb5_xfree(val->contents); - krb5_xfree(val); - return; -} diff --git a/src/lib/krb5/free/f_cred.c b/src/lib/krb5/free/f_cred.c deleted file mode 100644 index b572aeb8e..000000000 --- a/src/lib/krb5/free/f_cred.c +++ /dev/null @@ -1,40 +0,0 @@ -/* - * lib/krb5/free/f_cred.c - * - * Copyright 1990 by the Massachusetts Institute of Technology. - * All Rights Reserved. - * - * Export of this software from the United States of America may - * require a specific license from the United States Government. - * It is the responsibility of any person or organization contemplating - * export to obtain such a license before exporting. - * - * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and - * distribute this software and its documentation for any purpose and - * without fee is hereby granted, provided that the above copyright - * notice appear in all copies and that both that copyright notice and - * this permission notice appear in supporting documentation, and that - * the name of M.I.T. not be used in advertising or publicity pertaining - * to distribution of the software without specific, written prior - * permission. M.I.T. makes no representations about the suitability of - * this software for any purpose. It is provided "as is" without express - * or implied warranty. - * - * - * krb5_free_cred() - */ - -#include "k5-int.h" - -KRB5_DLLIMP void KRB5_CALLCONV -krb5_free_cred(context, val) - krb5_context context; - register krb5_cred FAR *val; -{ - if (val->tickets) - krb5_free_tickets(context, val->tickets); - if (val->enc_part.ciphertext.data) - krb5_xfree(val->enc_part.ciphertext.data); - krb5_xfree(val); - return; -} diff --git a/src/lib/krb5/free/f_cred_cnt.c b/src/lib/krb5/free/f_cred_cnt.c deleted file mode 100644 index 6f40499b4..000000000 --- a/src/lib/krb5/free/f_cred_cnt.c +++ /dev/null @@ -1,56 +0,0 @@ -/* - * lib/krb5/free/f_cred_cnt.c - * - * Copyright 1990,1991 by the Massachusetts Institute of Technology. - * All Rights Reserved. - * - * Export of this software from the United States of America may - * require a specific license from the United States Government. - * It is the responsibility of any person or organization contemplating - * export to obtain such a license before exporting. - * - * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and - * distribute this software and its documentation for any purpose and - * without fee is hereby granted, provided that the above copyright - * notice appear in all copies and that both that copyright notice and - * this permission notice appear in supporting documentation, and that - * the name of M.I.T. not be used in advertising or publicity pertaining - * to distribution of the software without specific, written prior - * permission. M.I.T. makes no representations about the suitability of - * this software for any purpose. It is provided "as is" without express - * or implied warranty. - * - * - * krb5_free_cred_contents() - */ - -#include "k5-int.h" - -/* - * krb5_free_cred_contents zeros out the session key, and then frees - * the credentials structures - */ - -KRB5_DLLIMP void KRB5_CALLCONV -krb5_free_cred_contents(context, val) - krb5_context context; - krb5_creds FAR *val; -{ - if (val->client) - krb5_free_principal(context, val->client); - if (val->server) - krb5_free_principal(context, val->server); - if (val->keyblock.contents) { - memset((char *)val->keyblock.contents, 0, val->keyblock.length); - krb5_xfree(val->keyblock.contents); - } - if (val->ticket.data) - krb5_xfree(val->ticket.data); - if (val->second_ticket.data) - krb5_xfree(val->second_ticket.data); - if (val->addresses) - krb5_free_addresses(context, val->addresses); - if (val->authdata) - krb5_free_authdata(context, val->authdata); - return; -} diff --git a/src/lib/krb5/free/f_cred_enc.c b/src/lib/krb5/free/f_cred_enc.c deleted file mode 100644 index 24c06eae1..000000000 --- a/src/lib/krb5/free/f_cred_enc.c +++ /dev/null @@ -1,56 +0,0 @@ -/* - * lib/krb5/free/f_cred_enc.c - * - * Copyright 1990 by the Massachusetts Institute of Technology. - * All Rights Reserved. - * - * Export of this software from the United States of America may - * require a specific license from the United States Government. - * It is the responsibility of any person or organization contemplating - * export to obtain such a license before exporting. - * - * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and - * distribute this software and its documentation for any purpose and - * without fee is hereby granted, provided that the above copyright - * notice appear in all copies and that both that copyright notice and - * this permission notice appear in supporting documentation, and that - * the name of M.I.T. not be used in advertising or publicity pertaining - * to distribution of the software without specific, written prior - * permission. M.I.T. makes no representations about the suitability of - * this software for any purpose. It is provided "as is" without express - * or implied warranty. - * - * - * krb5_free_cred_enc_part() - */ - -#include "k5-int.h" - -KRB5_DLLIMP void KRB5_CALLCONV -krb5_free_cred_enc_part(context, val) - krb5_context context; - register krb5_cred_enc_part FAR *val; -{ - register krb5_cred_info **temp; - - if (val->r_address) - krb5_free_address(context, val->r_address); - if (val->s_address) - krb5_free_address(context, val->s_address); - - if (val->ticket_info) { - for (temp = val->ticket_info; *temp; temp++) { - if ((*temp)->session) - krb5_free_keyblock(context, (*temp)->session); - if ((*temp)->client) - krb5_free_principal(context, (*temp)->client); - if ((*temp)->server) - krb5_free_principal(context, (*temp)->server); - if ((*temp)->caddrs) - krb5_free_addresses(context, (*temp)->caddrs); - krb5_xfree((*temp)); - } - krb5_xfree(val->ticket_info); - } - return; -} diff --git a/src/lib/krb5/free/f_creds.c b/src/lib/krb5/free/f_creds.c deleted file mode 100644 index b47b4fdfd..000000000 --- a/src/lib/krb5/free/f_creds.c +++ /dev/null @@ -1,37 +0,0 @@ -/* - * lib/krb5/free/f_creds.c - * - * Copyright 1990 by the Massachusetts Institute of Technology. - * All Rights Reserved. - * - * Export of this software from the United States of America may - * require a specific license from the United States Government. - * It is the responsibility of any person or organization contemplating - * export to obtain such a license before exporting. - * - * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and - * distribute this software and its documentation for any purpose and - * without fee is hereby granted, provided that the above copyright - * notice appear in all copies and that both that copyright notice and - * this permission notice appear in supporting documentation, and that - * the name of M.I.T. not be used in advertising or publicity pertaining - * to distribution of the software without specific, written prior - * permission. M.I.T. makes no representations about the suitability of - * this software for any purpose. It is provided "as is" without express - * or implied warranty. - * - * - * krb5_free_creds() - */ - -#include "k5-int.h" - -KRB5_DLLIMP void KRB5_CALLCONV -krb5_free_creds(context, val) - krb5_context context; - krb5_creds FAR *val; -{ - krb5_free_cred_contents(context, val); - krb5_xfree(val); - return; -} diff --git a/src/lib/krb5/free/f_data.c b/src/lib/krb5/free/f_data.c deleted file mode 100644 index 948231d64..000000000 --- a/src/lib/krb5/free/f_data.c +++ /dev/null @@ -1,48 +0,0 @@ -/* - * lib/krb5/free/f_data.c - * - * Copyright 1997 by the Massachusetts Institute of Technology. - * - * Export of this software from the United States of America may - * require a specific license from the United States Government. - * It is the responsibility of any person or organization contemplating - * export to obtain such a license before exporting. - * - * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and - * distribute this software and its documentation for any purpose and - * without fee is hereby granted, provided that the above copyright - * notice appear in all copies and that both that copyright notice and - * this permission notice appear in supporting documentation, and that - * the name of M.I.T. not be used in advertising or publicity pertaining - * to distribution of the software without specific, written prior - * permission. M.I.T. makes no representations about the suitability of - * this software for any purpose. It is provided "as is" without express - * or implied warranty. - * - * - * krb5_free_data() - * krb5_free_data_contents() - */ - -#include "k5-int.h" - -KRB5_DLLIMP void KRB5_CALLCONV -krb5_free_data(context, val) - krb5_context context; - krb5_data FAR * val; -{ - if (val->data) - krb5_xfree(val->data); - krb5_xfree(val); - return; -} - -KRB5_DLLIMP void KRB5_CALLCONV -krb5_free_data_contents(context, val) - krb5_context context; - krb5_data FAR * val; -{ - if (val->data) - krb5_xfree(val->data); - return; -} diff --git a/src/lib/krb5/free/f_einfo.c b/src/lib/krb5/free/f_einfo.c deleted file mode 100644 index b9444fcbd..000000000 --- a/src/lib/krb5/free/f_einfo.c +++ /dev/null @@ -1,42 +0,0 @@ -/* - * lib/krb5/free/f_einfo.c - * - * Copyright 1995 by the Massachusetts Institute of Technology. - * All Rights Reserved. - * - * Export of this software from the United States of America may - * require a specific license from the United States Government. - * It is the responsibility of any person or organization contemplating - * export to obtain such a license before exporting. - * - * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and - * distribute this software and its documentation for any purpose and - * without fee is hereby granted, provided that the above copyright - * notice appear in all copies and that both that copyright notice and - * this permission notice appear in supporting documentation, and that - * the name of M.I.T. not be used in advertising or publicity pertaining - * to distribution of the software without specific, written prior - * permission. M.I.T. makes no representations about the suitability of - * this software for any purpose. It is provided "as is" without express - * or implied warranty. - * - * - * krb5_free_etype_info() - */ - -#include "k5-int.h" - -void krb5_free_etype_info(context, info) - krb5_context context; - krb5_etype_info info; -{ - int i; - - for(i=0; info[i] != NULL; i++) { - if (info[i]->salt) - free(info[i]->salt); - free(info[i]); - } - free(info); -} - diff --git a/src/lib/krb5/free/f_enc_kdc.c b/src/lib/krb5/free/f_enc_kdc.c deleted file mode 100644 index b45d28a62..000000000 --- a/src/lib/krb5/free/f_enc_kdc.c +++ /dev/null @@ -1,44 +0,0 @@ -/* - * lib/krb5/free/f_enc_kdc.c - * - * Copyright 1990 by the Massachusetts Institute of Technology. - * All Rights Reserved. - * - * Export of this software from the United States of America may - * require a specific license from the United States Government. - * It is the responsibility of any person or organization contemplating - * export to obtain such a license before exporting. - * - * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and - * distribute this software and its documentation for any purpose and - * without fee is hereby granted, provided that the above copyright - * notice appear in all copies and that both that copyright notice and - * this permission notice appear in supporting documentation, and that - * the name of M.I.T. not be used in advertising or publicity pertaining - * to distribution of the software without specific, written prior - * permission. M.I.T. makes no representations about the suitability of - * this software for any purpose. It is provided "as is" without express - * or implied warranty. - * - * - * krb5_free_enc_kdc_rep_part() - */ - -#include "k5-int.h" - -KRB5_DLLIMP void KRB5_CALLCONV -krb5_free_enc_kdc_rep_part(context, val) - krb5_context context; - register krb5_enc_kdc_rep_part *val; -{ - if (val->session) - krb5_free_keyblock(context, val->session); - if (val->last_req) - krb5_free_last_req(context, val->last_req); - if (val->server) - krb5_free_principal(context, val->server); - if (val->caddrs) - krb5_free_addresses(context, val->caddrs); - krb5_xfree(val); - return; -} diff --git a/src/lib/krb5/free/f_enc_tkt.c b/src/lib/krb5/free/f_enc_tkt.c deleted file mode 100644 index 409ed5ac0..000000000 --- a/src/lib/krb5/free/f_enc_tkt.c +++ /dev/null @@ -1,46 +0,0 @@ -/* - * lib/krb5/free/f_enc_tkt.c - * - * Copyright 1990 by the Massachusetts Institute of Technology. - * All Rights Reserved. - * - * Export of this software from the United States of America may - * require a specific license from the United States Government. - * It is the responsibility of any person or organization contemplating - * export to obtain such a license before exporting. - * - * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and - * distribute this software and its documentation for any purpose and - * without fee is hereby granted, provided that the above copyright - * notice appear in all copies and that both that copyright notice and - * this permission notice appear in supporting documentation, and that - * the name of M.I.T. not be used in advertising or publicity pertaining - * to distribution of the software without specific, written prior - * permission. M.I.T. makes no representations about the suitability of - * this software for any purpose. It is provided "as is" without express - * or implied warranty. - * - * - * krb5_free_enc_tkt_part() - */ - -#include "k5-int.h" - -KRB5_DLLIMP void KRB5_CALLCONV -krb5_free_enc_tkt_part(context, val) - krb5_context context; - krb5_enc_tkt_part FAR *val; -{ - if (val->session) - krb5_free_keyblock(context, val->session); - if (val->client) - krb5_free_principal(context, val->client); - if (val->transited.tr_contents.data) - krb5_xfree(val->transited.tr_contents.data); - if (val->caddrs) - krb5_free_addresses(context, val->caddrs); - if (val->authorization_data) - krb5_free_authdata(context, val->authorization_data); - krb5_xfree(val); - return; -} diff --git a/src/lib/krb5/free/f_error.c b/src/lib/krb5/free/f_error.c deleted file mode 100644 index 16b5c52a7..000000000 --- a/src/lib/krb5/free/f_error.c +++ /dev/null @@ -1,44 +0,0 @@ -/* - * lib/krb5/free/f_error.c - * - * Copyright 1990 by the Massachusetts Institute of Technology. - * All Rights Reserved. - * - * Export of this software from the United States of America may - * require a specific license from the United States Government. - * It is the responsibility of any person or organization contemplating - * export to obtain such a license before exporting. - * - * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and - * distribute this software and its documentation for any purpose and - * without fee is hereby granted, provided that the above copyright - * notice appear in all copies and that both that copyright notice and - * this permission notice appear in supporting documentation, and that - * the name of M.I.T. not be used in advertising or publicity pertaining - * to distribution of the software without specific, written prior - * permission. M.I.T. makes no representations about the suitability of - * this software for any purpose. It is provided "as is" without express - * or implied warranty. - * - * - * krb5_free_error() - */ - -#include "k5-int.h" - -KRB5_DLLIMP void KRB5_CALLCONV -krb5_free_error(context, val) - krb5_context context; - register krb5_error FAR *val; -{ - if (val->client) - krb5_free_principal(context, val->client); - if (val->server) - krb5_free_principal(context, val->server); - if (val->text.data) - krb5_xfree(val->text.data); - if (val->e_data.data) - krb5_xfree(val->e_data.data); - krb5_xfree(val); - return; -} diff --git a/src/lib/krb5/free/f_kdc_rp.c b/src/lib/krb5/free/f_kdc_rp.c deleted file mode 100644 index b424f368e..000000000 --- a/src/lib/krb5/free/f_kdc_rp.c +++ /dev/null @@ -1,46 +0,0 @@ -/* - * lib/krb5/free/f_kdc_rep.c - * - * Copyright 1990 by the Massachusetts Institute of Technology. - * All Rights Reserved. - * - * Export of this software from the United States of America may - * require a specific license from the United States Government. - * It is the responsibility of any person or organization contemplating - * export to obtain such a license before exporting. - * - * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and - * distribute this software and its documentation for any purpose and - * without fee is hereby granted, provided that the above copyright - * notice appear in all copies and that both that copyright notice and - * this permission notice appear in supporting documentation, and that - * the name of M.I.T. not be used in advertising or publicity pertaining - * to distribution of the software without specific, written prior - * permission. M.I.T. makes no representations about the suitability of - * this software for any purpose. It is provided "as is" without express - * or implied warranty. - * - * - * krb5_free_kdc_rep() - */ - -#include "k5-int.h" - -KRB5_DLLIMP void KRB5_CALLCONV -krb5_free_kdc_rep(context, val) - krb5_context context; - krb5_kdc_rep FAR *val; -{ - if (val->padata) - krb5_free_pa_data(context, val->padata); - if (val->client) - krb5_free_principal(context, val->client); - if (val->ticket) - krb5_free_ticket(context, val->ticket); - if (val->enc_part.ciphertext.data) - krb5_xfree(val->enc_part.ciphertext.data); - if (val->enc_part2) - krb5_free_enc_kdc_rep_part(context, val->enc_part2); - krb5_xfree(val); - return; -} diff --git a/src/lib/krb5/free/f_kdc_rq.c b/src/lib/krb5/free/f_kdc_rq.c deleted file mode 100644 index 9116850a3..000000000 --- a/src/lib/krb5/free/f_kdc_rq.c +++ /dev/null @@ -1,52 +0,0 @@ -/* - * lib/krb5/free/f_kdc_req.c - * - * Copyright 1990,1991 by the Massachusetts Institute of Technology. - * All Rights Reserved. - * - * Export of this software from the United States of America may - * require a specific license from the United States Government. - * It is the responsibility of any person or organization contemplating - * export to obtain such a license before exporting. - * - * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and - * distribute this software and its documentation for any purpose and - * without fee is hereby granted, provided that the above copyright - * notice appear in all copies and that both that copyright notice and - * this permission notice appear in supporting documentation, and that - * the name of M.I.T. not be used in advertising or publicity pertaining - * to distribution of the software without specific, written prior - * permission. M.I.T. makes no representations about the suitability of - * this software for any purpose. It is provided "as is" without express - * or implied warranty. - * - * - * krb5_free_kdc_req() - */ - -#include "k5-int.h" - -KRB5_DLLIMP void KRB5_CALLCONV -krb5_free_kdc_req(context, val) - krb5_context context; - krb5_kdc_req FAR *val; -{ - if (val->padata) - krb5_free_pa_data(context, val->padata); - if (val->client) - krb5_free_principal(context, val->client); - if (val->server) - krb5_free_principal(context, val->server); - if (val->ktype) - krb5_xfree(val->ktype); - if (val->addresses) - krb5_free_addresses(context, val->addresses); - if (val->authorization_data.ciphertext.data) - krb5_xfree(val->authorization_data.ciphertext.data); - if (val->unenc_authdata) - krb5_free_authdata(context, val->unenc_authdata); - if (val->second_ticket) - krb5_free_tickets(context, val->second_ticket); - krb5_xfree(val); - return; -} diff --git a/src/lib/krb5/free/f_keyblock.c b/src/lib/krb5/free/f_keyblock.c deleted file mode 100644 index 8d6950eeb..000000000 --- a/src/lib/krb5/free/f_keyblock.c +++ /dev/null @@ -1,51 +0,0 @@ -/* - * lib/krb5/free/f_keyblock.c - * - * Copyright 1990 by the Massachusetts Institute of Technology. - * All Rights Reserved. - * - * Export of this software from the United States of America may - * require a specific license from the United States Government. - * It is the responsibility of any person or organization contemplating - * export to obtain such a license before exporting. - * - * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and - * distribute this software and its documentation for any purpose and - * without fee is hereby granted, provided that the above copyright - * notice appear in all copies and that both that copyright notice and - * this permission notice appear in supporting documentation, and that - * the name of M.I.T. not be used in advertising or publicity pertaining - * to distribution of the software without specific, written prior - * permission. M.I.T. makes no representations about the suitability of - * this software for any purpose. It is provided "as is" without express - * or implied warranty. - * - * - * krb5_free_keyblock() - */ - -#include "k5-int.h" - -KRB5_DLLIMP void KRB5_CALLCONV -krb5_free_keyblock_contents(context, key) - krb5_context context; - register krb5_keyblock FAR *key; -{ - if (key->contents) { - memset(key->contents, 0, key->length); - krb5_xfree(key->contents); - } - return; -} - -KRB5_DLLIMP void KRB5_CALLCONV -krb5_free_keyblock(context, val) - krb5_context context; - register krb5_keyblock FAR *val; -{ - krb5_free_keyblock_contents(context, val); - krb5_xfree(val); - return; -} - - diff --git a/src/lib/krb5/free/f_last_req.c b/src/lib/krb5/free/f_last_req.c deleted file mode 100644 index cb0959f28..000000000 --- a/src/lib/krb5/free/f_last_req.c +++ /dev/null @@ -1,40 +0,0 @@ -/* - * lib/krb5/free/f_last_req.c - * - * Copyright 1990 by the Massachusetts Institute of Technology. - * All Rights Reserved. - * - * Export of this software from the United States of America may - * require a specific license from the United States Government. - * It is the responsibility of any person or organization contemplating - * export to obtain such a license before exporting. - * - * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and - * distribute this software and its documentation for any purpose and - * without fee is hereby granted, provided that the above copyright - * notice appear in all copies and that both that copyright notice and - * this permission notice appear in supporting documentation, and that - * the name of M.I.T. not be used in advertising or publicity pertaining - * to distribution of the software without specific, written prior - * permission. M.I.T. makes no representations about the suitability of - * this software for any purpose. It is provided "as is" without express - * or implied warranty. - * - * - * krb5_free_last_req() - */ - -#include "k5-int.h" - -KRB5_DLLIMP void KRB5_CALLCONV -krb5_free_last_req(context, val) - krb5_context context; - krb5_last_req_entry FAR * FAR *val; -{ - register krb5_last_req_entry **temp; - - for (temp = val; *temp; temp++) - krb5_xfree(*temp); - krb5_xfree(val); - return; -} diff --git a/src/lib/krb5/free/f_padata.c b/src/lib/krb5/free/f_padata.c deleted file mode 100644 index 332bf02e3..000000000 --- a/src/lib/krb5/free/f_padata.c +++ /dev/null @@ -1,43 +0,0 @@ -/* - * lib/krb5/free/f_padata.c - * - * Copyright 1990 by the Massachusetts Institute of Technology. - * All Rights Reserved. - * - * Export of this software from the United States of America may - * require a specific license from the United States Government. - * It is the responsibility of any person or organization contemplating - * export to obtain such a license before exporting. - * - * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and - * distribute this software and its documentation for any purpose and - * without fee is hereby granted, provided that the above copyright - * notice appear in all copies and that both that copyright notice and - * this permission notice appear in supporting documentation, and that - * the name of M.I.T. not be used in advertising or publicity pertaining - * to distribution of the software without specific, written prior - * permission. M.I.T. makes no representations about the suitability of - * this software for any purpose. It is provided "as is" without express - * or implied warranty. - * - * - * krb5_free_padata() - */ - -#include "k5-int.h" - -KRB5_DLLIMP void KRB5_CALLCONV -krb5_free_pa_data(context, val) - krb5_context context; - krb5_pa_data FAR * FAR *val; -{ - register krb5_pa_data **temp; - - for (temp = val; *temp; temp++) { - if ((*temp)->contents) - krb5_xfree((*temp)->contents); - krb5_xfree(*temp); - } - krb5_xfree(val); - return; -} diff --git a/src/lib/krb5/free/f_princ.c b/src/lib/krb5/free/f_princ.c deleted file mode 100644 index af1c07e79..000000000 --- a/src/lib/krb5/free/f_princ.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * lib/krb5/free/f_princ.c - * - * Copyright 1990 by the Massachusetts Institute of Technology. - * All Rights Reserved. - * - * Export of this software from the United States of America may - * require a specific license from the United States Government. - * It is the responsibility of any person or organization contemplating - * export to obtain such a license before exporting. - * - * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and - * distribute this software and its documentation for any purpose and - * without fee is hereby granted, provided that the above copyright - * notice appear in all copies and that both that copyright notice and - * this permission notice appear in supporting documentation, and that - * the name of M.I.T. not be used in advertising or publicity pertaining - * to distribution of the software without specific, written prior - * permission. M.I.T. makes no representations about the suitability of - * this software for any purpose. It is provided "as is" without express - * or implied warranty. - * - * - * krb5_free_principal() - */ - -#include "k5-int.h" - -KRB5_DLLIMP void KRB5_CALLCONV -krb5_free_principal(context, val) - krb5_context context; - krb5_principal val; -{ - register krb5_int32 i; - - if (!val) - return; - - if (val->data) { - i = krb5_princ_size(context, val); - while(--i >= 0) - free(krb5_princ_component(context, val, i)->data); - krb5_xfree(val->data); - } - if (val->realm.data) - krb5_xfree(val->realm.data); - krb5_xfree(val); - return; -} diff --git a/src/lib/krb5/free/f_priv.c b/src/lib/krb5/free/f_priv.c deleted file mode 100644 index f781ce6b1..000000000 --- a/src/lib/krb5/free/f_priv.c +++ /dev/null @@ -1,38 +0,0 @@ -/* - * lib/krb5/free/f_priv.c - * - * Copyright 1990 by the Massachusetts Institute of Technology. - * All Rights Reserved. - * - * Export of this software from the United States of America may - * require a specific license from the United States Government. - * It is the responsibility of any person or organization contemplating - * export to obtain such a license before exporting. - * - * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and - * distribute this software and its documentation for any purpose and - * without fee is hereby granted, provided that the above copyright - * notice appear in all copies and that both that copyright notice and - * this permission notice appear in supporting documentation, and that - * the name of M.I.T. not be used in advertising or publicity pertaining - * to distribution of the software without specific, written prior - * permission. M.I.T. makes no representations about the suitability of - * this software for any purpose. It is provided "as is" without express - * or implied warranty. - * - * - * krb5_free_priv() - */ - -#include "k5-int.h" - -KRB5_DLLIMP void KRB5_CALLCONV -krb5_free_priv(context, val) - krb5_context context; - register krb5_priv FAR *val; -{ - if (val->enc_part.ciphertext.data) - krb5_xfree(val->enc_part.ciphertext.data); - krb5_xfree(val); - return; -} diff --git a/src/lib/krb5/free/f_priv_enc.c b/src/lib/krb5/free/f_priv_enc.c deleted file mode 100644 index cc48e08ba..000000000 --- a/src/lib/krb5/free/f_priv_enc.c +++ /dev/null @@ -1,42 +0,0 @@ -/* - * lib/krb5/free/f_priv_enc.c - * - * Copyright 1990 by the Massachusetts Institute of Technology. - * All Rights Reserved. - * - * Export of this software from the United States of America may - * require a specific license from the United States Government. - * It is the responsibility of any person or organization contemplating - * export to obtain such a license before exporting. - * - * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and - * distribute this software and its documentation for any purpose and - * without fee is hereby granted, provided that the above copyright - * notice appear in all copies and that both that copyright notice and - * this permission notice appear in supporting documentation, and that - * the name of M.I.T. not be used in advertising or publicity pertaining - * to distribution of the software without specific, written prior - * permission. M.I.T. makes no representations about the suitability of - * this software for any purpose. It is provided "as is" without express - * or implied warranty. - * - * - * krb5_free_priv_enc_part() - */ - -#include "k5-int.h" - -KRB5_DLLIMP void KRB5_CALLCONV -krb5_free_priv_enc_part(context, val) - krb5_context context; - register krb5_priv_enc_part FAR *val; -{ - if (val->user_data.data) - krb5_xfree(val->user_data.data); - if (val->r_address) - krb5_free_address(context, val->r_address); - if (val->s_address) - krb5_free_address(context, val->s_address); - krb5_xfree(val); - return; -} diff --git a/src/lib/krb5/free/f_pwd_data.c b/src/lib/krb5/free/f_pwd_data.c deleted file mode 100644 index 386e00474..000000000 --- a/src/lib/krb5/free/f_pwd_data.c +++ /dev/null @@ -1,38 +0,0 @@ -/* - * lib/krb5/free/f_pwd_data.c - * - * Copyright 1990,1991 by the Massachusetts Institute of Technology. - * All Rights Reserved. - * - * Export of this software from the United States of America may - * require a specific license from the United States Government. - * It is the responsibility of any person or organization contemplating - * export to obtain such a license before exporting. - * - * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and - * distribute this software and its documentation for any purpose and - * without fee is hereby granted, provided that the above copyright - * notice appear in all copies and that both that copyright notice and - * this permission notice appear in supporting documentation, and that - * the name of M.I.T. not be used in advertising or publicity pertaining - * to distribution of the software without specific, written prior - * permission. M.I.T. makes no representations about the suitability of - * this software for any purpose. It is provided "as is" without express - * or implied warranty. - * - * - * krb5_free_pwd_data() - */ - -#include "k5-int.h" - -KRB5_DLLIMP void KRB5_CALLCONV -krb5_free_pwd_data(context, val) - krb5_context context; - krb5_pwd_data FAR *val; -{ - if (val->element) - krb5_free_pwd_sequences(context, val->element); - krb5_xfree(val); - return; -} diff --git a/src/lib/krb5/free/f_pwd_seq.c b/src/lib/krb5/free/f_pwd_seq.c deleted file mode 100644 index af1a969f0..000000000 --- a/src/lib/krb5/free/f_pwd_seq.c +++ /dev/null @@ -1,39 +0,0 @@ -/* - * lib/krb5/free/f_pwd_seq.c - * - * Copyright 1990,1991 by the Massachusetts Institute of Technology. - * All Rights Reserved. - * - * Export of this software from the United States of America may - * require a specific license from the United States Government. - * It is the responsibility of any person or organization contemplating - * export to obtain such a license before exporting. - * - * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and - * distribute this software and its documentation for any purpose and - * without fee is hereby granted, provided that the above copyright - * notice appear in all copies and that both that copyright notice and - * this permission notice appear in supporting documentation, and that - * the name of M.I.T. not be used in advertising or publicity pertaining - * to distribution of the software without specific, written prior - * permission. M.I.T. makes no representations about the suitability of - * this software for any purpose. It is provided "as is" without express - * or implied warranty. - * - * - * krb5_free_pwd_sequences() - */ - -#include "k5-int.h" - -KRB5_DLLIMP void KRB5_CALLCONV -krb5_free_pwd_sequences(context, val) - krb5_context context; - passwd_phrase_element FAR * FAR *val; -{ - if ((*val)->passwd) - krb5_xfree((*val)->passwd); - if ((*val)->phrase) - krb5_xfree((*val)->phrase); - return; -} diff --git a/src/lib/krb5/free/f_safe.c b/src/lib/krb5/free/f_safe.c deleted file mode 100644 index 30a8650ce..000000000 --- a/src/lib/krb5/free/f_safe.c +++ /dev/null @@ -1,44 +0,0 @@ -/* - * lib/krb5/free/f_safe.c - * - * Copyright 1990 by the Massachusetts Institute of Technology. - * All Rights Reserved. - * - * Export of this software from the United States of America may - * require a specific license from the United States Government. - * It is the responsibility of any person or organization contemplating - * export to obtain such a license before exporting. - * - * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and - * distribute this software and its documentation for any purpose and - * without fee is hereby granted, provided that the above copyright - * notice appear in all copies and that both that copyright notice and - * this permission notice appear in supporting documentation, and that - * the name of M.I.T. not be used in advertising or publicity pertaining - * to distribution of the software without specific, written prior - * permission. M.I.T. makes no representations about the suitability of - * this software for any purpose. It is provided "as is" without express - * or implied warranty. - * - * - * krb5_free_safe() - */ - -#include "k5-int.h" - -KRB5_DLLIMP void KRB5_CALLCONV -krb5_free_safe(context, val) - krb5_context context; - register krb5_safe FAR *val; -{ - if (val->user_data.data) - krb5_xfree(val->user_data.data); - if (val->r_address) - krb5_free_address(context, val->r_address); - if (val->s_address) - krb5_free_address(context, val->s_address); - if (val->checksum) - krb5_free_checksum(context, val->checksum); - krb5_xfree(val); - return; -} diff --git a/src/lib/krb5/free/f_tckt.c b/src/lib/krb5/free/f_tckt.c deleted file mode 100644 index bfc8fbf77..000000000 --- a/src/lib/krb5/free/f_tckt.c +++ /dev/null @@ -1,42 +0,0 @@ -/* - * lib/krb5/free/f_ticket.c - * - * Copyright 1990,1991 by the Massachusetts Institute of Technology. - * All Rights Reserved. - * - * Export of this software from the United States of America may - * require a specific license from the United States Government. - * It is the responsibility of any person or organization contemplating - * export to obtain such a license before exporting. - * - * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and - * distribute this software and its documentation for any purpose and - * without fee is hereby granted, provided that the above copyright - * notice appear in all copies and that both that copyright notice and - * this permission notice appear in supporting documentation, and that - * the name of M.I.T. not be used in advertising or publicity pertaining - * to distribution of the software without specific, written prior - * permission. M.I.T. makes no representations about the suitability of - * this software for any purpose. It is provided "as is" without express - * or implied warranty. - * - * - * krb5_free_ticket() - */ - -#include "k5-int.h" - -KRB5_DLLIMP void KRB5_CALLCONV -krb5_free_ticket(context, val) - krb5_context context; - krb5_ticket FAR *val; -{ - if (val->server) - krb5_free_principal(context, val->server); - if (val->enc_part.ciphertext.data) - krb5_xfree(val->enc_part.ciphertext.data); - if (val->enc_part2) - krb5_free_enc_tkt_part(context, val->enc_part2); - krb5_xfree(val); - return; -} diff --git a/src/lib/krb5/free/f_tckts.c b/src/lib/krb5/free/f_tckts.c deleted file mode 100644 index f211eff6f..000000000 --- a/src/lib/krb5/free/f_tckts.c +++ /dev/null @@ -1,40 +0,0 @@ -/* - * lib/krb5/free/f_tickets.c - * - * Copyright 1990 by the Massachusetts Institute of Technology. - * All Rights Reserved. - * - * Export of this software from the United States of America may - * require a specific license from the United States Government. - * It is the responsibility of any person or organization contemplating - * export to obtain such a license before exporting. - * - * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and - * distribute this software and its documentation for any purpose and - * without fee is hereby granted, provided that the above copyright - * notice appear in all copies and that both that copyright notice and - * this permission notice appear in supporting documentation, and that - * the name of M.I.T. not be used in advertising or publicity pertaining - * to distribution of the software without specific, written prior - * permission. M.I.T. makes no representations about the suitability of - * this software for any purpose. It is provided "as is" without express - * or implied warranty. - * - * - * krb5_free_tickets() - */ - -#include "k5-int.h" - -KRB5_DLLIMP void KRB5_CALLCONV -krb5_free_tickets(context, val) - krb5_context context; - krb5_ticket FAR * FAR *val; -{ - register krb5_ticket **temp; - - for (temp = val; *temp; temp++) - krb5_free_ticket(context, *temp); - krb5_xfree(val); - return; -} diff --git a/src/lib/krb5/free/f_tgt_cred.c b/src/lib/krb5/free/f_tgt_cred.c deleted file mode 100644 index 93fd3c17d..000000000 --- a/src/lib/krb5/free/f_tgt_cred.c +++ /dev/null @@ -1,38 +0,0 @@ -/* - * lib/krb5/free/f_tgt_cred.c - * - * Copyright 1990 by the Massachusetts Institute of Technology. - * All Rights Reserved. - * - * Export of this software from the United States of America may - * require a specific license from the United States Government. - * It is the responsibility of any person or organization contemplating - * export to obtain such a license before exporting. - * - * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and - * distribute this software and its documentation for any purpose and - * without fee is hereby granted, provided that the above copyright - * notice appear in all copies and that both that copyright notice and - * this permission notice appear in supporting documentation, and that - * the name of M.I.T. not be used in advertising or publicity pertaining - * to distribution of the software without specific, written prior - * permission. M.I.T. makes no representations about the suitability of - * this software for any purpose. It is provided "as is" without express - * or implied warranty. - * - * - * krb5_free_tgt_creds() - */ - -#include "k5-int.h" - -KRB5_DLLIMP void KRB5_CALLCONV -krb5_free_tgt_creds(context, tgts) - krb5_context context; - krb5_creds FAR * FAR *tgts; -{ - register krb5_creds **tgtpp; - for (tgtpp = tgts; *tgtpp; tgtpp++) - krb5_free_creds(context, *tgtpp); - krb5_xfree(tgts); -} diff --git a/src/lib/krb5/free/f_tkt_auth.c b/src/lib/krb5/free/f_tkt_auth.c deleted file mode 100644 index 8bfc9b9e4..000000000 --- a/src/lib/krb5/free/f_tkt_auth.c +++ /dev/null @@ -1,40 +0,0 @@ -/* - * lib/krb5/free/f_tkt_auth.c - * - * Copyright 1990,1991 by the Massachusetts Institute of Technology. - * All Rights Reserved. - * - * Export of this software from the United States of America may - * require a specific license from the United States Government. - * It is the responsibility of any person or organization contemplating - * export to obtain such a license before exporting. - * - * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and - * distribute this software and its documentation for any purpose and - * without fee is hereby granted, provided that the above copyright - * notice appear in all copies and that both that copyright notice and - * this permission notice appear in supporting documentation, and that - * the name of M.I.T. not be used in advertising or publicity pertaining - * to distribution of the software without specific, written prior - * permission. M.I.T. makes no representations about the suitability of - * this software for any purpose. It is provided "as is" without express - * or implied warranty. - * - * - * krb5_free_tkt_authent() - */ - -#include "k5-int.h" - -KRB5_DLLIMP void KRB5_CALLCONV -krb5_free_tkt_authent(context, val) - krb5_context context; - krb5_tkt_authent FAR *val; -{ - if (val->ticket) - krb5_free_ticket(context, val->ticket); - if (val->authenticator) - krb5_free_authenticator(context, val->authenticator); - krb5_xfree(val); - return; -} diff --git a/src/lib/krb5/free/f_unparse.c b/src/lib/krb5/free/f_unparse.c deleted file mode 100644 index 67fd2bc8b..000000000 --- a/src/lib/krb5/free/f_unparse.c +++ /dev/null @@ -1,36 +0,0 @@ -/* - * lib/krb5/free/f_unparse.c - * - * Copyright 1997 by the Massachusetts Institute of Technology. - * - * Export of this software from the United States of America may - * require a specific license from the United States Government. - * It is the responsibility of any person or organization contemplating - * export to obtain such a license before exporting. - * - * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and - * distribute this software and its documentation for any purpose and - * without fee is hereby granted, provided that the above copyright - * notice appear in all copies and that both that copyright notice and - * this permission notice appear in supporting documentation, and that - * the name of M.I.T. not be used in advertising or publicity pertaining - * to distribution of the software without specific, written prior - * permission. M.I.T. makes no representations about the suitability of - * this software for any purpose. It is provided "as is" without express - * or implied warranty. - * - * - * krb5_free_unparsed_name() - */ - -#include "k5-int.h" - -KRB5_DLLIMP void KRB5_CALLCONV -krb5_free_unparsed_name(context, val) - krb5_context context; - char FAR * val; -{ - if (val) - krb5_xfree(val); - return; -}