1 /* LibTomCrypt, modular cryptographic library -- Tom St Denis
3 * LibTomCrypt is a library that provides various cryptographic
4 * algorithms in a highly modular and flexible manner.
6 * The library is free for all purposes without any express
12 @file der_sequence_shrink.c
13 Free memory allocated for CONSTRUCTED, SET or SEQUENCE elements by der_decode_sequence_flexi(), Steffen Jaeckel
19 Free memory allocated for CONSTRUCTED,
20 SET or SEQUENCE elements by der_decode_sequence_flexi()
21 @param in The list to shrink
23 void der_sequence_shrink(ltc_asn1_list *in)
27 /* now walk the list and free stuff */
29 /* is there a child? */
31 der_sequence_shrink(in->child);
35 case LTC_ASN1_CONSTRUCTED:
37 case LTC_ASN1_SEQUENCE : if (in->data != NULL) { XFREE(in->data); in->data = NULL; } break;
41 /* move to next and free current */
48 /* ref: $Format:%D$ */
49 /* git commit: $Format:%H$ */
50 /* commit time: $Format:%ai$ */