1 /* $Heimdal: asn1-common.h 22429 2008-01-13 10:25:50Z lha $
7 #ifndef __asn1_common_definitions__
8 #define __asn1_common_definitions__
10 typedef struct heim_integer
{
16 typedef struct heim_octet_string
{
21 typedef char *heim_general_string
;
22 typedef char *heim_utf8_string
;
23 typedef char *heim_printable_string
;
24 typedef char *heim_ia5_string
;
26 typedef struct heim_bmp_string
{
31 typedef struct heim_universal_string
{
34 } heim_universal_string
;
36 typedef char *heim_visible_string
;
38 typedef struct heim_oid
{
43 typedef struct heim_bit_string
{
48 typedef struct heim_octet_string heim_any
;
49 typedef struct heim_octet_string heim_any_set
;
51 #define ASN1_MALLOC_ENCODE(T, B, BL, S, L, R) \
53 (BL) = length_##T((S)); \
58 (R) = encode_##T(((unsigned char*)(B)) + (BL) - 1, (BL), \