OpenCoverage

asn1t.h

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/openssl/src/include/openssl/asn1t.h
Switch to Source codePreprocessed file
LineSourceCount
1struct ASN1_TEMPLATE_st {-
2 unsigned long flags;-
3 long tag;-
4 unsigned long offset;-
5 const char *field_name;-
6 ASN1_ITEM_EXP *item;-
7};-
8-
9-
10-
11-
12-
13-
14typedef struct ASN1_ADB_TABLE_st ASN1_ADB_TABLE;-
15typedef struct ASN1_ADB_st ASN1_ADB;-
16-
17struct ASN1_ADB_st {-
18 unsigned long flags;-
19 unsigned long offset;-
20 int (*adb_cb)(long *psel);-
21 const ASN1_ADB_TABLE *tbl;-
22 long tblcount;-
23 const ASN1_TEMPLATE *default_tt;-
24 const ASN1_TEMPLATE *null_tt;-
25};-
26-
27struct ASN1_ADB_TABLE_st {-
28 long value;-
29 const ASN1_TEMPLATE tt;-
30};-
31struct ASN1_ITEM_st {-
32 char itype;-
33-
34 long utype;-
35 const ASN1_TEMPLATE *templates;-
36-
37 long tcount;-
38 const void *funcs;-
39 long size;-
40 const char *sname;-
41};-
42struct ASN1_TLC_st {-
43 char valid;-
44 int ret;-
45 long plen;-
46 int ptag;-
47 int pclass;-
48 int hdrlen;-
49};-
50-
51-
52typedef int ASN1_ex_d2i(ASN1_VALUE **pval, const unsigned char **in, long len,-
53 const ASN1_ITEM *it, int tag, int aclass, char opt,-
54 ASN1_TLC *ctx);-
55-
56typedef int ASN1_ex_i2d(ASN1_VALUE **pval, unsigned char **out,-
57 const ASN1_ITEM *it, int tag, int aclass);-
58typedef int ASN1_ex_new_func(ASN1_VALUE **pval, const ASN1_ITEM *it);-
59typedef void ASN1_ex_free_func(ASN1_VALUE **pval, const ASN1_ITEM *it);-
60-
61typedef int ASN1_ex_print_func(BIO *out, ASN1_VALUE **pval,-
62 int indent, const char *fname,-
63 const ASN1_PCTX *pctx);-
64-
65typedef int ASN1_primitive_i2c(ASN1_VALUE **pval, unsigned char *cont,-
66 int *putype, const ASN1_ITEM *it);-
67typedef int ASN1_primitive_c2i(ASN1_VALUE **pval, const unsigned char *cont,-
68 int len, int utype, char *free_cont,-
69 const ASN1_ITEM *it);-
70typedef int ASN1_primitive_print(BIO *out, ASN1_VALUE **pval,-
71 const ASN1_ITEM *it, int indent,-
72 const ASN1_PCTX *pctx);-
73-
74typedef struct ASN1_EXTERN_FUNCS_st {-
75 void *app_data;-
76 ASN1_ex_new_func *asn1_ex_new;-
77 ASN1_ex_free_func *asn1_ex_free;-
78 ASN1_ex_free_func *asn1_ex_clear;-
79 ASN1_ex_d2i *asn1_ex_d2i;-
80 ASN1_ex_i2d *asn1_ex_i2d;-
81 ASN1_ex_print_func *asn1_ex_print;-
82} ASN1_EXTERN_FUNCS;-
83-
84typedef struct ASN1_PRIMITIVE_FUNCS_st {-
85 void *app_data;-
86 unsigned long flags;-
87 ASN1_ex_new_func *prim_new;-
88 ASN1_ex_free_func *prim_free;-
89 ASN1_ex_free_func *prim_clear;-
90 ASN1_primitive_c2i *prim_c2i;-
91 ASN1_primitive_i2c *prim_i2c;-
92 ASN1_primitive_print *prim_print;-
93} ASN1_PRIMITIVE_FUNCS;-
94typedef int ASN1_aux_cb(int operation, ASN1_VALUE **in, const ASN1_ITEM *it,-
95 void *exarg);-
96-
97typedef struct ASN1_AUX_st {-
98 void *app_data;-
99 int flags;-
100 int ref_offset;-
101 int ref_lock;-
102 ASN1_aux_cb *asn1_cb;-
103 int enc_offset;-
104} ASN1_AUX;-
105-
106-
107typedef struct ASN1_PRINT_ARG_st {-
108 BIO *out;-
109 int indent;-
110 const ASN1_PCTX *pctx;-
111} ASN1_PRINT_ARG;-
112-
113-
114typedef struct ASN1_STREAM_ARG_st {-
115-
116 BIO *out;-
117-
118 BIO *ndef_bio;-
119-
120 unsigned char **boundary;-
121} ASN1_STREAM_ARG;-
122extern const ASN1_ITEM ASN1_BOOLEAN_it;-
123extern const ASN1_ITEM ASN1_TBOOLEAN_it;-
124extern const ASN1_ITEM ASN1_FBOOLEAN_it;-
125extern const ASN1_ITEM ASN1_SEQUENCE_it;-
126extern const ASN1_ITEM CBIGNUM_it;-
127extern const ASN1_ITEM BIGNUM_it;-
128extern const ASN1_ITEM INT32_it;-
129extern const ASN1_ITEM ZINT32_it;-
130extern const ASN1_ITEM UINT32_it;-
131extern const ASN1_ITEM ZUINT32_it;-
132extern const ASN1_ITEM INT64_it;-
133extern const ASN1_ITEM ZINT64_it;-
134extern const ASN1_ITEM UINT64_it;-
135extern const ASN1_ITEM ZUINT64_it;-
136-
137-
138-
139-
140-
141-
142-
143extern const ASN1_ITEM LONG_it;-
144extern const ASN1_ITEM ZLONG_it;-
145-
146-
147struct stack_st_ASN1_VALUE; typedef int (*sk_ASN1_VALUE_compfunc)(const ASN1_VALUE * const *a, const ASN1_VALUE *const *b); typedef void (*sk_ASN1_VALUE_freefunc)(ASN1_VALUE *a); typedef ASN1_VALUE * (*sk_ASN1_VALUE_copyfunc)(const ASN1_VALUE *a); static inline int sk_ASN1_VALUE_num(const struct stack_st_ASN1_VALUE *sk) { return
executed 3080894 times by 1 test: return OPENSSL_sk_num((const OPENSSL_STACK *)sk);
Executed by:
  • libcrypto.so.1.1
OPENSSL_sk_num((const OPENSSL_STACK *)sk);
executed 3080894 times by 1 test: return OPENSSL_sk_num((const OPENSSL_STACK *)sk);
Executed by:
  • libcrypto.so.1.1
} static inline ASN1_VALUE *sk_ASN1_VALUE_value(const struct stack_st_ASN1_VALUE *sk, int idx) { return
executed 1714013 times by 1 test: return (ASN1_VALUE *)OPENSSL_sk_value((const OPENSSL_STACK *)sk, idx);
Executed by:
  • libcrypto.so.1.1
(ASN1_VALUE *)OPENSSL_sk_value((const OPENSSL_STACK *)sk, idx);
executed 1714013 times by 1 test: return (ASN1_VALUE *)OPENSSL_sk_value((const OPENSSL_STACK *)sk, idx);
Executed by:
  • libcrypto.so.1.1
} static inline struct stack_st_ASN1_VALUE *sk_ASN1_VALUE_new(sk_ASN1_VALUE_compfunc compare) { return
never executed: return (struct stack_st_ASN1_VALUE *)OPENSSL_sk_new((OPENSSL_sk_compfunc)compare);
(struct stack_st_ASN1_VALUE *)OPENSSL_sk_new((OPENSSL_sk_compfunc)compare);
never executed: return (struct stack_st_ASN1_VALUE *)OPENSSL_sk_new((OPENSSL_sk_compfunc)compare);
} static inline struct stack_st_ASN1_VALUE *sk_ASN1_VALUE_new_null(void) { return
executed 468803 times by 1 test: return (struct stack_st_ASN1_VALUE *)OPENSSL_sk_new_null();
Executed by:
  • libcrypto.so.1.1
(struct stack_st_ASN1_VALUE *)OPENSSL_sk_new_null();
executed 468803 times by 1 test: return (struct stack_st_ASN1_VALUE *)OPENSSL_sk_new_null();
Executed by:
  • libcrypto.so.1.1
} static inline struct stack_st_ASN1_VALUE *sk_ASN1_VALUE_new_reserve(sk_ASN1_VALUE_compfunc compare, int n) { return
never executed: return (struct stack_st_ASN1_VALUE *)OPENSSL_sk_new_reserve((OPENSSL_sk_compfunc)compare, n);
(struct stack_st_ASN1_VALUE *)OPENSSL_sk_new_reserve((OPENSSL_sk_compfunc)compare, n);
never executed: return (struct stack_st_ASN1_VALUE *)OPENSSL_sk_new_reserve((OPENSSL_sk_compfunc)compare, n);
} static inline int sk_ASN1_VALUE_reserve(struct stack_st_ASN1_VALUE *sk, int n) { return
never executed: return OPENSSL_sk_reserve((OPENSSL_STACK *)sk, n);
OPENSSL_sk_reserve((OPENSSL_STACK *)sk, n);
never executed: return OPENSSL_sk_reserve((OPENSSL_STACK *)sk, n);
} static inline void sk_ASN1_VALUE_free(struct stack_st_ASN1_VALUE *sk) { OPENSSL_sk_free((OPENSSL_STACK *)sk); }
executed 688095 times by 1 test: end of block
Executed by:
  • libcrypto.so.1.1
