Added new function to free a krb5_etype_info structure
authorTheodore Tso <tytso@mit.edu>
Wed, 8 Nov 1995 22:55:41 +0000 (22:55 +0000)
committerTheodore Tso <tytso@mit.edu>
Wed, 8 Nov 1995 22:55:41 +0000 (22:55 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7065 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/free/ChangeLog
src/lib/krb5/free/Makefile.in
src/lib/krb5/free/f_einfo.c [new file with mode: 0644]

index 250b1225bd075a0351f94241a2691c5793ac58df..e8632bd9209c683544f68f58fd2efd915e801cc1 100644 (file)
@@ -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.
index a5a96d3e00275e4a61dbf1f5bfc6600c1c00ced1..60b93b00599e384961977dade475b9b588db0234 100644 (file)
@@ -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 (file)
index 0000000..064d731
--- /dev/null
@@ -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);
+}
+