Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssl/src/crypto/cms/cms_lcl.h |
Switch to Source code | Preprocessed file |
Line | Source | Count |
---|---|---|
1 | typedef struct CMS_IssuerAndSerialNumber_st CMS_IssuerAndSerialNumber; | - |
2 | typedef struct CMS_EncapsulatedContentInfo_st CMS_EncapsulatedContentInfo; | - |
3 | typedef struct CMS_SignerIdentifier_st CMS_SignerIdentifier; | - |
4 | typedef struct CMS_SignedData_st CMS_SignedData; | - |
5 | typedef struct CMS_OtherRevocationInfoFormat_st CMS_OtherRevocationInfoFormat; | - |
6 | typedef struct CMS_OriginatorInfo_st CMS_OriginatorInfo; | - |
7 | typedef struct CMS_EncryptedContentInfo_st CMS_EncryptedContentInfo; | - |
8 | typedef struct CMS_EnvelopedData_st CMS_EnvelopedData; | - |
9 | typedef struct CMS_DigestedData_st CMS_DigestedData; | - |
10 | typedef struct CMS_EncryptedData_st CMS_EncryptedData; | - |
11 | typedef struct CMS_AuthenticatedData_st CMS_AuthenticatedData; | - |
12 | typedef struct CMS_CompressedData_st CMS_CompressedData; | - |
13 | typedef struct CMS_OtherCertificateFormat_st CMS_OtherCertificateFormat; | - |
14 | typedef struct CMS_KeyTransRecipientInfo_st CMS_KeyTransRecipientInfo; | - |
15 | typedef struct CMS_OriginatorPublicKey_st CMS_OriginatorPublicKey; | - |
16 | typedef struct CMS_OriginatorIdentifierOrKey_st CMS_OriginatorIdentifierOrKey; | - |
17 | typedef struct CMS_KeyAgreeRecipientInfo_st CMS_KeyAgreeRecipientInfo; | - |
18 | typedef struct CMS_RecipientKeyIdentifier_st CMS_RecipientKeyIdentifier; | - |
19 | typedef struct CMS_KeyAgreeRecipientIdentifier_st | - |
20 | CMS_KeyAgreeRecipientIdentifier; | - |
21 | typedef struct CMS_KEKIdentifier_st CMS_KEKIdentifier; | - |
22 | typedef struct CMS_KEKRecipientInfo_st CMS_KEKRecipientInfo; | - |
23 | typedef struct CMS_PasswordRecipientInfo_st CMS_PasswordRecipientInfo; | - |
24 | typedef struct CMS_OtherRecipientInfo_st CMS_OtherRecipientInfo; | - |
25 | typedef struct CMS_ReceiptsFrom_st CMS_ReceiptsFrom; | - |
26 | - | |
27 | struct CMS_ContentInfo_st { | - |
28 | ASN1_OBJECT *contentType; | - |
29 | union { | - |
30 | ASN1_OCTET_STRING *data; | - |
31 | CMS_SignedData *signedData; | - |
32 | CMS_EnvelopedData *envelopedData; | - |
33 | CMS_DigestedData *digestedData; | - |
34 | CMS_EncryptedData *encryptedData; | - |
35 | CMS_AuthenticatedData *authenticatedData; | - |
36 | CMS_CompressedData *compressedData; | - |
37 | ASN1_TYPE *other; | - |
38 | - | |
39 | void *otherData; | - |
40 | } d; | - |
41 | }; | - |
42 | - | |
43 | struct stack_st_CMS_CertificateChoices; typedef int (*sk_CMS_CertificateChoices_compfunc)(const CMS_CertificateChoices * const *a, const CMS_CertificateChoices *const *b); typedef void (*sk_CMS_CertificateChoices_freefunc)(CMS_CertificateChoices *a); typedef CMS_CertificateChoices * (*sk_CMS_CertificateChoices_copyfunc)(const CMS_CertificateChoices *a); static inline int sk_CMS_CertificateChoices_num(const struct stack_st_CMS_CertificateChoices *sk) { return executed 448 times by 1 test: OPENSSL_sk_num((const OPENSSL_STACK *)sk);return OPENSSL_sk_num((const OPENSSL_STACK *)sk); Executed by:
executed 448 times by 1 test: } static inline CMS_CertificateChoices *sk_CMS_CertificateChoices_value(const struct stack_st_CMS_CertificateChoices *sk, int idx) { returnreturn OPENSSL_sk_num((const OPENSSL_STACK *)sk); Executed by:
executed 323 times by 1 test: (CMS_CertificateChoices *)OPENSSL_sk_value((const OPENSSL_STACK *)sk, idx);return (CMS_CertificateChoices *)OPENSSL_sk_value((const OPENSSL_STACK *)sk, idx); Executed by:
executed 323 times by 1 test: } static inline struct stack_st_CMS_CertificateChoices *sk_CMS_CertificateChoices_new(sk_CMS_CertificateChoices_compfunc compare) { returnreturn (CMS_CertificateChoices *)OPENSSL_sk_value((const OPENSSL_STACK *)sk, idx); Executed by:
never executed: (struct stack_st_CMS_CertificateChoices *)OPENSSL_sk_new((OPENSSL_sk_compfunc)compare);return (struct stack_st_CMS_CertificateChoices *)OPENSSL_sk_new((OPENSSL_sk_compfunc)compare); never executed: } static inline struct stack_st_CMS_CertificateChoices *sk_CMS_CertificateChoices_new_null(void) { returnreturn (struct stack_st_CMS_CertificateChoices *)OPENSSL_sk_new((OPENSSL_sk_compfunc)compare); executed 29 times by 1 test: (struct stack_st_CMS_CertificateChoices *)OPENSSL_sk_new_null();return (struct stack_st_CMS_CertificateChoices *)OPENSSL_sk_new_null(); Executed by:
executed 29 times by 1 test: } static inline struct stack_st_CMS_CertificateChoices *sk_CMS_CertificateChoices_new_reserve(sk_CMS_CertificateChoices_compfunc compare, int n) { returnreturn (struct stack_st_CMS_CertificateChoices *)OPENSSL_sk_new_null(); Executed by:
never executed: (struct stack_st_CMS_CertificateChoices *)OPENSSL_sk_new_reserve((OPENSSL_sk_compfunc)compare, n);return (struct stack_st_CMS_CertificateChoices *)OPENSSL_sk_new_reserve((OPENSSL_sk_compfunc)compare, n); never executed: } static inline int sk_CMS_CertificateChoices_reserve(struct stack_st_CMS_CertificateChoices *sk, int n) { returnreturn (struct stack_st_CMS_CertificateChoices *)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_CMS_CertificateChoices_free(struct stack_st_CMS_CertificateChoices *sk) { OPENSSL_sk_free((OPENSSL_STACK *)sk); }return OPENSSL_sk_reserve((OPENSSL_STACK *)sk, n); never executed: static inline void sk_CMS_CertificateChoices_zero(struct stack_st_CMS_CertificateChoices *sk) { OPENSSL_sk_zero((OPENSSL_STACK *)sk); }end of block never executed: static inline CMS_CertificateChoices *sk_CMS_CertificateChoices_delete(struct stack_st_CMS_CertificateChoices *sk, int i) { returnend of block never executed: (CMS_CertificateChoices *)OPENSSL_sk_delete((OPENSSL_STACK *)sk, i);return (CMS_CertificateChoices *)OPENSSL_sk_delete((OPENSSL_STACK *)sk, i); never executed: } static inline CMS_CertificateChoices *sk_CMS_CertificateChoices_delete_ptr(struct stack_st_CMS_CertificateChoices *sk, CMS_CertificateChoices *ptr) { returnreturn (CMS_CertificateChoices *)OPENSSL_sk_delete((OPENSSL_STACK *)sk, i); never executed: (CMS_CertificateChoices *)OPENSSL_sk_delete_ptr((OPENSSL_STACK *)sk, (const void *)ptr);return (CMS_CertificateChoices *)OPENSSL_sk_delete_ptr((OPENSSL_STACK *)sk, (const void *)ptr); never executed: } static inline int sk_CMS_CertificateChoices_push(struct stack_st_CMS_CertificateChoices *sk, CMS_CertificateChoices *ptr) { returnreturn (CMS_CertificateChoices *)OPENSSL_sk_delete_ptr((OPENSSL_STACK *)sk, (const void *)ptr); executed 65 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 65 times by 1 test: } static inline int sk_CMS_CertificateChoices_unshift(struct stack_st_CMS_CertificateChoices *sk, CMS_CertificateChoices *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 CMS_CertificateChoices *sk_CMS_CertificateChoices_pop(struct stack_st_CMS_CertificateChoices *sk) { returnreturn OPENSSL_sk_unshift((OPENSSL_STACK *)sk, (const void *)ptr); never executed: (CMS_CertificateChoices *)OPENSSL_sk_pop((OPENSSL_STACK *)sk);return (CMS_CertificateChoices *)OPENSSL_sk_pop((OPENSSL_STACK *)sk); never executed: } static inline CMS_CertificateChoices *sk_CMS_CertificateChoices_shift(struct stack_st_CMS_CertificateChoices *sk) { returnreturn (CMS_CertificateChoices *)OPENSSL_sk_pop((OPENSSL_STACK *)sk); never executed: (CMS_CertificateChoices *)OPENSSL_sk_shift((OPENSSL_STACK *)sk);return (CMS_CertificateChoices *)OPENSSL_sk_shift((OPENSSL_STACK *)sk); never executed: } static inline void sk_CMS_CertificateChoices_pop_free(struct stack_st_CMS_CertificateChoices *sk, sk_CMS_CertificateChoices_freefunc freefunc) { OPENSSL_sk_pop_free((OPENSSL_STACK *)sk, (OPENSSL_sk_freefunc)freefunc); }return (CMS_CertificateChoices *)OPENSSL_sk_shift((OPENSSL_STACK *)sk); never executed: static inline int sk_CMS_CertificateChoices_insert(struct stack_st_CMS_CertificateChoices *sk, CMS_CertificateChoices *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 CMS_CertificateChoices *sk_CMS_CertificateChoices_set(struct stack_st_CMS_CertificateChoices *sk, int idx, CMS_CertificateChoices *ptr) { returnreturn OPENSSL_sk_insert((OPENSSL_STACK *)sk, (const void *)ptr, idx); never executed: (CMS_CertificateChoices *)OPENSSL_sk_set((OPENSSL_STACK *)sk, idx, (const void *)ptr);return (CMS_CertificateChoices *)OPENSSL_sk_set((OPENSSL_STACK *)sk, idx, (const void *)ptr); never executed: } static inline int sk_CMS_CertificateChoices_find(struct stack_st_CMS_CertificateChoices *sk, CMS_CertificateChoices *ptr) { returnreturn (CMS_CertificateChoices *)OPENSSL_sk_set((OPENSSL_STACK *)sk, idx, (const void *)ptr); 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_CMS_CertificateChoices_find_ex(struct stack_st_CMS_CertificateChoices *sk, CMS_CertificateChoices *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_CMS_CertificateChoices_sort(struct stack_st_CMS_CertificateChoices *sk) { OPENSSL_sk_sort((OPENSSL_STACK *)sk); }return OPENSSL_sk_find_ex((OPENSSL_STACK *)sk, (const void *)ptr); never executed: static inline int sk_CMS_CertificateChoices_is_sorted(const struct stack_st_CMS_CertificateChoices *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_CMS_CertificateChoices * sk_CMS_CertificateChoices_dup(const struct stack_st_CMS_CertificateChoices *sk) { returnreturn OPENSSL_sk_is_sorted((const OPENSSL_STACK *)sk); never executed: (struct stack_st_CMS_CertificateChoices *)OPENSSL_sk_dup((const OPENSSL_STACK *)sk);return (struct stack_st_CMS_CertificateChoices *)OPENSSL_sk_dup((const OPENSSL_STACK *)sk); never executed: } static inline struct stack_st_CMS_CertificateChoices *sk_CMS_CertificateChoices_deep_copy(const struct stack_st_CMS_CertificateChoices *sk, sk_CMS_CertificateChoices_copyfunc copyfunc, sk_CMS_CertificateChoices_freefunc freefunc) { returnreturn (struct stack_st_CMS_CertificateChoices *)OPENSSL_sk_dup((const OPENSSL_STACK *)sk); never executed: (struct stack_st_CMS_CertificateChoices *)OPENSSL_sk_deep_copy((const OPENSSL_STACK *)sk, (OPENSSL_sk_copyfunc)copyfunc, (OPENSSL_sk_freefunc)freefunc);return (struct stack_st_CMS_CertificateChoices *)OPENSSL_sk_deep_copy((const OPENSSL_STACK *)sk, (OPENSSL_sk_copyfunc)copyfunc, (OPENSSL_sk_freefunc)freefunc); never executed: } static inline sk_CMS_CertificateChoices_compfunc sk_CMS_CertificateChoices_set_cmp_func(struct stack_st_CMS_CertificateChoices *sk, sk_CMS_CertificateChoices_compfunc compare) { returnreturn (struct stack_st_CMS_CertificateChoices *)OPENSSL_sk_deep_copy((const OPENSSL_STACK *)sk, (OPENSSL_sk_copyfunc)copyfunc, (OPENSSL_sk_freefunc)freefunc); never executed: (sk_CMS_CertificateChoices_compfunc)OPENSSL_sk_set_cmp_func((OPENSSL_STACK *)sk, (OPENSSL_sk_compfunc)compare);return (sk_CMS_CertificateChoices_compfunc)OPENSSL_sk_set_cmp_func((OPENSSL_STACK *)sk, (OPENSSL_sk_compfunc)compare); never executed: }return (sk_CMS_CertificateChoices_compfunc)OPENSSL_sk_set_cmp_func((OPENSSL_STACK *)sk, (OPENSSL_sk_compfunc)compare); | 0-448 |
44 | - | |
45 | struct CMS_SignedData_st { | - |
46 | int32_t version; | - |
47 | struct stack_st_X509_ALGOR *digestAlgorithms; | - |
48 | CMS_EncapsulatedContentInfo *encapContentInfo; | - |
49 | struct stack_st_CMS_CertificateChoices *certificates; | - |
50 | struct stack_st_CMS_RevocationInfoChoice *crls; | - |
51 | struct stack_st_CMS_SignerInfo *signerInfos; | - |
52 | }; | - |
53 | - | |
54 | struct CMS_EncapsulatedContentInfo_st { | - |
55 | ASN1_OBJECT *eContentType; | - |
56 | ASN1_OCTET_STRING *eContent; | - |
57 | - | |
58 | int partial; | - |
59 | }; | - |
60 | - | |
61 | struct CMS_SignerInfo_st { | - |
62 | int32_t version; | - |
63 | CMS_SignerIdentifier *sid; | - |
64 | X509_ALGOR *digestAlgorithm; | - |
65 | struct stack_st_X509_ATTRIBUTE *signedAttrs; | - |
66 | X509_ALGOR *signatureAlgorithm; | - |
67 | ASN1_OCTET_STRING *signature; | - |
68 | struct stack_st_X509_ATTRIBUTE *unsignedAttrs; | - |
69 | - | |
70 | X509 *signer; | - |
71 | EVP_PKEY *pkey; | - |
72 | - | |
73 | EVP_MD_CTX *mctx; | - |
74 | EVP_PKEY_CTX *pctx; | - |
75 | }; | - |
76 | - | |
77 | struct CMS_SignerIdentifier_st { | - |
78 | int type; | - |
79 | union { | - |
80 | CMS_IssuerAndSerialNumber *issuerAndSerialNumber; | - |
81 | ASN1_OCTET_STRING *subjectKeyIdentifier; | - |
82 | } d; | - |
83 | }; | - |
84 | - | |
85 | struct CMS_EnvelopedData_st { | - |
86 | int32_t version; | - |
87 | CMS_OriginatorInfo *originatorInfo; | - |
88 | struct stack_st_CMS_RecipientInfo *recipientInfos; | - |
89 | CMS_EncryptedContentInfo *encryptedContentInfo; | - |
90 | struct stack_st_X509_ATTRIBUTE *unprotectedAttrs; | - |
91 | }; | - |
92 | - | |
93 | struct CMS_OriginatorInfo_st { | - |
94 | struct stack_st_CMS_CertificateChoices *certificates; | - |
95 | struct stack_st_CMS_RevocationInfoChoice *crls; | - |
96 | }; | - |
97 | - | |
98 | struct CMS_EncryptedContentInfo_st { | - |
99 | ASN1_OBJECT *contentType; | - |
100 | X509_ALGOR *contentEncryptionAlgorithm; | - |
101 | ASN1_OCTET_STRING *encryptedContent; | - |
102 | - | |
103 | const EVP_CIPHER *cipher; | - |
104 | unsigned char *key; | - |
105 | size_t keylen; | - |
106 | - | |
107 | int debug; | - |
108 | }; | - |
109 | - | |
110 | struct CMS_RecipientInfo_st { | - |
111 | int type; | - |
112 | union { | - |
113 | CMS_KeyTransRecipientInfo *ktri; | - |
114 | CMS_KeyAgreeRecipientInfo *kari; | - |
115 | CMS_KEKRecipientInfo *kekri; | - |
116 | CMS_PasswordRecipientInfo *pwri; | - |
117 | CMS_OtherRecipientInfo *ori; | - |
118 | } d; | - |
119 | }; | - |
120 | - | |
121 | typedef CMS_SignerIdentifier CMS_RecipientIdentifier; | - |
122 | - | |
123 | struct CMS_KeyTransRecipientInfo_st { | - |
124 | int32_t version; | - |
125 | CMS_RecipientIdentifier *rid; | - |
126 | X509_ALGOR *keyEncryptionAlgorithm; | - |
127 | ASN1_OCTET_STRING *encryptedKey; | - |
128 | - | |
129 | X509 *recip; | - |
130 | EVP_PKEY *pkey; | - |
131 | - | |
132 | EVP_PKEY_CTX *pctx; | - |
133 | }; | - |
134 | - | |
135 | struct CMS_KeyAgreeRecipientInfo_st { | - |
136 | int32_t version; | - |
137 | CMS_OriginatorIdentifierOrKey *originator; | - |
138 | ASN1_OCTET_STRING *ukm; | - |
139 | X509_ALGOR *keyEncryptionAlgorithm; | - |
140 | struct stack_st_CMS_RecipientEncryptedKey *recipientEncryptedKeys; | - |
141 | - | |
142 | EVP_PKEY_CTX *pctx; | - |
143 | - | |
144 | EVP_CIPHER_CTX *ctx; | - |
145 | }; | - |
146 | - | |
147 | struct CMS_OriginatorIdentifierOrKey_st { | - |
148 | int type; | - |
149 | union { | - |
150 | CMS_IssuerAndSerialNumber *issuerAndSerialNumber; | - |
151 | ASN1_OCTET_STRING *subjectKeyIdentifier; | - |
152 | CMS_OriginatorPublicKey *originatorKey; | - |
153 | } d; | - |
154 | }; | - |
155 | - | |
156 | struct CMS_OriginatorPublicKey_st { | - |
157 | X509_ALGOR *algorithm; | - |
158 | ASN1_BIT_STRING *publicKey; | - |
159 | }; | - |
160 | - | |
161 | struct CMS_RecipientEncryptedKey_st { | - |
162 | CMS_KeyAgreeRecipientIdentifier *rid; | - |
163 | ASN1_OCTET_STRING *encryptedKey; | - |
164 | - | |
165 | EVP_PKEY *pkey; | - |
166 | }; | - |
167 | - | |
168 | struct CMS_KeyAgreeRecipientIdentifier_st { | - |
169 | int type; | - |
170 | union { | - |
171 | CMS_IssuerAndSerialNumber *issuerAndSerialNumber; | - |
172 | CMS_RecipientKeyIdentifier *rKeyId; | - |
173 | } d; | - |
174 | }; | - |
175 | - | |
176 | struct CMS_RecipientKeyIdentifier_st { | - |
177 | ASN1_OCTET_STRING *subjectKeyIdentifier; | - |
178 | ASN1_GENERALIZEDTIME *date; | - |
179 | CMS_OtherKeyAttribute *other; | - |
180 | }; | - |
181 | - | |
182 | struct CMS_KEKRecipientInfo_st { | - |
183 | int32_t version; | - |
184 | CMS_KEKIdentifier *kekid; | - |
185 | X509_ALGOR *keyEncryptionAlgorithm; | - |
186 | ASN1_OCTET_STRING *encryptedKey; | - |
187 | - | |
188 | unsigned char *key; | - |
189 | size_t keylen; | - |
190 | }; | - |
191 | - | |
192 | struct CMS_KEKIdentifier_st { | - |
193 | ASN1_OCTET_STRING *keyIdentifier; | - |
194 | ASN1_GENERALIZEDTIME *date; | - |
195 | CMS_OtherKeyAttribute *other; | - |
196 | }; | - |
197 | - | |
198 | struct CMS_PasswordRecipientInfo_st { | - |
199 | int32_t version; | - |
200 | X509_ALGOR *keyDerivationAlgorithm; | - |
201 | X509_ALGOR *keyEncryptionAlgorithm; | - |
202 | ASN1_OCTET_STRING *encryptedKey; | - |
203 | - | |
204 | unsigned char *pass; | - |
205 | size_t passlen; | - |
206 | }; | - |
207 | - | |
208 | struct CMS_OtherRecipientInfo_st { | - |
209 | ASN1_OBJECT *oriType; | - |
210 | ASN1_TYPE *oriValue; | - |
211 | }; | - |
212 | - | |
213 | struct CMS_DigestedData_st { | - |
214 | int32_t version; | - |
215 | X509_ALGOR *digestAlgorithm; | - |
216 | CMS_EncapsulatedContentInfo *encapContentInfo; | - |
217 | ASN1_OCTET_STRING *digest; | - |
218 | }; | - |
219 | - | |
220 | struct CMS_EncryptedData_st { | - |
221 | int32_t version; | - |
222 | CMS_EncryptedContentInfo *encryptedContentInfo; | - |
223 | struct stack_st_X509_ATTRIBUTE *unprotectedAttrs; | - |
224 | }; | - |
225 | - | |
226 | struct CMS_AuthenticatedData_st { | - |
227 | int32_t version; | - |
228 | CMS_OriginatorInfo *originatorInfo; | - |
229 | struct stack_st_CMS_RecipientInfo *recipientInfos; | - |
230 | X509_ALGOR *macAlgorithm; | - |
231 | X509_ALGOR *digestAlgorithm; | - |
232 | CMS_EncapsulatedContentInfo *encapContentInfo; | - |
233 | struct stack_st_X509_ATTRIBUTE *authAttrs; | - |
234 | ASN1_OCTET_STRING *mac; | - |
235 | struct stack_st_X509_ATTRIBUTE *unauthAttrs; | - |
236 | }; | - |
237 | - | |
238 | struct CMS_CompressedData_st { | - |
239 | int32_t version; | - |
240 | X509_ALGOR *compressionAlgorithm; | - |
241 | struct stack_st_CMS_RecipientInfo *recipientInfos; | - |
242 | CMS_EncapsulatedContentInfo *encapContentInfo; | - |
243 | }; | - |
244 | - | |
245 | struct CMS_RevocationInfoChoice_st { | - |
246 | int type; | - |
247 | union { | - |
248 | X509_CRL *crl; | - |
249 | CMS_OtherRevocationInfoFormat *other; | - |
250 | } d; | - |
251 | }; | - |
252 | - | |
253 | - | |
254 | - | |
255 | - | |
256 | struct CMS_OtherRevocationInfoFormat_st { | - |
257 | ASN1_OBJECT *otherRevInfoFormat; | - |
258 | ASN1_TYPE *otherRevInfo; | - |
259 | }; | - |
260 | - | |
261 | struct CMS_CertificateChoices { | - |
262 | int type; | - |
263 | union { | - |
264 | X509 *certificate; | - |
265 | ASN1_STRING *extendedCertificate; | - |
266 | ASN1_STRING *v1AttrCert; | - |
267 | ASN1_STRING *v2AttrCert; | - |
268 | CMS_OtherCertificateFormat *other; | - |
269 | } d; | - |
270 | }; | - |
271 | - | |
272 | - | |
273 | - | |
274 | - | |
275 | - | |
276 | - | |
277 | - | |
278 | struct CMS_OtherCertificateFormat_st { | - |
279 | ASN1_OBJECT *otherCertFormat; | - |
280 | ASN1_TYPE *otherCert; | - |
281 | }; | - |
282 | - | |
283 | - | |
284 | - | |
285 | - | |
286 | - | |
287 | - | |
288 | struct CMS_IssuerAndSerialNumber_st { | - |
289 | X509_NAME *issuer; | - |
290 | ASN1_INTEGER *serialNumber; | - |
291 | }; | - |
292 | - | |
293 | struct CMS_OtherKeyAttribute_st { | - |
294 | ASN1_OBJECT *keyAttrId; | - |
295 | ASN1_TYPE *keyAttr; | - |
296 | }; | - |
297 | - | |
298 | - | |
299 | - | |
300 | - | |
301 | - | |
302 | struct CMS_ReceiptRequest_st { | - |
303 | ASN1_OCTET_STRING *signedContentIdentifier; | - |
304 | CMS_ReceiptsFrom *receiptsFrom; | - |
305 | struct stack_st_GENERAL_NAMES *receiptsTo; | - |
306 | }; | - |
307 | - | |
308 | struct CMS_ReceiptsFrom_st { | - |
309 | int type; | - |
310 | union { | - |
311 | int32_t allOrFirstTier; | - |
312 | struct stack_st_GENERAL_NAMES *receiptList; | - |
313 | } d; | - |
314 | }; | - |
315 | - | |
316 | - | |
317 | struct CMS_Receipt_st { | - |
318 | int32_t version; | - |
319 | ASN1_OBJECT *contentType; | - |
320 | ASN1_OCTET_STRING *signedContentIdentifier; | - |
321 | ASN1_OCTET_STRING *originatorSignatureValue; | - |
322 | }; | - |
323 | - | |
324 | CMS_ContentInfo *CMS_ContentInfo_new(void); void CMS_ContentInfo_free(CMS_ContentInfo *a); CMS_ContentInfo *d2i_CMS_ContentInfo(CMS_ContentInfo **a, const unsigned char **in, long len); int i2d_CMS_ContentInfo(CMS_ContentInfo *a, unsigned char **out); extern const ASN1_ITEM CMS_ContentInfo_it; | - |
325 | extern const ASN1_ITEM CMS_SignerInfo_it; | - |
326 | extern const ASN1_ITEM CMS_IssuerAndSerialNumber_it; | - |
327 | extern const ASN1_ITEM CMS_Attributes_Sign_it; | - |
328 | extern const ASN1_ITEM CMS_Attributes_Verify_it; | - |
329 | extern const ASN1_ITEM CMS_RecipientInfo_it; | - |
330 | extern const ASN1_ITEM CMS_PasswordRecipientInfo_it; | - |
331 | CMS_IssuerAndSerialNumber *CMS_IssuerAndSerialNumber_new(void); void CMS_IssuerAndSerialNumber_free(CMS_IssuerAndSerialNumber *a); | - |
332 | BIO *cms_content_bio(CMS_ContentInfo *cms); | - |
333 | - | |
334 | CMS_ContentInfo *cms_Data_create(void); | - |
335 | - | |
336 | CMS_ContentInfo *cms_DigestedData_create(const EVP_MD *md); | - |
337 | BIO *cms_DigestedData_init_bio(CMS_ContentInfo *cms); | - |
338 | int cms_DigestedData_do_final(CMS_ContentInfo *cms, BIO *chain, int verify); | - |
339 | - | |
340 | BIO *cms_SignedData_init_bio(CMS_ContentInfo *cms); | - |
341 | int cms_SignedData_final(CMS_ContentInfo *cms, BIO *chain); | - |
342 | int cms_set1_SignerIdentifier(CMS_SignerIdentifier *sid, X509 *cert, | - |
343 | int type); | - |
344 | int cms_SignerIdentifier_get0_signer_id(CMS_SignerIdentifier *sid, | - |
345 | ASN1_OCTET_STRING **keyid, | - |
346 | X509_NAME **issuer, | - |
347 | ASN1_INTEGER **sno); | - |
348 | int cms_SignerIdentifier_cert_cmp(CMS_SignerIdentifier *sid, X509 *cert); | - |
349 | - | |
350 | CMS_ContentInfo *cms_CompressedData_create(int comp_nid); | - |
351 | BIO *cms_CompressedData_init_bio(CMS_ContentInfo *cms); | - |
352 | - | |
353 | BIO *cms_DigestAlgorithm_init_bio(X509_ALGOR *digestAlgorithm); | - |
354 | int cms_DigestAlgorithm_find_ctx(EVP_MD_CTX *mctx, BIO *chain, | - |
355 | X509_ALGOR *mdalg); | - |
356 | - | |
357 | int cms_ias_cert_cmp(CMS_IssuerAndSerialNumber *ias, X509 *cert); | - |
358 | int cms_keyid_cert_cmp(ASN1_OCTET_STRING *keyid, X509 *cert); | - |
359 | int cms_set1_ias(CMS_IssuerAndSerialNumber **pias, X509 *cert); | - |
360 | int cms_set1_keyid(ASN1_OCTET_STRING **pkeyid, X509 *cert); | - |
361 | - | |
362 | BIO *cms_EncryptedContent_init_bio(CMS_EncryptedContentInfo *ec); | - |
363 | BIO *cms_EncryptedData_init_bio(CMS_ContentInfo *cms); | - |
364 | int cms_EncryptedContent_init(CMS_EncryptedContentInfo *ec, | - |
365 | const EVP_CIPHER *cipher, | - |
366 | const unsigned char *key, size_t keylen); | - |
367 | - | |
368 | int cms_Receipt_verify(CMS_ContentInfo *cms, CMS_ContentInfo *req_cms); | - |
369 | int cms_msgSigDigest_add1(CMS_SignerInfo *dest, CMS_SignerInfo *src); | - |
370 | ASN1_OCTET_STRING *cms_encode_Receipt(CMS_SignerInfo *si); | - |
371 | - | |
372 | BIO *cms_EnvelopedData_init_bio(CMS_ContentInfo *cms); | - |
373 | CMS_EnvelopedData *cms_get0_enveloped(CMS_ContentInfo *cms); | - |
374 | int cms_env_asn1_ctrl(CMS_RecipientInfo *ri, int cmd); | - |
375 | int cms_pkey_get_ri_type(EVP_PKEY *pk); | - |
376 | - | |
377 | int cms_RecipientInfo_kari_init(CMS_RecipientInfo *ri, X509 *recip, | - |
378 | EVP_PKEY *pk, unsigned int flags); | - |
379 | int cms_RecipientInfo_kari_encrypt(CMS_ContentInfo *cms, | - |
380 | CMS_RecipientInfo *ri); | - |
381 | - | |
382 | - | |
383 | int cms_RecipientInfo_pwri_crypt(CMS_ContentInfo *cms, CMS_RecipientInfo *ri, | - |
384 | int en_de); | - |
385 | - | |
386 | extern const ASN1_ITEM CMS_CertificateChoices_it; | - |
387 | extern const ASN1_ITEM CMS_DigestedData_it; | - |
388 | extern const ASN1_ITEM CMS_EncryptedData_it; | - |
389 | extern const ASN1_ITEM CMS_EnvelopedData_it; | - |
390 | extern const ASN1_ITEM CMS_KEKRecipientInfo_it; | - |
391 | extern const ASN1_ITEM CMS_KeyAgreeRecipientInfo_it; | - |
392 | extern const ASN1_ITEM CMS_KeyTransRecipientInfo_it; | - |
393 | extern const ASN1_ITEM CMS_OriginatorPublicKey_it; | - |
394 | extern const ASN1_ITEM CMS_OtherKeyAttribute_it; | - |
395 | extern const ASN1_ITEM CMS_Receipt_it; | - |
396 | extern const ASN1_ITEM CMS_ReceiptRequest_it; | - |
397 | extern const ASN1_ITEM CMS_RecipientEncryptedKey_it; | - |
398 | extern const ASN1_ITEM CMS_RecipientKeyIdentifier_it; | - |
399 | extern const ASN1_ITEM CMS_RevocationInfoChoice_it; | - |
400 | extern const ASN1_ITEM CMS_SignedData_it; | - |
401 | extern const ASN1_ITEM CMS_CompressedData_it; | - |
Switch to Source code | Preprocessed file |