1 /* $NetBSD: asn1-common.h,v 1.1.1.3 2014/04/24 12:45:28 pettai Exp $ */
7 #include <krb5/krb5-types.h>
9 #ifndef __asn1_common_definitions__
10 #define __asn1_common_definitions__
12 typedef struct heim_integer
{
18 typedef struct heim_octet_string
{
23 typedef char *heim_general_string
;
24 typedef char *heim_utf8_string
;
25 typedef struct heim_octet_string heim_printable_string
;
26 typedef struct heim_octet_string heim_ia5_string
;
28 typedef struct heim_bmp_string
{
33 typedef struct heim_universal_string
{
36 } heim_universal_string
;
38 typedef char *heim_visible_string
;
40 typedef struct heim_oid
{
45 typedef struct heim_bit_string
{
50 typedef struct heim_octet_string heim_any
;
51 typedef struct heim_octet_string heim_any_set
;
53 #define ASN1_MALLOC_ENCODE(T, B, BL, S, L, R) \
55 (BL) = length_##T((S)); \
60 (R) = encode_##T(((unsigned char*)(B)) + (BL) - 1, (BL), \
71 #define ASN1EXP __declspec(dllimport)
75 #define ASN1CALL __stdcall