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

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


http://src.mit.edu/fisheye/changelog/krb5/?cs=22127
Commit By: hartmans
Log Message:
Some fast free functions


Changed Files:
U   branches/fast/src/lib/krb5/krb/kfree.c
U   branches/fast/src/lib/krb5/libkrb5.exports
Modified: branches/fast/src/lib/krb5/krb/kfree.c
===================================================================
--- branches/fast/src/lib/krb5/krb/kfree.c	2009-03-26 05:36:45 UTC (rev 22126)
+++ branches/fast/src/lib/krb5/krb/kfree.c	2009-03-26 05:36:48 UTC (rev 22127)
@@ -797,3 +797,18 @@
 	free(etypes);
     }
 }
+void krb5_free_fast_req(krb5_context context, krb5_fast_req *val)
+{
+  if (val == NULL)
+    return;
+  krb5_free_kdc_req(context, val->req_body);
+  free(val);
+}
+
+void krb5_free_fast_armor(krb5_context context, krb5_fast_armor *val)
+{
+  if (val == NULL)
+    return;
+  krb5_free_data_contents(context, &val->armor_value);
+  free(val);
+}

Modified: branches/fast/src/lib/krb5/libkrb5.exports
===================================================================
--- branches/fast/src/lib/krb5/libkrb5.exports	2009-03-26 05:36:45 UTC (rev 22126)
+++ branches/fast/src/lib/krb5/libkrb5.exports	2009-03-26 05:36:48 UTC (rev 22127)
@@ -227,6 +227,7 @@
 krb5_free_error
 krb5_free_error_message
 krb5_free_etype_info
+krb5_free_fast_req
 krb5_free_host_realm
 krb5_free_kdc_rep
 krb5_free_kdc_req




More information about the cvs-krb5 mailing list