* f_keyblock.c (krb5_free_keyblock_contents): added
authorBarry Jaspan <bjaspan@mit.edu>
Fri, 2 Aug 1996 18:04:39 +0000 (18:04 +0000)
committerBarry Jaspan <bjaspan@mit.edu>
Fri, 2 Aug 1996 18:04:39 +0000 (18:04 +0000)
        krb5_free_keyblock_contents

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8897 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/free/ChangeLog
src/lib/krb5/free/f_keyblock.c

index e8632bd9209c683544f68f58fd2efd915e801cc1..6ad05dcbe74de9590b32b18dbb627d064112fcb0 100644 (file)
@@ -1,3 +1,8 @@
+Fri Aug  2 14:03:44 1996  Barry Jaspan  <bjaspan@DUN-DUN-NOODLES>
+
+       * f_keyblock.c (krb5_free_keyblock_contents): added
+        krb5_free_keyblock_contents
+
 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
index 6051657191deb65c20fa42a586fcc0d98201e75d..f3e13cfefc60167161d8cebb030c73f11b1e3260 100644 (file)
 
 #include "k5-int.h"
 
+void
+krb5_free_keyblock_contents(context, key)
+     krb5_context context;
+     register krb5_keyblock *key;
+{
+     if (key->contents) {
+         memset(key->contents, 0, key->length);
+         krb5_xfree(key->contents);
+     }
+     return;
+}
+
 void
 krb5_free_keyblock(context, val)
     krb5_context context;
     register krb5_keyblock *val;
 {
-    if (val->contents) {
-       memset((char *)val->contents, 0, val->length);
-       krb5_xfree(val->contents);
-    }
+    krb5_free_keyblock_contents(context, val);
     krb5_xfree(val);
     return;
 }
+
+