diff options
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[] = |