summaryrefslogtreecommitdiff
path: root/tlv11.h
diff options
context:
space:
mode:
authorvenaas <venaas>2008-09-11 10:38:51 +0000
committervenaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf>2008-09-11 10:38:51 +0000
commitfaf8717dcbc9c2e3ed1892402133b6c9663a5e7d (patch)
tree3085f5bd29b9c68d8ae94892b91d78586cd89a95 /tlv11.h
parenta98c9b737c943e062efa1a4fc7b31d539e1a2f11 (diff)
lots of changes to radsrv/reply and use of new radmsg stuff
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@373 e88ac4ed-0b26-0410-9574-a7f39faa03bf
Diffstat (limited to 'tlv11.h')
-rw-r--r--tlv11.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/tlv11.h b/tlv11.h
new file mode 100644
index 0000000..8a2c601
--- /dev/null
+++ b/tlv11.h
@@ -0,0 +1,23 @@
+/*
+ * Copyright (C) 2008 Stig Venaas <venaas@uninett.no>
+ *
+ * Permission to use, copy, modify, and distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ */
+
+struct tlv {
+ uint8_t t;
+ uint8_t l;
+ uint8_t *v;
+};
+
+struct tlv *maketlv(uint8_t, uint8_t, void *);
+struct tlv *copytlv(struct tlv *);
+void freetlv(struct tlv *);
+int eqtlv(struct tlv *, struct tlv *);
+struct list *copytlvlist(struct list *);
+void freetlvlist(struct list *);
+void rmtlv(struct list *, uint8_t);
+uint8_t *tlv2str(struct tlv *tlv);
+uint8_t *tlv2buf(uint8_t *, struct tlv *tlv);