Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssl/src/include/openssl/asn1t.h |
Switch to Source code | Preprocessed file |
Line | Source | Count |
---|---|---|
1 | struct 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 | - | |
14 | typedef struct ASN1_ADB_TABLE_st ASN1_ADB_TABLE; | - |
15 | typedef struct ASN1_ADB_st ASN1_ADB; | - |
16 | - | |
17 | struct 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 | - | |
27 | struct ASN1_ADB_TABLE_st { | - |
28 | long value; | - |
29 | const ASN1_TEMPLATE tt; | - |
30 | }; | - |
31 | struct 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 | }; | - |
42 | struct ASN1_TLC_st { | - |
43 | char valid; | - |
44 | int ret; | - |
45 | long plen; | - |
46 | int ptag; | - |
47 | int pclass; | - |
48 | int hdrlen; | - |
49 | }; | - |
50 | - | |
51 | - | |
52 | typedef 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 | - | |
56 | typedef int ASN1_ex_i2d(ASN1_VALUE **pval, unsigned char **out, | - |
57 | const ASN1_ITEM *it, int tag, int aclass); | - |
58 | typedef int ASN1_ex_new_func(ASN1_VALUE **pval, const ASN1_ITEM *it); | - |
59 | typedef void ASN1_ex_free_func(ASN1_VALUE **pval, const ASN1_ITEM *it); | - |
60 | - | |
61 | typedef int ASN1_ex_print_func(BIO *out, ASN1_VALUE **pval, | - |
62 | int indent, const char *fname, | - |
63 | const ASN1_PCTX *pctx); | - |
64 | - | |
65 | typedef int ASN1_primitive_i2c(ASN1_VALUE **pval, unsigned char *cont, | - |
66 | int *putype, const ASN1_ITEM *it); | - |
67 | typedef int ASN1_primitive_c2i(ASN1_VALUE **pval, const unsigned char *cont, | - |
68 | int len, int utype, char *free_cont, | - |
69 | const ASN1_ITEM *it); | - |
70 | typedef int ASN1_primitive_print(BIO *out, ASN1_VALUE **pval, | - |
71 | const ASN1_ITEM *it, int indent, | - |
72 | const ASN1_PCTX *pctx); | - |
73 | - | |
74 | typedef 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 | - | |
84 | typedef 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; | - |
94 | typedef int ASN1_aux_cb(int operation, ASN1_VALUE **in, const ASN1_ITEM *it, | - |
95 | void *exarg); | - |
96 | - | |
97 | typedef 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 | - | |
107 | typedef struct ASN1_PRINT_ARG_st { | - |
108 | BIO *out; | - |
109 | int indent; | - |
110 | const ASN1_PCTX *pctx; | - |
111 | } ASN1_PRINT_ARG; | - |
112 | - | |
113 | - | |
114 | typedef struct ASN1_STREAM_ARG_st { | - |
115 | - | |
116 | BIO *out; | - |
117 | - | |
118 | BIO *ndef_bio; | - |
119 | - | |
120 | unsigned char **boundary; | - |
121 | } ASN1_STREAM_ARG; | - |
122 | extern const ASN1_ITEM ASN1_BOOLEAN_it; | - |
123 | extern const ASN1_ITEM ASN1_TBOOLEAN_it; | - |
124 | extern const ASN1_ITEM ASN1_FBOOLEAN_it; | - |
125 | extern const ASN1_ITEM ASN1_SEQUENCE_it; | - |
126 | extern const ASN1_ITEM CBIGNUM_it; | - |
127 | extern const ASN1_ITEM BIGNUM_it; | - |
128 | extern const ASN1_ITEM INT32_it; | - |
129 | extern const ASN1_ITEM ZINT32_it; | - |
130 | extern const ASN1_ITEM UINT32_it; | - |
131 | extern const ASN1_ITEM ZUINT32_it; | - |
132 | extern const ASN1_ITEM INT64_it; | - |
133 | extern const ASN1_ITEM ZINT64_it; | - |
134 | extern const ASN1_ITEM UINT64_it; | - |
135 | extern const ASN1_ITEM ZUINT64_it; | - |
136 | - | |
137 | - | |
138 | - | |
139 | - | |
140 | - | |
141 | - | |
142 | - | |
143 | extern const ASN1_ITEM LONG_it; | - |
144 | extern const ASN1_ITEM ZLONG_it; | - |
145 | - | |
146 | - | |
147 | struct 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: OPENSSL_sk_num((const OPENSSL_STACK *)sk);return OPENSSL_sk_num((const OPENSSL_STACK *)sk); Executed by:
executed 3080894 times by 1 test: } static inline ASN1_VALUE *sk_ASN1_VALUE_value(const struct stack_st_ASN1_VALUE *sk, int idx) { returnreturn OPENSSL_sk_num((const OPENSSL_STACK *)sk); Executed by:
executed 1714013 times by 1 test: (ASN1_VALUE *)OPENSSL_sk_value((const OPENSSL_STACK *)sk, idx);return (ASN1_VALUE *)OPENSSL_sk_value((const OPENSSL_STACK *)sk, idx); Executed by:
executed 1714013 times by 1 test: } static inline struct stack_st_ASN1_VALUE *sk_ASN1_VALUE_new(sk_ASN1_VALUE_compfunc compare) { returnreturn (ASN1_VALUE *)OPENSSL_sk_value((const OPENSSL_STACK *)sk, idx); Executed by:
never executed: (struct stack_st_ASN1_VALUE *)OPENSSL_sk_new((OPENSSL_sk_compfunc)compare);return (struct stack_st_ASN1_VALUE *)OPENSSL_sk_new((OPENSSL_sk_compfunc)compare); never executed: } static inline struct stack_st_ASN1_VALUE *sk_ASN1_VALUE_new_null(void) { returnreturn (struct stack_st_ASN1_VALUE *)OPENSSL_sk_new((OPENSSL_sk_compfunc)compare); executed 468803 times by 1 test: (struct stack_st_ASN1_VALUE *)OPENSSL_sk_new_null();return (struct stack_st_ASN1_VALUE *)OPENSSL_sk_new_null(); Executed by:
executed 468803 times by 1 test: } static inline struct stack_st_ASN1_VALUE *sk_ASN1_VALUE_new_reserve(sk_ASN1_VALUE_compfunc compare, int n) { returnreturn (struct stack_st_ASN1_VALUE *)OPENSSL_sk_new_null(); Executed by:
never executed: (struct stack_st_ASN1_VALUE *)OPENSSL_sk_new_reserve((OPENSSL_sk_compfunc)compare, n);return (struct stack_st_ASN1_VALUE *)OPENSSL_sk_new_reserve((OPENSSL_sk_compfunc)compare, n); never executed: } static inline int sk_ASN1_VALUE_reserve(struct stack_st_ASN1_VALUE *sk, int n) { returnreturn (struct stack_st_ASN1_VALUE *)OPENSSL_sk_new_reserve((OPENSSL_sk_compfunc)compare, n); never executed: OPENSSL_sk_reserve((OPENSSL_STACK *)sk, n);return OPENSSL_sk_reserve((OPENSSL_STACK *)sk, n); never executed: } static inline void sk_ASN1_VALUE_free(struct stack_st_ASN1_VALUE *sk) { OPENSSL_sk_free((OPENSSL_STACK *)sk); }return OPENSSL_sk_reserve((OPENSSL_STACK *)sk, n); executed 688095 times by 1 test: static inline void sk_ASN1_VALUE_zero(struct stack_st_ASN1_VALUE *sk) { OPENSSL_sk_zero((OPENSSL_STACK *)sk); }end of block Executed by:
never executed: static inline ASN1_VALUE *sk_ASN1_VALUE_delete(struct stack_st_ASN1_VALUE *sk, int i) { returnend of block never executed: (ASN1_VALUE *)OPENSSL_sk_delete((OPENSSL_STACK *)sk, i);return (ASN1_VALUE *)OPENSSL_sk_delete((OPENSSL_STACK *)sk, i); never executed: } static inline ASN1_VALUE *sk_ASN1_VALUE_delete_ptr(struct stack_st_ASN1_VALUE *sk, ASN1_VALUE *ptr) { returnreturn (ASN1_VALUE *)OPENSSL_sk_delete((OPENSSL_STACK *)sk, i); never executed: (ASN1_VALUE *)OPENSSL_sk_delete_ptr((OPENSSL_STACK *)sk, (const void *)ptr);return (ASN1_VALUE *)OPENSSL_sk_delete_ptr((OPENSSL_STACK *)sk, (const void *)ptr); never executed: } static inline int sk_ASN1_VALUE_push(struct stack_st_ASN1_VALUE *sk, ASN1_VALUE *ptr) { returnreturn (ASN1_VALUE *)OPENSSL_sk_delete_ptr((OPENSSL_STACK *)sk, (const void *)ptr); executed 696052 times by 1 test: OPENSSL_sk_push((OPENSSL_STACK *)sk, (const void *)ptr);return OPENSSL_sk_push((OPENSSL_STACK *)sk, (const void *)ptr); Executed by:
executed 696052 times by 1 test: } static inline int sk_ASN1_VALUE_unshift(struct stack_st_ASN1_VALUE *sk, ASN1_VALUE *ptr) { returnreturn OPENSSL_sk_push((OPENSSL_STACK *)sk, (const void *)ptr); Executed by:
never executed: OPENSSL_sk_unshift((OPENSSL_STACK *)sk, (const void *)ptr);return OPENSSL_sk_unshift((OPENSSL_STACK *)sk, (const void *)ptr); never executed: } static inline ASN1_VALUE *sk_ASN1_VALUE_pop(struct stack_st_ASN1_VALUE *sk) { returnreturn OPENSSL_sk_unshift((OPENSSL_STACK *)sk, (const void *)ptr); never executed: (ASN1_VALUE *)OPENSSL_sk_pop((OPENSSL_STACK *)sk);return (ASN1_VALUE *)OPENSSL_sk_pop((OPENSSL_STACK *)sk); never executed: } static inline ASN1_VALUE *sk_ASN1_VALUE_shift(struct stack_st_ASN1_VALUE *sk) { returnreturn (ASN1_VALUE *)OPENSSL_sk_pop((OPENSSL_STACK *)sk); never executed: (ASN1_VALUE *)OPENSSL_sk_shift((OPENSSL_STACK *)sk);return (ASN1_VALUE *)OPENSSL_sk_shift((OPENSSL_STACK *)sk); never executed: } 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); }return (ASN1_VALUE *)OPENSSL_sk_shift((OPENSSL_STACK *)sk); never executed: static inline int sk_ASN1_VALUE_insert(struct stack_st_ASN1_VALUE *sk, ASN1_VALUE *ptr, int idx) { returnend of block never executed: OPENSSL_sk_insert((OPENSSL_STACK *)sk, (const void *)ptr, idx);return OPENSSL_sk_insert((OPENSSL_STACK *)sk, (const void *)ptr, idx); never executed: } static inline ASN1_VALUE *sk_ASN1_VALUE_set(struct stack_st_ASN1_VALUE *sk, int idx, ASN1_VALUE *ptr) { returnreturn OPENSSL_sk_insert((OPENSSL_STACK *)sk, (const void *)ptr, idx); executed 783 times by 1 test: (ASN1_VALUE *)OPENSSL_sk_set((OPENSSL_STACK *)sk, idx, (const void *)ptr);return (ASN1_VALUE *)OPENSSL_sk_set((OPENSSL_STACK *)sk, idx, (const void *)ptr); Executed by:
executed 783 times by 1 test: } static inline int sk_ASN1_VALUE_find(struct stack_st_ASN1_VALUE *sk, ASN1_VALUE *ptr) { returnreturn (ASN1_VALUE *)OPENSSL_sk_set((OPENSSL_STACK *)sk, idx, (const void *)ptr); Executed by:
never executed: OPENSSL_sk_find((OPENSSL_STACK *)sk, (const void *)ptr);return OPENSSL_sk_find((OPENSSL_STACK *)sk, (const void *)ptr); never executed: } static inline int sk_ASN1_VALUE_find_ex(struct stack_st_ASN1_VALUE *sk, ASN1_VALUE *ptr) { returnreturn OPENSSL_sk_find((OPENSSL_STACK *)sk, (const void *)ptr); never executed: OPENSSL_sk_find_ex((OPENSSL_STACK *)sk, (const void *)ptr);return OPENSSL_sk_find_ex((OPENSSL_STACK *)sk, (const void *)ptr); never executed: } static inline void sk_ASN1_VALUE_sort(struct stack_st_ASN1_VALUE *sk) { OPENSSL_sk_sort((OPENSSL_STACK *)sk); }return OPENSSL_sk_find_ex((OPENSSL_STACK *)sk, (const void *)ptr); never executed: static inline int sk_ASN1_VALUE_is_sorted(const struct stack_st_ASN1_VALUE *sk) { returnend of block never executed: OPENSSL_sk_is_sorted((const OPENSSL_STACK *)sk);return OPENSSL_sk_is_sorted((const OPENSSL_STACK *)sk); never executed: } static inline struct stack_st_ASN1_VALUE * sk_ASN1_VALUE_dup(const struct stack_st_ASN1_VALUE *sk) { returnreturn OPENSSL_sk_is_sorted((const OPENSSL_STACK *)sk); never executed: (struct stack_st_ASN1_VALUE *)OPENSSL_sk_dup((const OPENSSL_STACK *)sk);return (struct stack_st_ASN1_VALUE *)OPENSSL_sk_dup((const OPENSSL_STACK *)sk); never executed: } 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) { returnreturn (struct stack_st_ASN1_VALUE *)OPENSSL_sk_dup((const OPENSSL_STACK *)sk); never executed: (struct stack_st_ASN1_VALUE *)OPENSSL_sk_deep_copy((const OPENSSL_STACK *)sk, (OPENSSL_sk_copyfunc)copyfunc, (OPENSSL_sk_freefunc)freefunc);return (struct stack_st_ASN1_VALUE *)OPENSSL_sk_deep_copy((const OPENSSL_STACK *)sk, (OPENSSL_sk_copyfunc)copyfunc, (OPENSSL_sk_freefunc)freefunc); never executed: } static inline sk_ASN1_VALUE_compfunc sk_ASN1_VALUE_set_cmp_func(struct stack_st_ASN1_VALUE *sk, sk_ASN1_VALUE_compfunc compare) { returnreturn (struct stack_st_ASN1_VALUE *)OPENSSL_sk_deep_copy((const OPENSSL_STACK *)sk, (OPENSSL_sk_copyfunc)copyfunc, (OPENSSL_sk_freefunc)freefunc); never executed: (sk_ASN1_VALUE_compfunc)OPENSSL_sk_set_cmp_func((OPENSSL_STACK *)sk, (OPENSSL_sk_compfunc)compare);return (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 | - | |
151 | int ASN1_item_ex_new(ASN1_VALUE **pval, const ASN1_ITEM *it); | - |
152 | void ASN1_item_ex_free(ASN1_VALUE **pval, const ASN1_ITEM *it); | - |
153 | - | |
154 | int 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 | - | |
158 | int ASN1_item_ex_i2d(ASN1_VALUE **pval, unsigned char **out, | - |
159 | const ASN1_ITEM *it, int tag, int aclass); | - |
Switch to Source code | Preprocessed file |