vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1 | /*- |
| 2 | * Copyright (c) 2003 Lev Walkin <vlm@lionet.info>. All rights reserved. |
| 3 | * Redistribution and modifications are permitted subject to BSD license. |
| 4 | */ |
| 5 | #ifndef _CONSTR_SET_OF_H_ |
| 6 | #define _CONSTR_SET_OF_H_ |
| 7 | |
| 8 | #include <constr_TYPE.h> |
| 9 | |
| 10 | typedef struct asn1_SET_OF_element_s { |
| 11 | ber_tlv_tag_t tag; /* Outmost (most immediate) tag */ |
vlm | 3147308 | 2004-06-06 07:20:02 +0000 | [diff] [blame] | 12 | asn1_TYPE_descriptor_t *type; /* Member type descriptor */ |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13 | } asn1_SET_OF_element_t; |
| 14 | |
| 15 | typedef struct asn1_SET_OF_specifics_s { |
| 16 | /* |
| 17 | * Target structure description. |
| 18 | */ |
| 19 | int struct_size; /* Size of the target structure. */ |
| 20 | int ctx_offset; /* Offset of the ber_dec_ctx_t member */ |
| 21 | |
| 22 | /* |
| 23 | * Members of the SET OF list. |
| 24 | */ |
| 25 | asn1_SET_OF_element_t *element; |
| 26 | } asn1_SET_OF_specifics_t; |
| 27 | |
| 28 | /* |
| 29 | * A set specialized functions dealing with the SET OF type. |
| 30 | */ |
| 31 | asn_constr_check_f SET_OF_constraint; |
| 32 | ber_type_decoder_f SET_OF_decode_ber; |
| 33 | der_type_encoder_f SET_OF_encode_der; |
| 34 | asn_struct_print_f SET_OF_print; |
| 35 | asn_struct_free_f SET_OF_free; |
| 36 | |
| 37 | #endif /* _CONSTR_SET_OF_H_ */ |