Add OpenSSL linking exemption to GPL license.
[radsecproxy.git] / tlv11.h
1 /* Copyright (c) 2006-2009, Stig Venaas, UNINETT AS.
2  * Copyright (c) 2010, UNINETT AS, NORDUnet A/S.
3  * Copyright (c) 2010-2012, NORDUnet A/S. */
4 /* See LICENSE for licensing information. */
5
6 struct tlv {
7     uint8_t t;
8     uint8_t l;
9     uint8_t *v;
10 };
11
12 struct tlv *maketlv(uint8_t, uint8_t, void *);
13 struct tlv *copytlv(struct tlv *);
14 void freetlv(struct tlv *);
15 int eqtlv(struct tlv *, struct tlv *);
16 struct list *copytlvlist(struct list *);
17 void freetlvlist(struct list *);
18 void rmtlv(struct list *, uint8_t);
19 uint8_t *tlv2str(struct tlv *tlv);
20 uint8_t *tlv2buf(uint8_t *, const struct tlv *tlv);
21
22 /* Local Variables: */
23 /* c-file-style: "stroustrup" */
24 /* End: */