OpenCoverage

cms_lcl.h

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/openssl/src/crypto/cms/cms_lcl.h
Switch to Source codePreprocessed file
LineSourceCount
1typedef struct CMS_IssuerAndSerialNumber_st CMS_IssuerAndSerialNumber;-
2typedef struct CMS_EncapsulatedContentInfo_st CMS_EncapsulatedContentInfo;-
3typedef struct CMS_SignerIdentifier_st CMS_SignerIdentifier;-
4typedef struct CMS_SignedData_st CMS_SignedData;-
5typedef struct CMS_OtherRevocationInfoFormat_st CMS_OtherRevocationInfoFormat;-
6typedef struct CMS_OriginatorInfo_st CMS_OriginatorInfo;-
7typedef struct CMS_EncryptedContentInfo_st CMS_EncryptedContentInfo;-
8typedef struct CMS_EnvelopedData_st CMS_EnvelopedData;-
9typedef struct CMS_DigestedData_st CMS_DigestedData;-
10typedef struct CMS_EncryptedData_st CMS_EncryptedData;-
11typedef struct CMS_AuthenticatedData_st CMS_AuthenticatedData;-
12typedef struct CMS_CompressedData_st CMS_CompressedData;-
13typedef struct CMS_OtherCertificateFormat_st CMS_OtherCertificateFormat;-
14typedef struct CMS_KeyTransRecipientInfo_st CMS_KeyTransRecipientInfo;-
15typedef struct CMS_OriginatorPublicKey_st CMS_OriginatorPublicKey;-
16typedef struct CMS_OriginatorIdentifierOrKey_st CMS_OriginatorIdentifierOrKey;-
17typedef struct CMS_KeyAgreeRecipientInfo_st CMS_KeyAgreeRecipientInfo;-
18typedef struct CMS_RecipientKeyIdentifier_st CMS_RecipientKeyIdentifier;-
19typedef struct CMS_KeyAgreeRecipientIdentifier_st-
20 CMS_KeyAgreeRecipientIdentifier;-
21typedef struct CMS_KEKIdentifier_st CMS_KEKIdentifier;-
22typedef struct CMS_KEKRecipientInfo_st CMS_KEKRecipientInfo;-
23typedef struct CMS_PasswordRecipientInfo_st CMS_PasswordRecipientInfo;-
24typedef struct CMS_OtherRecipientInfo_st CMS_OtherRecipientInfo;-
25typedef struct CMS_ReceiptsFrom_st CMS_ReceiptsFrom;-
26-
27struct 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-
43struct 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: return OPENSSL_sk_num((const OPENSSL_STACK *)sk);
Executed by:
  • libcrypto.so.1.1
