Revive radsecproxy.h and hostport_types.h and move rsp_* into radsecproxy/.
[libradsec.git] / lib / radsecproxy / tlv11.h
1 /* Copyright (c) 2008, UNINETT AS
2  * Copyright (c) 2010, NORDUnet A/S */
3 /* See LICENSE for licensing information. */
4
5 struct tlv {
6     uint8_t t;
7     uint8_t l;
8     uint8_t *v;
9 };
10
11 struct tlv *maketlv(uint8_t, uint8_t, void *);
12 struct tlv *copytlv(struct tlv *);
13 void freetlv(struct tlv *);
14 int eqtlv(struct tlv *, struct tlv *);
15 struct list *copytlvlist(struct list *);
16 void freetlvlist(struct list *);
17 void rmtlv(struct list *, uint8_t);
18 uint8_t *tlv2str(struct tlv *tlv);
19 uint8_t *tlv2buf(uint8_t *, const struct tlv *tlv);
20
21 /* Local Variables: */
22 /* c-file-style: "stroustrup" */
23 /* End: */