Lines Matching refs:type
155 * type.
162 /* This is the base type that holds just about everything :-) */
165 int type; member
168 * The value of the following field depends on the type being held. It
177 * ASN1 type. This is useful to get round problems with invalid encodings
187 /* Used with ASN1 LONG type: if a long is set to this it is omitted */
242 # define DECLARE_ASN1_FUNCTIONS_attr(attr, type) \ argument
243 DECLARE_ASN1_FUNCTIONS_name_attr(attr, type, type)
244 # define DECLARE_ASN1_FUNCTIONS(type) \ argument
245 DECLARE_ASN1_FUNCTIONS_attr(extern, type)
247 # define DECLARE_ASN1_ALLOC_FUNCTIONS_attr(attr, type) \ argument
248 DECLARE_ASN1_ALLOC_FUNCTIONS_name_attr(attr, type, type)
249 # define DECLARE_ASN1_ALLOC_FUNCTIONS(type) \ argument
250 DECLARE_ASN1_ALLOC_FUNCTIONS_attr(extern, type)
252 # define DECLARE_ASN1_FUNCTIONS_name_attr(attr, type, name) \ argument
253 DECLARE_ASN1_ALLOC_FUNCTIONS_name_attr(attr, type, name) \
254 DECLARE_ASN1_ENCODE_FUNCTIONS_name_attr(attr, type, name)
255 # define DECLARE_ASN1_FUNCTIONS_name(type, name) \ argument
256 DECLARE_ASN1_FUNCTIONS_name_attr(extern, type, name)
258 # define DECLARE_ASN1_ENCODE_FUNCTIONS_attr(attr, type, itname, name) \ argument
259 DECLARE_ASN1_ENCODE_FUNCTIONS_only_attr(attr, type, name) \
261 # define DECLARE_ASN1_ENCODE_FUNCTIONS(type, itname, name) \ argument
262 DECLARE_ASN1_ENCODE_FUNCTIONS_attr(extern, type, itname, name)
264 # define DECLARE_ASN1_ENCODE_FUNCTIONS_name_attr(attr, type, name) \ argument
265 DECLARE_ASN1_ENCODE_FUNCTIONS_attr(attr, type, name, name)
266 # define DECLARE_ASN1_ENCODE_FUNCTIONS_name(type, name) \ argument
267 DECLARE_ASN1_ENCODE_FUNCTIONS_name_attr(extern, type, name)
269 # define DECLARE_ASN1_ENCODE_FUNCTIONS_only_attr(attr, type, name) \ argument
270 attr type *d2i_##name(type **a, const unsigned char **in, long len); \
271 attr int i2d_##name(const type *a, unsigned char **out);
272 # define DECLARE_ASN1_ENCODE_FUNCTIONS_only(type, name) \ argument
273 DECLARE_ASN1_ENCODE_FUNCTIONS_only_attr(extern, type, name)
280 # define DECLARE_ASN1_ALLOC_FUNCTIONS_name_attr(attr, type, name) \ argument
281 attr type *name##_new(void); \
282 attr void name##_free(type *a);
283 # define DECLARE_ASN1_ALLOC_FUNCTIONS_name(type, name) \ argument
284 DECLARE_ASN1_ALLOC_FUNCTIONS_name_attr(extern, type, name)
286 # define DECLARE_ASN1_DUP_FUNCTION_attr(attr, type) \ argument
287 DECLARE_ASN1_DUP_FUNCTION_name_attr(attr, type, type)
288 # define DECLARE_ASN1_DUP_FUNCTION(type) \ argument
289 DECLARE_ASN1_DUP_FUNCTION_attr(extern, type)
291 # define DECLARE_ASN1_DUP_FUNCTION_name_attr(attr, type, name) \ argument
292 attr type *name##_dup(const type *a);
293 # define DECLARE_ASN1_DUP_FUNCTION_name(type, name) \ argument
294 DECLARE_ASN1_DUP_FUNCTION_name_attr(extern, type, name)
307 # define D2I_OF(type) type *(*)(type **,const unsigned char **,long) argument
308 # define I2D_OF(type) int (*)(const type *,unsigned char **) argument
310 # define CHECKED_D2I_OF(type, d2i) \ argument
311 ((d2i_of_void*) (1 ? d2i : ((D2I_OF(type))0)))
312 # define CHECKED_I2D_OF(type, i2d) \ argument
313 ((i2d_of_void*) (1 ? i2d : ((I2D_OF(type))0)))
314 # define CHECKED_NEW_OF(type, xnew) \ argument
315 ((void *(*)(void)) (1 ? xnew : ((type *(*)(void))0)))
316 # define CHECKED_PTR_OF(type, p) \ argument
317 ((void*) (1 ? p : (type*)0))
318 # define CHECKED_PPTR_OF(type, p) \ argument
319 ((void**) (1 ? p : (type**)0))
321 # define TYPEDEF_D2I_OF(type) typedef type *d2i_of_##type(type **,const unsigned char **,long) argument
322 # define TYPEDEF_I2D_OF(type) typedef int i2d_of_##type(const type *,unsigned char **) argument
323 # define TYPEDEF_D2I2D_OF(type) TYPEDEF_D2I_OF(type); TYPEDEF_I2D_OF(type) argument
371 /* ASN1_ITEM pointer exported type */
374 /* Macro to obtain ASN1_ITEM pointer from exported type */
377 /* Macro to include ASN1_ITEM pointer from base type */
398 /* Lower 8 bits are reserved as an output type specifier */
438 /* If this is set we include the string type in the output */
478 int type; member
557 void ASN1_TYPE_set(ASN1_TYPE *a, int type, void *value);
558 int ASN1_TYPE_set1(ASN1_TYPE *a, int type, const void *value);
575 ASN1_STRING *ASN1_STRING_type_new(int type);
698 int i2a_ASN1_STRING(BIO *bp, const ASN1_STRING *a, int type);
725 /* given a string, return the correct type, max is the maximum length */
743 # define ASN1_dup_of(type,i2d,d2i,x) \ argument
744 ((type*)ASN1_dup(CHECKED_I2D_OF(type, i2d), \
745 CHECKED_D2I_OF(type, d2i), \
746 CHECKED_PTR_OF(const type, x)))
759 /* ASN1 alloc/free macros for when a type is only used internally */
761 # define M_ASN1_new_of(type) (type *)ASN1_item_new(ASN1_ITEM_rptr(type)) argument
762 # define M_ASN1_free_of(x, type) \ argument
763 ASN1_item_free(CHECKED_PTR_OF(type, x), ASN1_ITEM_rptr(type))
768 # define ASN1_d2i_fp_of(type,xnew,d2i,in,x) \ argument
769 ((type*)ASN1_d2i_fp(CHECKED_NEW_OF(type, xnew), \
770 CHECKED_D2I_OF(type, d2i), \
772 CHECKED_PPTR_OF(type, x)))
779 # define ASN1_i2d_fp_of(type,i2d,out,x) \ argument
780 (ASN1_i2d_fp(CHECKED_I2D_OF(type, i2d), \
782 CHECKED_PTR_OF(const type, x)))
792 # define ASN1_d2i_bio_of(type,xnew,d2i,in,x) \ argument
793 ((type*)ASN1_d2i_bio( CHECKED_NEW_OF(type, xnew), \
794 CHECKED_D2I_OF(type, d2i), \
796 CHECKED_PPTR_OF(type, x)))
803 # define ASN1_i2d_bio_of(type,i2d,out,x) \ argument
804 (ASN1_i2d_bio(CHECKED_I2D_OF(type, i2d), \
806 CHECKED_PTR_OF(const type, x)))
889 /* Show the ASN1 type of primitives */
891 /* Don't show ASN1 type of ANY */
893 /* Don't show ASN1 type of MSTRINGs */
953 # define DECLARE_ASN1_FUNCTIONS_fname(type, itname, name) \ argument
954 DECLARE_ASN1_ALLOC_FUNCTIONS_name(type, name) \
955 DECLARE_ASN1_ENCODE_FUNCTIONS(type, itname, name)
956 # define DECLARE_ASN1_FUNCTIONS_const(type) DECLARE_ASN1_FUNCTIONS(type) argument
957 # define DECLARE_ASN1_ENCODE_FUNCTIONS_const(type, name) \ argument
958 DECLARE_ASN1_ENCODE_FUNCTIONS(type, name)
959 # define I2D_OF_const(type) I2D_OF(type) argument
960 # define ASN1_dup_of_const(type,i2d,d2i,x) ASN1_dup_of(type,i2d,d2i,x) argument
961 # define ASN1_i2d_fp_of_const(type,i2d,out,x) ASN1_i2d_fp_of(type,i2d,out,x) argument
962 # define ASN1_i2d_bio_of_const(type,i2d,out,x) ASN1_i2d_bio_of(type,i2d,out,x) argument