diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2007-05-23 19:43:24 +0000 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2007-05-23 19:43:24 +0000 |
commit | 02ee40ad6aae6bf56b4204a3e09f6e48c77a7b59 (patch) | |
tree | 81592413f7c4176a013f4e657c656403251e9641 /src | |
parent | 8fbac48e261a33448653e7ea066c54594dc47051 (diff) | |
download | strongswan-02ee40ad6aae6bf56b4204a3e09f6e48c77a7b59.tar.bz2 strongswan-02ee40ad6aae6bf56b4204a3e09f6e48c77a7b59.tar.xz |
defined ietfAttr_t type and its destroy function
Diffstat (limited to 'src')
-rw-r--r-- | src/libstrongswan/crypto/ac.c | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/src/libstrongswan/crypto/ac.c b/src/libstrongswan/crypto/ac.c index 3a9826772..0eccfa02b 100644 --- a/src/libstrongswan/crypto/ac.c +++ b/src/libstrongswan/crypto/ac.c @@ -149,16 +149,40 @@ typedef enum { /** * access structure for an ietfAttribute */ -typedef struct ietfAttr ietfAttr_t; +typedef struct ietfAttr_t ietfAttr_t; -struct ietfAttr { +struct ietfAttr_t { + /** + * Time when attribute was first installed + */ time_t installed; + + /** + * Reference count + */ int count; + + /** + * IETF attribute kind + */ ietfAttribute_t kind; + + /** + * IETF attribute valuse + */ chunk_t value; }; /** + * Destroys an ietfAttribute_t object + */ +static void ietfAttr_destroy(ietfAttr_t *this) +{ + free(this->value.ptr); + free(this); +} + +/** * ASN.1 definition of ietfAttrSyntax */ static const asn1Object_t ietfAttrSyntaxObjects[] = |