static inline void sk_ASN1_VALUE_zero(struct stack_st_ASN1_VALUE *sk) { OPENSSL_sk_zero((OPENSSL_STACK *)sk); }
never executed: end of block
static inline ASN1_VALUE *sk_ASN1_VALUE_delete(struct stack_st_ASN1_VALUE *sk, int i) { return
never executed: return (ASN1_VALUE *)OPENSSL_sk_delete((OPENSSL_STACK *)sk, i);
(ASN1_VALUE *)OPENSSL_sk_delete((OPENSSL_STACK *)sk, i);
never executed: return (ASN1_VALUE *)OPENSSL_sk_delete((OPENSSL_STACK *)sk, i);
} static inline ASN1_VALUE *sk_ASN1_VALUE_delete_ptr(struct stack_st_ASN1_VALUE *sk, ASN1_VALUE *ptr) { return
never executed: return (ASN1_VALUE *)OPENSSL_sk_delete_ptr((OPENSSL_STACK *)sk, (const void *)ptr);
(ASN1_VALUE *)OPENSSL_sk_delete_ptr((OPENSSL_STACK *)sk, (const void *)ptr);
never executed: return (ASN1_VALUE *)OPENSSL_sk_delete_ptr((OPENSSL_STACK *)sk, (const void *)ptr);
} static inline int sk_ASN1_VALUE_push(struct stack_st_ASN1_VALUE *sk, ASN1_VALUE *ptr) { return
executed 696052 times by 1 test: return OPENSSL_sk_push((OPENSSL_STACK *)sk, (const void *)ptr);
Executed by:
  • libcrypto.so.1.1
OPENSSL_sk_push((OPENSSL_STACK *)sk, (const void *)ptr);
executed 696052 times by 1 test: return OPENSSL_sk_push((OPENSSL_STACK *)sk, (const void *)ptr);
Executed by:
  • libcrypto.so.1.1
} static inline int sk_ASN1_VALUE_unshift(struct stack_st_ASN1_VALUE *sk, ASN1_VALUE *ptr) { return
never executed: return OPENSSL_sk_unshift((OPENSSL_STACK *)sk, (const void *)ptr);
OPENSSL_sk_unshift((OPENSSL_STACK *)sk, (const void *)ptr);
never executed: return OPENSSL_sk_unshift((OPENSSL_STACK *)sk, (const void *)ptr);
} static inline ASN1_VALUE *sk_ASN1_VALUE_pop(struct stack_st_ASN1_VALUE *sk) { return
never executed: return (ASN1_VALUE *)OPENSSL_sk_pop((OPENSSL_STACK *)sk);
(ASN1_VALUE *)OPENSSL_sk_pop((OPENSSL_STACK *)sk);
never executed: return (ASN1_VALUE *)OPENSSL_sk_pop((OPENSSL_STACK *)sk);
} static inline ASN1_VALUE *sk_ASN1_VALUE_shift(struct stack_st_ASN1_VALUE *sk) { return
never executed: return (ASN1_VALUE *)OPENSSL_sk_shift((OPENSSL_STACK *)sk);
(ASN1_VALUE *)OPENSSL_sk_shift((OPENSSL_STACK *)sk);
never executed: return (ASN1_VALUE *)OPENSSL_sk_shift((OPENSSL_STACK *)sk);
} static inline void sk_ASN1_VALUE_pop_free(struct stack_st_ASN1_VALUE *sk, sk_ASN1_VALUE_freefunc freefunc) { OPENSSL_sk_pop_free((OPENSSL_STACK *)sk, (OPENSSL_sk_freefunc)freefunc); }
never executed: end of block
static inline int sk_ASN1_VALUE_insert(struct stack_st_ASN1_VALUE *sk, ASN1_VALUE *ptr, int idx) { return
never executed: return OPENSSL_sk_insert((OPENSSL_STACK *)sk, (const void *)ptr, idx);
OPENSSL_sk_insert((OPENSSL_STACK *)sk, (const void *)ptr, idx);
never executed: return OPENSSL_sk_insert((OPENSSL_STACK *)sk, (const void *)ptr, idx);
} static inline ASN1_VALUE *sk_ASN1_VALUE_set(struct stack_st_ASN1_VALUE *sk, int idx, ASN1_VALUE *ptr) { return
executed 783 times by 1 test: return (ASN1_VALUE *)OPENSSL_sk_set((OPENSSL_STACK *)sk, idx, (const void *)ptr);
Executed by:
  • libcrypto.so.1.1
(ASN1_VALUE *)OPENSSL_sk_set((OPENSSL_STACK *)sk, idx, (const void *)ptr);
executed 783 times by 1 test: return (ASN1_VALUE *)OPENSSL_sk_set((OPENSSL_STACK *)sk, idx, (const void *)ptr);
Executed by:
  • libcrypto.so.1.1
} static inline int sk_ASN1_VALUE_find(struct stack_st_ASN1_VALUE *sk, ASN1_VALUE *ptr) { return
never executed: return OPENSSL_sk_find((OPENSSL_STACK *)sk, (const void *)ptr);
OPENSSL_sk_find((OPENSSL_STACK *)sk, (const void *)ptr);
never executed: return OPENSSL_sk_find((OPENSSL_STACK *)sk, (const void *)ptr);
} static inline int sk_ASN1_VALUE_find_ex(struct stack_st_ASN1_VALUE *sk, ASN1_VALUE *ptr) { return
never executed: return OPENSSL_sk_find_ex((OPENSSL_STACK *)sk, (const void *)ptr);
OPENSSL_sk_find_ex((OPENSSL_STACK *)sk, (const void *)ptr);
never executed: return OPENSSL_sk_find_ex((OPENSSL_STACK *)sk, (const void *)ptr);
} static inline void sk_ASN1_VALUE_sort(struct stack_st_ASN1_VALUE *sk) { OPENSSL_sk_sort((OPENSSL_STACK *)sk); }
never executed: end of block
static inline int sk_ASN1_VALUE_is_sorted(const struct stack_st_ASN1_VALUE *sk) { return
never executed: return OPENSSL_sk_is_sorted((const OPENSSL_STACK *)sk);
OPENSSL_sk_is_sorted((const OPENSSL_STACK *)sk);
never executed: return OPENSSL_sk_is_sorted((const OPENSSL_STACK *)sk);
} static inline struct stack_st_ASN1_VALUE * sk_ASN1_VALUE_dup(const struct stack_st_ASN1_VALUE *sk) { return
never executed: return (struct stack_st_ASN1_VALUE *)OPENSSL_sk_dup((const OPENSSL_STACK *)sk);
(struct stack_st_ASN1_VALUE *)OPENSSL_sk_dup((const OPENSSL_STACK *)sk);
never executed: return (struct stack_st_ASN1_VALUE *)OPENSSL_sk_dup((const OPENSSL_STACK *)sk);
} static inline struct stack_st_ASN1_VALUE *sk_ASN1_VALUE_deep_copy(const struct stack_st_ASN1_VALUE *sk, sk_ASN1_VALUE_copyfunc copyfunc, sk_ASN1_VALUE_freefunc freefunc) { return
never executed: return (struct stack_st_ASN1_VALUE *)OPENSSL_sk_deep_copy((const OPENSSL_STACK *)sk, (OPENSSL_sk_copyfunc)copyfunc, (OPENSSL_sk_freefunc)freefunc);
(struct stack_st_ASN1_VALUE *)OPENSSL_sk_deep_copy((const OPENSSL_STACK *)sk, (OPENSSL_sk_copyfunc)copyfunc, (OPENSSL_sk_freefunc)freefunc);
never executed: return (struct stack_st_ASN1_VALUE *)OPENSSL_sk_deep_copy((const OPENSSL_STACK *)sk, (OPENSSL_sk_copyfunc)copyfunc, (OPENSSL_sk_freefunc)freefunc);
} static inline sk_ASN1_VALUE_compfunc sk_ASN1_VALUE_set_cmp_func(struct stack_st_ASN1_VALUE *sk, sk_ASN1_VALUE_compfunc compare) { return
never executed: return (sk_ASN1_VALUE_compfunc)OPENSSL_sk_set_cmp_func((OPENSSL_STACK *)sk, (OPENSSL_sk_compfunc)compare);
(sk_ASN1_VALUE_compfunc)OPENSSL_sk_set_cmp_func((OPENSSL_STACK *)sk, (OPENSSL_sk_compfunc)compare);
never executed: return (sk_ASN1_VALUE_compfunc)OPENSSL_sk_set_cmp_func((OPENSSL_STACK *)sk, (OPENSSL_sk_compfunc)compare);
}
0-3080894
148-
149-
150-
151int ASN1_item_ex_new(ASN1_VALUE **pval, const ASN1_ITEM *it);-
152void ASN1_item_ex_free(ASN1_VALUE **pval, const ASN1_ITEM *it);-
153-
154int ASN1_item_ex_d2i(ASN1_VALUE **pval, const unsigned char **in, long len,-
155 const ASN1_ITEM *it, int tag, int aclass, char opt,-
156 ASN1_TLC *ctx);-
157-
158int ASN1_item_ex_i2d(ASN1_VALUE **pval, unsigned char **out,-
159 const ASN1_ITEM *it, int tag, int aclass);-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.2