Add an internal-representation no-op function.
[u/mdw/catacomb] / ghash-def.h
index 74699ca..9065f5b 100644 (file)
@@ -1,6 +1,6 @@
 /* -*-c-*-
  *
- * $Id: ghash-def.h,v 1.4 2000/07/15 10:00:58 mdw Exp $
+ * $Id: ghash-def.h,v 1.5 2001/01/25 21:39:58 mdw Exp $
  *
  * Definitions for generic hash interface
  *
@@ -30,6 +30,9 @@
 /*----- Revision history --------------------------------------------------* 
  *
  * $Log: ghash-def.h,v $
+ * Revision 1.5  2001/01/25 21:39:58  mdw
+ * Burn the hash context when it's done with, for paranoia's sake.
+ *
  * Revision 1.4  2000/07/15 10:00:58  mdw
  * New generic hash operation for copying hash contexts.
  *
 #  include "ghash.h"
 #endif
 
+#ifndef CATACOMB_PARANOIA_H
+#  include "paranoia.h"
+#endif
+
 /*----- Generic hash function interface -----------------------------------*/
 
 /* --- @GHASH_DEF@ --- *
@@ -113,6 +120,7 @@ static octet *ghdone(ghash *h, void *buf)                           \
 static void ghdestroy(ghash *h)                                                \
 {                                                                      \
   gctx *g = (gctx *)h;                                                 \
+  BURN(*g);                                                            \
   S_DESTROY(g);                                                                \
 }                                                                      \
                                                                        \