5 #include <krb5-types.h>
7 #ifndef __asn1_common_definitions__
8 #define __asn1_common_definitions__
10 typedef struct heim_integer
{
16 #ifndef __HEIM_OCTET_STRING__
17 #define __HEIM_OCTET_STRING__
18 typedef struct heim_octet_string
{
24 typedef char *heim_general_string
;
25 typedef char *heim_utf8_string
;
26 typedef struct heim_octet_string heim_printable_string
;
27 typedef struct heim_octet_string heim_ia5_string
;
29 typedef struct heim_bmp_string
{
34 typedef struct heim_universal_string
{
37 } heim_universal_string
;
39 typedef char *heim_visible_string
;
41 typedef struct heim_oid
{
46 typedef struct heim_bit_string
{
51 typedef struct heim_octet_string heim_any
;
52 typedef struct heim_octet_string heim_any_set
;
54 #define ASN1_MALLOC_ENCODE(T, B, BL, S, L, R) \
56 (BL) = length_##T((S)); \
61 (R) = encode_##T(((unsigned char*)(B)) + (BL) - 1, (BL), \
72 #define ASN1EXP __declspec(dllimport)
76 #define ASN1CALL __stdcall