*** empty log message ***
authorJohn Kohl <jtkohl@mit.edu>
Tue, 9 Oct 1990 17:05:17 +0000 (17:05 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Tue, 9 Oct 1990 17:05:17 +0000 (17:05 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1180 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/free/f_kdc_req.c [new file with mode: 0644]
src/lib/krb5/free/f_tickets.c [new file with mode: 0644]

diff --git a/src/lib/krb5/free/f_kdc_req.c b/src/lib/krb5/free/f_kdc_req.c
new file mode 100644 (file)
index 0000000..62f43ea
--- /dev/null
@@ -0,0 +1,40 @@
+/*
+ * $Source$
+ * $Author$
+ *
+ * Copyright 1990 by the Massachusetts Institute of Technology.
+ *
+ * For copying and distribution information, please see the file
+ * <krb5/copyright.h>.
+ *
+ * krb5_free_kdc_req()
+ */
+
+#if !defined(lint) && !defined(SABER)
+static char rcsid_f_kdc_req_c [] =
+"$Id$";
+#endif /* !lint & !SABER */
+
+#include <krb5/copyright.h>
+#include <krb5/krb5.h>
+#include <krb5/ext-proto.h>
+
+void
+krb5_free_kdc_req(val)
+krb5_kdc_req *val;
+{
+    if (val->padata.data)
+       xfree(val->padata.data);
+    if (val->client)
+       krb5_free_principal(val->client);
+    if (val->server)
+       krb5_free_principal(val->server);
+    if (val->addresses)
+       krb5_free_address(val->addresses);
+    if (val->authorization_data)
+       krb5_free_authdata(val->authorization_data);
+    if (val->second_ticket)
+       krb5_free_tickets(val->second_ticket);
+    xfree(val);
+    return;
+}
diff --git a/src/lib/krb5/free/f_tickets.c b/src/lib/krb5/free/f_tickets.c
new file mode 100644 (file)
index 0000000..8ee4c5b
--- /dev/null
@@ -0,0 +1,32 @@
+/*
+ * $Source$
+ * $Author$
+ *
+ * Copyright 1990 by the Massachusetts Institute of Technology.
+ *
+ * For copying and distribution information, please see the file
+ * <krb5/copyright.h>.
+ *
+ * krb5_free_tickets()
+ */
+
+#if !defined(lint) && !defined(SABER)
+static char rcsid_f_tickets_c [] =
+"$Id$";
+#endif /* !lint & !SABER */
+
+#include <krb5/copyright.h>
+#include <krb5/krb5.h>
+#include <krb5/ext-proto.h>
+
+void
+krb5_free_tickets(val)
+krb5_ticket **val;
+{
+    register krb5_ticket **temp;
+
+    for (temp = val; *temp; temp++)
+        krb5_free_ticket(*temp);
+    xfree(val);
+    return;
+}