New functions for freeing public and private keys.
[u/mdw/catacomb] / dh.h
diff --git a/dh.h b/dh.h
index 2fff372..2ae710c 100644 (file)
--- a/dh.h
+++ b/dh.h
@@ -1,6 +1,6 @@
 /* -*-c-*-
  *
- * $Id: dh.h,v 1.4 2000/06/17 10:52:47 mdw Exp $
+ * $Id: dh.h,v 1.5 2000/07/01 11:20:51 mdw Exp $
  *
  * Diffie-Hellman and related public-key systems
  *
@@ -30,6 +30,9 @@
 /*----- Revision history --------------------------------------------------* 
  *
  * $Log: dh.h,v $
+ * Revision 1.5  2000/07/01 11:20:51  mdw
+ * New functions for freeing public and private keys.
+ *
  * Revision 1.4  2000/06/17 10:52:47  mdw
  * Minor changes for key fetching.
  *
@@ -88,6 +91,20 @@ extern const key_fetchdef dh_pubfetch[];
 extern const key_fetchdef dh_privfetch[];
 #define DH_PRIVFETCHSZ 9
 
+/* --- @dh_paramfree@, @dh_pubfree@, @dh_privfree@ --- *
+ *
+ * Arguments:  @dh_param *dp@, @dh_pub *dp@, @dh_priv *dp@ = pointer to
+ *                     key block to free
+ *
+ * Returns:    ---
+ *
+ * Use:                Frees a Diffie-Hellman key block.
+ */
+
+extern void dh_paramfree(dh_param */*dp*/);
+extern void dh_pubfree(dh_pub */*dp*/);
+extern void dh_privfree(dh_priv */*dp*/);
+
 /*----- Functions provided ------------------------------------------------*/
 
 /* --- @dh_gen@ --- *