summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorTheodore Tso <tytso@mit.edu>1995-11-08 22:55:41 +0000
committerTheodore Tso <tytso@mit.edu>1995-11-08 22:55:41 +0000
commitcf451918f7f69f75beba22943b0270c3799e093e (patch)
tree1549d42ffb8c7406de09e337d5314430bcdeddd3 /src/lib
parentdc2560bc11ad38e94b0267ad819c5b0239e83d78 (diff)
downloadkrb5-cf451918f7f69f75beba22943b0270c3799e093e.tar.gz
krb5-cf451918f7f69f75beba22943b0270c3799e093e.tar.xz
krb5-cf451918f7f69f75beba22943b0270c3799e093e.zip
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
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/krb5/free/ChangeLog5
-rw-r--r--src/lib/krb5/free/Makefile.in2
-rw-r--r--src/lib/krb5/free/f_einfo.c39
3 files changed, 46 insertions, 0 deletions
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 <tytso@dcl>
+
+ * 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 <tytso@dcl>
* 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);
+}
+