summaryrefslogtreecommitdiffstats
path: root/g10/kbnode.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/kbnode.c')
-rw-r--r--g10/kbnode.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/g10/kbnode.c b/g10/kbnode.c
index 9ed6caf..aa1e17c 100644
--- a/g10/kbnode.c
+++ b/g10/kbnode.c
@@ -98,6 +98,19 @@ new_kbnode( PACKET *pkt )
}
+/* Same as new_kbnode but insert the new node in front of LIST. Returns
+ * the new list. */
+kbnode_t
+new_kbnode2 (kbnode_t list, PACKET *pkt)
+{
+ kbnode_t n;
+
+ n = new_kbnode (pkt);
+ n->next = list;
+ return n;
+}
+
+
KBNODE
clone_kbnode( KBNODE node )
{