svn rev #22130: branches/fast/src/lib/krb5/krb/

hartmans@MIT.EDU hartmans at MIT.EDU
Thu Mar 26 01:36:56 EDT 2009


http://src.mit.edu/fisheye/changelog/krb5/?cs=22130
Commit By: hartmans
Log Message:
Implement free_fast_response and free_fast_finished


Changed Files:
U   branches/fast/src/lib/krb5/krb/kfree.c
Modified: branches/fast/src/lib/krb5/krb/kfree.c
===================================================================
--- branches/fast/src/lib/krb5/krb/kfree.c	2009-03-26 05:36:53 UTC (rev 22129)
+++ branches/fast/src/lib/krb5/krb/kfree.c	2009-03-26 05:36:56 UTC (rev 22130)
@@ -812,3 +812,22 @@
   krb5_free_data_contents(context, &val->armor_value);
   free(val);
 }
+
+void krb5_free_fast_response(krb5_context context, krb5_fast_response *val)
+{
+  if (!val)
+    return;
+  krb5_free_pa_data(context, val->padata);
+  krb5_free_fast_finished(context, val->finished);
+  free(val);
+}
+
+void krb5_free_fast_finished
+(krb5_context context, krb5_fast_finished *val)
+{
+  if (!val)
+    return;
+  krb5_free_principal(context, val->client);
+  krb5_free_checksum_contents(context, &val->checksum);
+  krb5_free_checksum_contents(context, &val->ticket_checksum);
+}




More information about the cvs-krb5 mailing list