From cf451918f7f69f75beba22943b0270c3799e093e Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Wed, 8 Nov 1995 22:55:41 +0000 Subject: [PATCH] Added new function to free a krb5_etype_info structure git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7065 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/free/ChangeLog | 5 +++++ src/lib/krb5/free/Makefile.in | 2 ++ src/lib/krb5/free/f_einfo.c | 39 +++++++++++++++++++++++++++++++++++ 3 files changed, 46 insertions(+) create mode 100644 src/lib/krb5/free/f_einfo.c diff --git a/src/lib/krb5/free/ChangeLog b/src/lib/krb5/free/ChangeLog index 250b1225b..e8632bd92 100644 --- a/src/lib/krb5/free/ChangeLog +++ b/src/lib/krb5/free/ChangeLog @@ -1,3 +1,8 @@ +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. diff --git a/src/lib/krb5/free/Makefile.in b/src/lib/krb5/free/Makefile.in index a5a96d3e0..60b93b005 100644 --- a/src/lib/krb5/free/Makefile.in +++ b/src/lib/krb5/free/Makefile.in @@ -21,6 +21,7 @@ OBJS= \ f_cred_cnt.$(OBJEXT) \ f_enc_kdc.$(OBJEXT) \ f_enc_tkt.$(OBJEXT) \ + f_einfo.$(OBJEXT) \ f_error.$(OBJEXT) \ f_kdc_rp.$(OBJEXT) \ f_kdc_rq.$(OBJEXT) \ @@ -54,6 +55,7 @@ SRCS= \ $(srcdir)/f_cred_cnt.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 \ diff --git a/src/lib/krb5/free/f_einfo.c b/src/lib/krb5/free/f_einfo.c new file mode 100644 index 000000000..064d73184 --- /dev/null +++ b/src/lib/krb5/free/f_einfo.c @@ -0,0 +1,39 @@ +/* + * 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++) + ktest_destroy_etype_info_entry(info[i]); + free(info); +} + -- 2.26.2