OPENSSL_sk_num((const OPENSSL_STACK *)sk);
executed 448 times by 1 test: return OPENSSL_sk_num((const OPENSSL_STACK *)sk);
Executed by:
  • libcrypto.so.1.1
} static inline CMS_CertificateChoices *sk_CMS_CertificateChoices_value(const struct stack_st_CMS_CertificateChoices *sk, int idx) { return
executed 323 times by 1 test: return (CMS_CertificateChoices *)OPENSSL_sk_value((const OPENSSL_STACK *)sk, idx);
Executed by:
  • libcrypto.so.1.1
(CMS_CertificateChoices *)OPENSSL_sk_value((const OPENSSL_STACK *)sk, idx);
executed 323 times by 1 test: return (CMS_CertificateChoices *)OPENSSL_sk_value((const OPENSSL_STACK *)sk, idx);
Executed by:
  • libcrypto.so.1.1
} static inline struct stack_st_CMS_CertificateChoices *sk_CMS_CertificateChoices_new(sk_CMS_CertificateChoices_compfunc compare) { return
never executed: return (struct stack_st_CMS_CertificateChoices *)OPENSSL_sk_new((OPENSSL_sk_compfunc)compare);
(struct stack_st_CMS_CertificateChoices *)OPENSSL_sk_new((OPENSSL_sk_compfunc)compare);
never executed: return (struct stack_st_CMS_CertificateChoices *)OPENSSL_sk_new((OPENSSL_sk_compfunc)compare);
} static inline struct stack_st_CMS_CertificateChoices *sk_CMS_CertificateChoices_new_null(void) { return
executed 29 times by 1 test: return (struct stack_st_CMS_CertificateChoices *)OPENSSL_sk_new_null();
Executed by:
  • libcrypto.so.1.1
(struct stack_st_CMS_CertificateChoices *)OPENSSL_sk_new_null();
executed 29 times by 1 test: return (struct stack_st_CMS_CertificateChoices *)OPENSSL_sk_new_null();
Executed by:
  • libcrypto.so.1.1
} static inline struct stack_st_CMS_CertificateChoices *sk_CMS_CertificateChoices_new_reserve(sk_CMS_CertificateChoices_compfunc compare, int n) { return
never executed: return (struct stack_st_CMS_CertificateChoices *)OPENSSL_sk_new_reserve((OPENSSL_sk_compfunc)compare, n);
(struct stack_st_CMS_CertificateChoices *)OPENSSL_sk_new_reserve((OPENSSL_sk_compfunc)compare, n);
never executed: return (struct stack_st_CMS_CertificateChoices *)OPENSSL_sk_new_reserve((OPENSSL_sk_compfunc)compare, n);
} static inline int sk_CMS_CertificateChoices_reserve(struct stack_st_CMS_CertificateChoices *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_CMS_CertificateChoices_free(struct stack_st_CMS_CertificateChoices *sk) { OPENSSL_sk_free((OPENSSL_STACK *)sk); }
never executed: end of block
static inline void sk_CMS_CertificateChoices_zero(struct stack_st_CMS_CertificateChoices *sk) { OPENSSL_sk_zero((OPENSSL_STACK *)sk); }
never executed: end of block
static inline CMS_CertificateChoices *sk_CMS_CertificateChoices_delete(struct stack_st_CMS_CertificateChoices *sk, int i) { return
never executed: return (CMS_CertificateChoices *)OPENSSL_sk_delete((OPENSSL_STACK *)sk, i);
(CMS_CertificateChoices *)OPENSSL_sk_delete((OPENSSL_STACK *)sk, i);
never executed: return (CMS_CertificateChoices *)OPENSSL_sk_delete((OPENSSL_STACK *)sk, i);
} static inline CMS_CertificateChoices *sk_CMS_CertificateChoices_delete_ptr(struct stack_st_CMS_CertificateChoices *sk, CMS_CertificateChoices *ptr) { return
never executed: return (CMS_CertificateChoices *)OPENSSL_sk_delete_ptr((OPENSSL_STACK *)sk, (const void *)ptr);
(CMS_CertificateChoices *)OPENSSL_sk_delete_ptr((OPENSSL_STACK *)sk, (const void *)ptr);
never executed: return (CMS_CertificateChoices *)OPENSSL_sk_delete_ptr((OPENSSL_STACK *)sk, (const void *)ptr);
} static inline int sk_CMS_CertificateChoices_push(struct stack_st_CMS_CertificateChoices *sk, CMS_CertificateChoices *ptr) { return
executed 65 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 65 times by 1 test: return OPENSSL_sk_push((OPENSSL_STACK *)sk, (const void *)ptr);
Executed by:
  • libcrypto.so.1.1
} static inline int sk_CMS_CertificateChoices_unshift(struct stack_st_CMS_CertificateChoices *sk, CMS_CertificateChoices *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 CMS_CertificateChoices *sk_CMS_CertificateChoices_pop(struct stack_st_CMS_CertificateChoices *sk) { return
never executed: return (CMS_CertificateChoices *)OPENSSL_sk_pop((OPENSSL_STACK *)sk);
(CMS_CertificateChoices *)OPENSSL_sk_pop((OPENSSL_STACK *)sk);
never executed: return (CMS_CertificateChoices *)OPENSSL_sk_pop((OPENSSL_STACK *)sk);
} static inline CMS_CertificateChoices *sk_CMS_CertificateChoices_shift(struct stack_st_CMS_CertificateChoices *sk) { return
never executed: return (CMS_CertificateChoices *)OPENSSL_sk_shift((OPENSSL_STACK *)sk);
(CMS_CertificateChoices *)OPENSSL_sk_shift((OPENSSL_STACK *)sk);
never executed: return (CMS_CertificateChoices *)OPENSSL_sk_shift((OPENSSL_STACK *)sk);
} 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); }
never executed: end of block
static inline int sk_CMS_CertificateChoices_insert(struct stack_st_CMS_CertificateChoices *sk, CMS_CertificateChoices *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 CMS_CertificateChoices *sk_CMS_CertificateChoices_set(struct stack_st_CMS_CertificateChoices *sk, int idx, CMS_CertificateChoices *ptr) { return
never executed: return (CMS_CertificateChoices *)OPENSSL_sk_set((OPENSSL_STACK *)sk, idx, (const void *)ptr);
(CMS_CertificateChoices *)OPENSSL_sk_set((OPENSSL_STACK *)sk, idx, (const void *)ptr);
never executed: return (CMS_CertificateChoices *)OPENSSL_sk_set((OPENSSL_STACK *)sk, idx, (const void *)ptr);
} static inline int sk_CMS_CertificateChoices_find(struct stack_st_CMS_CertificateChoices *sk, CMS_CertificateChoices *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_CMS_CertificateChoices_find_ex(struct stack_st_CMS_CertificateChoices *sk, CMS_CertificateChoices *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_CMS_CertificateChoices_sort(struct stack_st_CMS_CertificateChoices *sk) { OPENSSL_sk_sort((OPENSSL_STACK *)sk); }
never executed: end of block
static inline int sk_CMS_CertificateChoices_is_sorted(const struct stack_st_CMS_CertificateChoices *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_CMS_CertificateChoices * sk_CMS_CertificateChoices_dup(const struct stack_st_CMS_CertificateChoices *sk) { return
never executed: return (struct stack_st_CMS_CertificateChoices *)OPENSSL_sk_dup((const OPENSSL_STACK *)sk);
(struct stack_st_CMS_CertificateChoices *)OPENSSL_sk_dup((const OPENSSL_STACK *)sk);
never executed: return (struct stack_st_CMS_CertificateChoices *)OPENSSL_sk_dup((const OPENSSL_STACK *)sk);
} 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) { return
never executed: return (struct stack_st_CMS_CertificateChoices *)OPENSSL_sk_deep_copy((const OPENSSL_STACK *)sk, (OPENSSL_sk_copyfunc)copyfunc, (OPENSSL_sk_freefunc)freefunc);
(struct stack_st_CMS_CertificateChoices *)OPENSSL_sk_deep_copy((const OPENSSL_STACK *)sk, (OPENSSL_sk_copyfunc)copyfunc, (OPENSSL_sk_freefunc)freefunc);
never executed: return (struct stack_st_CMS_CertificateChoices *)OPENSSL_sk_deep_copy((const OPENSSL_STACK *)sk, (OPENSSL_sk_copyfunc)copyfunc, (OPENSSL_sk_freefunc)freefunc);
} static inline sk_CMS_CertificateChoices_compfunc sk_CMS_CertificateChoices_set_cmp_func(struct stack_st_CMS_CertificateChoices *sk, sk_CMS_CertificateChoices_compfunc compare) { return
never executed: return (sk_CMS_CertificateChoices_compfunc)OPENSSL_sk_set_cmp_func((OPENSSL_STACK *)sk, (OPENSSL_sk_compfunc)compare);
(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-
45struct 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-
54struct CMS_EncapsulatedContentInfo_st {-
55 ASN1_OBJECT *eContentType;-
56 ASN1_OCTET_STRING *eContent;-
57-
58 int partial;-
59};-
60-
61struct 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-
77struct CMS_SignerIdentifier_st {-
78 int type;-
79 union {-
80 CMS_IssuerAndSerialNumber *issuerAndSerialNumber;-
81 ASN1_OCTET_STRING *subjectKeyIdentifier;-
82 } d;-
83};-
84-
85struct 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-
93struct CMS_OriginatorInfo_st {-
94 struct stack_st_CMS_CertificateChoices *certificates;-
95 struct stack_st_CMS_RevocationInfoChoice *crls;-
96};-
97-
98struct 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-
110struct 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-
121typedef CMS_SignerIdentifier CMS_RecipientIdentifier;-
122-
123struct 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-
135struct 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-
147struct 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-
156struct CMS_OriginatorPublicKey_st {-
157 X509_ALGOR *algorithm;-
158 ASN1_BIT_STRING *publicKey;-
159};-
160-
161struct CMS_RecipientEncryptedKey_st {-
162 CMS_KeyAgreeRecipientIdentifier *rid;-
163 ASN1_OCTET_STRING *encryptedKey;-
164-
165 EVP_PKEY *pkey;-
166};-
167-
168struct CMS_KeyAgreeRecipientIdentifier_st {-
169 int type;-
170 union {-
171 CMS_IssuerAndSerialNumber *issuerAndSerialNumber;-
172 CMS_RecipientKeyIdentifier *rKeyId;-
173 } d;-
174};-
175-
176struct CMS_RecipientKeyIdentifier_st {-
177 ASN1_OCTET_STRING *subjectKeyIdentifier;-
178 ASN1_GENERALIZEDTIME *date;-
179 CMS_OtherKeyAttribute *other;-
180};-
181-
182struct 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-
192struct CMS_KEKIdentifier_st {-
193 ASN1_OCTET_STRING *keyIdentifier;-
194 ASN1_GENERALIZEDTIME *date;-
195 CMS_OtherKeyAttribute *other;-
196};-
197-
198struct 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-
208struct CMS_OtherRecipientInfo_st {-
209 ASN1_OBJECT *oriType;-
210 ASN1_TYPE *oriValue;-
211};-
212-
213struct CMS_DigestedData_st {-
214 int32_t version;-
215 X509_ALGOR *digestAlgorithm;-
216 CMS_EncapsulatedContentInfo *encapContentInfo;-
217 ASN1_OCTET_STRING *digest;-
218};-
219-
220struct CMS_EncryptedData_st {-
221 int32_t version;-
222 CMS_EncryptedContentInfo *encryptedContentInfo;-
223 struct stack_st_X509_ATTRIBUTE *unprotectedAttrs;-
224};-
225-
226struct 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-
238struct CMS_CompressedData_st {-
239 int32_t version;-
240 X509_ALGOR *compressionAlgorithm;-
241 struct stack_st_CMS_RecipientInfo *recipientInfos;-
242 CMS_EncapsulatedContentInfo *encapContentInfo;-
243};-
244-
245struct CMS_RevocationInfoChoice_st {-
246 int type;-
247 union {-
248 X509_CRL *crl;-
249 CMS_OtherRevocationInfoFormat *other;-
250 } d;-
251};-
252-
253-
254-
255-
256struct CMS_OtherRevocationInfoFormat_st {-
257 ASN1_OBJECT *otherRevInfoFormat;-
258 ASN1_TYPE *otherRevInfo;-
259};-
260-
261struct 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-
278struct CMS_OtherCertificateFormat_st {-
279 ASN1_OBJECT *otherCertFormat;-
280 ASN1_TYPE *otherCert;-
281};-
282-
283-
284-
285-
286-
287-
288struct CMS_IssuerAndSerialNumber_st {-
289 X509_NAME *issuer;-
290 ASN1_INTEGER *serialNumber;-
291};-
292-
293struct CMS_OtherKeyAttribute_st {-
294 ASN1_OBJECT *keyAttrId;-
295 ASN1_TYPE *keyAttr;-
296};-
297-
298-
299-
300-
301-
302struct CMS_ReceiptRequest_st {-
303 ASN1_OCTET_STRING *signedContentIdentifier;-
304 CMS_ReceiptsFrom *receiptsFrom;-
305 struct stack_st_GENERAL_NAMES *receiptsTo;-
306};-
307-
308struct CMS_ReceiptsFrom_st {-
309 int type;-
310 union {-
311 int32_t allOrFirstTier;-
312 struct stack_st_GENERAL_NAMES *receiptList;-
313 } d;-
314};-
315-
316-
317struct CMS_Receipt_st {-
318 int32_t version;-
319 ASN1_OBJECT *contentType;-
320 ASN1_OCTET_STRING *signedContentIdentifier;-
321 ASN1_OCTET_STRING *originatorSignatureValue;-
322};-
323-
324CMS_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;-
325extern const ASN1_ITEM CMS_SignerInfo_it;-
326extern const ASN1_ITEM CMS_IssuerAndSerialNumber_it;-
327extern const ASN1_ITEM CMS_Attributes_Sign_it;-
328extern const ASN1_ITEM CMS_Attributes_Verify_it;-
329extern const ASN1_ITEM CMS_RecipientInfo_it;-
330extern const ASN1_ITEM CMS_PasswordRecipientInfo_it;-
331CMS_IssuerAndSerialNumber *CMS_IssuerAndSerialNumber_new(void); void CMS_IssuerAndSerialNumber_free(CMS_IssuerAndSerialNumber *a);-
332BIO *cms_content_bio(CMS_ContentInfo *cms);-
333-
334CMS_ContentInfo *cms_Data_create(void);-
335-
336CMS_ContentInfo *cms_DigestedData_create(const EVP_MD *md);-
337BIO *cms_DigestedData_init_bio(CMS_ContentInfo *cms);-
338int cms_DigestedData_do_final(CMS_ContentInfo *cms, BIO *chain, int verify);-
339-
340BIO *cms_SignedData_init_bio(CMS_ContentInfo *cms);-
341int cms_SignedData_final(CMS_ContentInfo *cms, BIO *chain);-
342int cms_set1_SignerIdentifier(CMS_SignerIdentifier *sid, X509 *cert,-
343 int type);-
344int cms_SignerIdentifier_get0_signer_id(CMS_SignerIdentifier *sid,-
345 ASN1_OCTET_STRING **keyid,-
346 X509_NAME **issuer,-
347 ASN1_INTEGER **sno);-
348int cms_SignerIdentifier_cert_cmp(CMS_SignerIdentifier *sid, X509 *cert);-
349-
350CMS_ContentInfo *cms_CompressedData_create(int comp_nid);-
351BIO *cms_CompressedData_init_bio(CMS_ContentInfo *cms);-
352-
353BIO *cms_DigestAlgorithm_init_bio(X509_ALGOR *digestAlgorithm);-
354int cms_DigestAlgorithm_find_ctx(EVP_MD_CTX *mctx, BIO *chain,-
355 X509_ALGOR *mdalg);-
356-
357int cms_ias_cert_cmp(CMS_IssuerAndSerialNumber *ias, X509 *cert);-
358int cms_keyid_cert_cmp(ASN1_OCTET_STRING *keyid, X509 *cert);-
359int cms_set1_ias(CMS_IssuerAndSerialNumber **pias, X509 *cert);-
360int cms_set1_keyid(ASN1_OCTET_STRING **pkeyid, X509 *cert);-
361-
362BIO *cms_EncryptedContent_init_bio(CMS_EncryptedContentInfo *ec);-
363BIO *cms_EncryptedData_init_bio(CMS_ContentInfo *cms);-
364int cms_EncryptedContent_init(CMS_EncryptedContentInfo *ec,-
365 const EVP_CIPHER *cipher,-
366 const unsigned char *key, size_t keylen);-
367-
368int cms_Receipt_verify(CMS_ContentInfo *cms, CMS_ContentInfo *req_cms);-
369int cms_msgSigDigest_add1(CMS_SignerInfo *dest, CMS_SignerInfo *src);-
370ASN1_OCTET_STRING *cms_encode_Receipt(CMS_SignerInfo *si);-
371-
372BIO *cms_EnvelopedData_init_bio(CMS_ContentInfo *cms);-
373CMS_EnvelopedData *cms_get0_enveloped(CMS_ContentInfo *cms);-
374int cms_env_asn1_ctrl(CMS_RecipientInfo *ri, int cmd);-
375int cms_pkey_get_ri_type(EVP_PKEY *pk);-
376-
377int cms_RecipientInfo_kari_init(CMS_RecipientInfo *ri, X509 *recip,-
378 EVP_PKEY *pk, unsigned int flags);-
379int cms_RecipientInfo_kari_encrypt(CMS_ContentInfo *cms,-
380 CMS_RecipientInfo *ri);-
381-
382-
383int cms_RecipientInfo_pwri_crypt(CMS_ContentInfo *cms, CMS_RecipientInfo *ri,-
384 int en_de);-
385-
386extern const ASN1_ITEM CMS_CertificateChoices_it;-
387extern const ASN1_ITEM CMS_DigestedData_it;-
388extern const ASN1_ITEM CMS_EncryptedData_it;-
389extern const ASN1_ITEM CMS_EnvelopedData_it;-
390extern const ASN1_ITEM CMS_KEKRecipientInfo_it;-
391extern const ASN1_ITEM CMS_KeyAgreeRecipientInfo_it;-
392extern const ASN1_ITEM CMS_KeyTransRecipientInfo_it;-
393extern const ASN1_ITEM CMS_OriginatorPublicKey_it;-
394extern const ASN1_ITEM CMS_OtherKeyAttribute_it;-
395extern const ASN1_ITEM CMS_Receipt_it;-
396extern const ASN1_ITEM CMS_ReceiptRequest_it;-
397extern const ASN1_ITEM CMS_RecipientEncryptedKey_it;-
398extern const ASN1_ITEM CMS_RecipientKeyIdentifier_it;-
399extern const ASN1_ITEM CMS_RevocationInfoChoice_it;-
400extern const ASN1_ITEM CMS_SignedData_it;-
401extern const ASN1_ITEM CMS_CompressedData_it;-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.2