Lines Matching defs:type

168 #define DECLARE_ASN1_SET_OF(type) /* filled in by mkstack.pl */
169 #define IMPLEMENT_ASN1_SET_OF(type) /* nothing, no longer needed */
234 * type.
237 /* This is the base type that holds just about everything :-) */
241 int type;
243 /* The value of the following field depends on the type being
251 * encoding of an ASN1 type. This is useful to get round
262 /* Used with ASN1 LONG type: if a long is set to this it is omitted */
303 #define DECLARE_ASN1_FUNCTIONS(type) DECLARE_ASN1_FUNCTIONS_name(type, type)
305 #define DECLARE_ASN1_ALLOC_FUNCTIONS(type) \
306 DECLARE_ASN1_ALLOC_FUNCTIONS_name(type, type)
308 #define DECLARE_ASN1_FUNCTIONS_name(type, name) \
309 DECLARE_ASN1_ALLOC_FUNCTIONS_name(type, name) \
310 DECLARE_ASN1_ENCODE_FUNCTIONS(type, name, name)
312 #define DECLARE_ASN1_FUNCTIONS_fname(type, itname, name) \
313 DECLARE_ASN1_ALLOC_FUNCTIONS_name(type, name) \
314 DECLARE_ASN1_ENCODE_FUNCTIONS(type, itname, name)
316 #define DECLARE_ASN1_ENCODE_FUNCTIONS(type, itname, name) \
317 type *d2i_##name(type **a, const unsigned char **in, long len); \
318 int i2d_##name(type *a, unsigned char **out); \
321 #define DECLARE_ASN1_ENCODE_FUNCTIONS_const(type, name) \
322 type *d2i_##name(type **a, const unsigned char **in, long len); \
323 int i2d_##name(const type *a, unsigned char **out); \
333 #define DECLARE_ASN1_ALLOC_FUNCTIONS_name(type, name) \
334 type *name##_new(void); \
335 void name##_free(type *a);
344 #define D2I_OF(type) type *(*)(type **,const unsigned char **,long)
345 #define I2D_OF(type) int (*)(type *,unsigned char **)
346 #define I2D_OF_const(type) int (*)(const type *,unsigned char **)
348 #define CHECKED_D2I_OF(type, d2i) \
349 ((d2i_of_void*) (1 ? d2i : ((D2I_OF(type))0)))
350 #define CHECKED_I2D_OF(type, i2d) \
351 ((i2d_of_void*) (1 ? i2d : ((I2D_OF(type))0)))
352 #define CHECKED_NEW_OF(type, xnew) \
353 ((void *(*)(void)) (1 ? xnew : ((type *(*)(void))0)))
354 #define CHECKED_PTR_OF(type, p) \
355 ((void*) (1 ? p : (type*)0))
356 #define CHECKED_PPTR_OF(type, p) \
357 ((void**) (1 ? p : (type**)0))
359 #define TYPEDEF_D2I_OF(type) typedef type *d2i_of_##type(type **,const unsigned char **,long)
360 #define TYPEDEF_I2D_OF(type) typedef int i2d_of_##type(type *,unsigned char **)
361 #define TYPEDEF_D2I2D_OF(type) TYPEDEF_D2I_OF(type); TYPEDEF_I2D_OF(type)
402 /* ASN1_ITEM pointer exported type */
405 /* Macro to obtain ASN1_ITEM pointer from exported type */
408 /* Macro to include ASN1_ITEM pointer from base type */
422 /* ASN1_ITEM pointer exported type */
425 /* Macro to obtain ASN1_ITEM pointer from exported type */
428 /* Macro to include ASN1_ITEM pointer from base type */
484 /* If this is set we include the string type in the output */
524 int type;
576 #define M_ASN1_STRING_type(x) ((x)->type)
650 pp,a->type,V_ASN1_UNIVERSAL)
658 pp,a->type,V_ASN1_UNIVERSAL)
666 pp,a->type,V_ASN1_UNIVERSAL)
778 void ASN1_TYPE_set(ASN1_TYPE *a, int type, void *value);
779 int ASN1_TYPE_set1(ASN1_TYPE *a, int type, const void *value);
799 ASN1_STRING * ASN1_STRING_type_new(int type );
910 int i2a_ASN1_STRING(BIO *bp, ASN1_STRING *a, int type);
929 /* given a string, return the correct type, max is the maximum length */
936 /* type is one or more of the B_ASN1_ values. */
938 long length,int type);
957 #define ASN1_dup_of(type,i2d,d2i,x) \
958 ((type*)ASN1_dup(CHECKED_I2D_OF(type, i2d), \
959 CHECKED_D2I_OF(type, d2i), \
960 CHECKED_PTR_OF(type, x)))
962 #define ASN1_dup_of_const(type,i2d,d2i,x) \
963 ((type*)ASN1_dup(CHECKED_I2D_OF(const type, i2d), \
964 CHECKED_D2I_OF(type, d2i), \
965 CHECKED_PTR_OF(const type, x)))
969 /* ASN1 alloc/free macros for when a type is only used internally */
971 #define M_ASN1_new_of(type) (type *)ASN1_item_new(ASN1_ITEM_rptr(type))
972 #define M_ASN1_free_of(x, type) \
973 ASN1_item_free(CHECKED_PTR_OF(type, x), ASN1_ITEM_rptr(type))
978 #define ASN1_d2i_fp_of(type,xnew,d2i,in,x) \
979 ((type*)ASN1_d2i_fp(CHECKED_NEW_OF(type, xnew), \
980 CHECKED_D2I_OF(type, d2i), \
982 CHECKED_PPTR_OF(type, x)))
987 #define ASN1_i2d_fp_of(type,i2d,out,x) \
988 (ASN1_i2d_fp(CHECKED_I2D_OF(type, i2d), \
990 CHECKED_PTR_OF(type, x)))
992 #define ASN1_i2d_fp_of_const(type,i2d,out,x) \
993 (ASN1_i2d_fp(CHECKED_I2D_OF(const type, i2d), \
995 CHECKED_PTR_OF(const type, x)))
1006 #define ASN1_d2i_bio_of(type,xnew,d2i,in,x) \
1007 ((type*)ASN1_d2i_bio( CHECKED_NEW_OF(type, xnew), \
1008 CHECKED_D2I_OF(type, d2i), \
1010 CHECKED_PPTR_OF(type, x)))
1015 #define ASN1_i2d_bio_of(type,i2d,out,x) \
1016 (ASN1_i2d_bio(CHECKED_I2D_OF(type, i2d), \
1018 CHECKED_PTR_OF(type, x)))
1020 #define ASN1_i2d_bio_of_const(type,i2d,out,x) \
1021 (ASN1_i2d_bio(CHECKED_I2D_OF(const type, i2d), \
1023 CHECKED_PTR_OF(const type, x)))
1062 #define ASN1_pack_string_of(type,obj,i2d,oct) \
1063 (ASN1_pack_string(CHECKED_PTR_OF(type, obj), \
1064 CHECKED_I2D_OF(type, i2d), \
1106 /* Show the ASN1 type of primitives */
1108 /* Don't show ASN1 type of ANY */
1110 /* Don't show ASN1 type of MSTRINGs */