Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: openssl/crypto/pkcs7/pkcs7.h

Issue 9254031: Upgrade chrome's OpenSSL to same version Android ships with. (Closed) Base URL: http://src.chromium.org/svn/trunk/deps/third_party/openssl/
Patch Set: '' Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « openssl/crypto/pkcs7/pk7_smime.c ('k') | openssl/crypto/pkcs7/pkcs7err.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* crypto/pkcs7/pkcs7.h */ 1 /* crypto/pkcs7/pkcs7.h */
2 /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2 /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
5 * This package is an SSL implementation written 5 * This package is an SSL implementation written
6 * by Eric Young (eay@cryptsoft.com). 6 * by Eric Young (eay@cryptsoft.com).
7 * The implementation was written so as to conform with Netscapes SSL. 7 * The implementation was written so as to conform with Netscapes SSL.
8 * 8 *
9 * This library is free for commercial and non-commercial use as long as 9 * This library is free for commercial and non-commercial use as long as
10 * the following conditions are aheared to. The following conditions 10 * the following conditions are aheared to. The following conditions
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 225
226 #define PKCS7_get_signed_attributes(si) ((si)->auth_attr) 226 #define PKCS7_get_signed_attributes(si) ((si)->auth_attr)
227 #define PKCS7_get_attributes(si) ((si)->unauth_attr) 227 #define PKCS7_get_attributes(si) ((si)->unauth_attr)
228 228
229 #define PKCS7_type_is_signed(a) (OBJ_obj2nid((a)->type) == NID_pkcs7_signed) 229 #define PKCS7_type_is_signed(a) (OBJ_obj2nid((a)->type) == NID_pkcs7_signed)
230 #define PKCS7_type_is_encrypted(a) (OBJ_obj2nid((a)->type) == NID_pkcs7_encrypte d) 230 #define PKCS7_type_is_encrypted(a) (OBJ_obj2nid((a)->type) == NID_pkcs7_encrypte d)
231 #define PKCS7_type_is_enveloped(a) (OBJ_obj2nid((a)->type) == NID_pkcs7_envelope d) 231 #define PKCS7_type_is_enveloped(a) (OBJ_obj2nid((a)->type) == NID_pkcs7_envelope d)
232 #define PKCS7_type_is_signedAndEnveloped(a) \ 232 #define PKCS7_type_is_signedAndEnveloped(a) \
233 (OBJ_obj2nid((a)->type) == NID_pkcs7_signedAndEnveloped) 233 (OBJ_obj2nid((a)->type) == NID_pkcs7_signedAndEnveloped)
234 #define PKCS7_type_is_data(a) (OBJ_obj2nid((a)->type) == NID_pkcs7_data) 234 #define PKCS7_type_is_data(a) (OBJ_obj2nid((a)->type) == NID_pkcs7_data)
235 #define PKCS7_type_is_digest(a) (OBJ_obj2nid((a)->type) == NID_pkcs7_digest)
236 #define PKCS7_type_is_encrypted(a) \
237 (OBJ_obj2nid((a)->type) == NID_pkcs7_encrypted)
235 238
236 #define PKCS7_type_is_digest(a) (OBJ_obj2nid((a)->type) == NID_pkcs7_digest) 239 #define PKCS7_type_is_digest(a) (OBJ_obj2nid((a)->type) == NID_pkcs7_digest)
237 240
238 #define PKCS7_set_detached(p,v) \ 241 #define PKCS7_set_detached(p,v) \
239 PKCS7_ctrl(p,PKCS7_OP_SET_DETACHED_SIGNATURE,v,NULL) 242 PKCS7_ctrl(p,PKCS7_OP_SET_DETACHED_SIGNATURE,v,NULL)
240 #define PKCS7_get_detached(p) \ 243 #define PKCS7_get_detached(p) \
241 PKCS7_ctrl(p,PKCS7_OP_GET_DETACHED_SIGNATURE,0,NULL) 244 PKCS7_ctrl(p,PKCS7_OP_GET_DETACHED_SIGNATURE,0,NULL)
242 245
243 #define PKCS7_is_detached(p7) (PKCS7_type_is_signed(p7) && PKCS7_get_detached(p7 )) 246 #define PKCS7_is_detached(p7) (PKCS7_type_is_signed(p7) && PKCS7_get_detached(p7 ))
244 247
245 #ifdef SSLEAY_MACROS
246 #ifndef PKCS7_ISSUER_AND_SERIAL_digest
247 #define PKCS7_ISSUER_AND_SERIAL_digest(data,type,md,len) \
248 ASN1_digest((int (*)())i2d_PKCS7_ISSUER_AND_SERIAL,type,\
249 (char *)data,md,len)
250 #endif
251 #endif
252
253 /* S/MIME related flags */ 248 /* S/MIME related flags */
254 249
255 #define PKCS7_TEXT 0x1 250 #define PKCS7_TEXT 0x1
256 #define PKCS7_NOCERTS 0x2 251 #define PKCS7_NOCERTS 0x2
257 #define PKCS7_NOSIGS 0x4 252 #define PKCS7_NOSIGS 0x4
258 #define PKCS7_NOCHAIN 0x8 253 #define PKCS7_NOCHAIN 0x8
259 #define PKCS7_NOINTERN 0x10 254 #define PKCS7_NOINTERN 0x10
260 #define PKCS7_NOVERIFY 0x20 255 #define PKCS7_NOVERIFY 0x20
261 #define PKCS7_DETACHED 0x40 256 #define PKCS7_DETACHED 0x40
262 #define PKCS7_BINARY 0x80 257 #define PKCS7_BINARY 0x80
263 #define PKCS7_NOATTR 0x100 258 #define PKCS7_NOATTR 0x100
264 #define PKCS7_NOSMIMECAP 0x200 259 #define PKCS7_NOSMIMECAP 0x200
265 #define PKCS7_NOOLDMIMETYPE 0x400 260 #define PKCS7_NOOLDMIMETYPE 0x400
266 #define PKCS7_CRLFEOL 0x800 261 #define PKCS7_CRLFEOL 0x800
267 #define PKCS7_STREAM 0x1000 262 #define PKCS7_STREAM 0x1000
268 #define PKCS7_NOCRL 0x2000 263 #define PKCS7_NOCRL 0x2000
264 #define PKCS7_PARTIAL 0x4000
265 #define PKCS7_REUSE_DIGEST 0x8000
269 266
270 /* Flags: for compatibility with older code */ 267 /* Flags: for compatibility with older code */
271 268
272 #define SMIME_TEXT PKCS7_TEXT 269 #define SMIME_TEXT PKCS7_TEXT
273 #define SMIME_NOCERTS PKCS7_NOCERTS 270 #define SMIME_NOCERTS PKCS7_NOCERTS
274 #define SMIME_NOSIGS PKCS7_NOSIGS 271 #define SMIME_NOSIGS PKCS7_NOSIGS
275 #define SMIME_NOCHAIN PKCS7_NOCHAIN 272 #define SMIME_NOCHAIN PKCS7_NOCHAIN
276 #define SMIME_NOINTERN PKCS7_NOINTERN 273 #define SMIME_NOINTERN PKCS7_NOINTERN
277 #define SMIME_NOVERIFY PKCS7_NOVERIFY 274 #define SMIME_NOVERIFY PKCS7_NOVERIFY
278 #define SMIME_DETACHED PKCS7_DETACHED 275 #define SMIME_DETACHED PKCS7_DETACHED
279 #define SMIME_BINARY PKCS7_BINARY 276 #define SMIME_BINARY PKCS7_BINARY
280 #define SMIME_NOATTR PKCS7_NOATTR 277 #define SMIME_NOATTR PKCS7_NOATTR
281 278
282 DECLARE_ASN1_FUNCTIONS(PKCS7_ISSUER_AND_SERIAL) 279 DECLARE_ASN1_FUNCTIONS(PKCS7_ISSUER_AND_SERIAL)
283 280
284 #ifndef SSLEAY_MACROS
285 int PKCS7_ISSUER_AND_SERIAL_digest(PKCS7_ISSUER_AND_SERIAL *data,const EVP_MD *t ype, 281 int PKCS7_ISSUER_AND_SERIAL_digest(PKCS7_ISSUER_AND_SERIAL *data,const EVP_MD *t ype,
286 unsigned char *md,unsigned int *len); 282 unsigned char *md,unsigned int *len);
287 #ifndef OPENSSL_NO_FP_API 283 #ifndef OPENSSL_NO_FP_API
288 PKCS7 *d2i_PKCS7_fp(FILE *fp,PKCS7 **p7); 284 PKCS7 *d2i_PKCS7_fp(FILE *fp,PKCS7 **p7);
289 int i2d_PKCS7_fp(FILE *fp,PKCS7 *p7); 285 int i2d_PKCS7_fp(FILE *fp,PKCS7 *p7);
290 #endif 286 #endif
291 PKCS7 *PKCS7_dup(PKCS7 *p7); 287 PKCS7 *PKCS7_dup(PKCS7 *p7);
292 PKCS7 *d2i_PKCS7_bio(BIO *bp,PKCS7 **p7); 288 PKCS7 *d2i_PKCS7_bio(BIO *bp,PKCS7 **p7);
293 int i2d_PKCS7_bio(BIO *bp,PKCS7 *p7); 289 int i2d_PKCS7_bio(BIO *bp,PKCS7 *p7);
294 #endif 290 int i2d_PKCS7_bio_stream(BIO *out, PKCS7 *p7, BIO *in, int flags);
291 int PEM_write_bio_PKCS7_stream(BIO *out, PKCS7 *p7, BIO *in, int flags);
295 292
296 DECLARE_ASN1_FUNCTIONS(PKCS7_SIGNER_INFO) 293 DECLARE_ASN1_FUNCTIONS(PKCS7_SIGNER_INFO)
297 DECLARE_ASN1_FUNCTIONS(PKCS7_RECIP_INFO) 294 DECLARE_ASN1_FUNCTIONS(PKCS7_RECIP_INFO)
298 DECLARE_ASN1_FUNCTIONS(PKCS7_SIGNED) 295 DECLARE_ASN1_FUNCTIONS(PKCS7_SIGNED)
299 DECLARE_ASN1_FUNCTIONS(PKCS7_ENC_CONTENT) 296 DECLARE_ASN1_FUNCTIONS(PKCS7_ENC_CONTENT)
300 DECLARE_ASN1_FUNCTIONS(PKCS7_ENVELOPE) 297 DECLARE_ASN1_FUNCTIONS(PKCS7_ENVELOPE)
301 DECLARE_ASN1_FUNCTIONS(PKCS7_SIGN_ENVELOPE) 298 DECLARE_ASN1_FUNCTIONS(PKCS7_SIGN_ENVELOPE)
302 DECLARE_ASN1_FUNCTIONS(PKCS7_DIGEST) 299 DECLARE_ASN1_FUNCTIONS(PKCS7_DIGEST)
303 DECLARE_ASN1_FUNCTIONS(PKCS7_ENCRYPT) 300 DECLARE_ASN1_FUNCTIONS(PKCS7_ENCRYPT)
304 DECLARE_ASN1_FUNCTIONS(PKCS7) 301 DECLARE_ASN1_FUNCTIONS(PKCS7)
305 302
306 DECLARE_ASN1_ITEM(PKCS7_ATTR_SIGN) 303 DECLARE_ASN1_ITEM(PKCS7_ATTR_SIGN)
307 DECLARE_ASN1_ITEM(PKCS7_ATTR_VERIFY) 304 DECLARE_ASN1_ITEM(PKCS7_ATTR_VERIFY)
308 305
309 DECLARE_ASN1_NDEF_FUNCTION(PKCS7) 306 DECLARE_ASN1_NDEF_FUNCTION(PKCS7)
307 DECLARE_ASN1_PRINT_FUNCTION(PKCS7)
310 308
311 long PKCS7_ctrl(PKCS7 *p7, int cmd, long larg, char *parg); 309 long PKCS7_ctrl(PKCS7 *p7, int cmd, long larg, char *parg);
312 310
313 int PKCS7_set_type(PKCS7 *p7, int type); 311 int PKCS7_set_type(PKCS7 *p7, int type);
314 int PKCS7_set0_type_other(PKCS7 *p7, int type, ASN1_TYPE *other); 312 int PKCS7_set0_type_other(PKCS7 *p7, int type, ASN1_TYPE *other);
315 int PKCS7_set_content(PKCS7 *p7, PKCS7 *p7_data); 313 int PKCS7_set_content(PKCS7 *p7, PKCS7 *p7_data);
316 int PKCS7_SIGNER_INFO_set(PKCS7_SIGNER_INFO *p7i, X509 *x509, EVP_PKEY *pkey, 314 int PKCS7_SIGNER_INFO_set(PKCS7_SIGNER_INFO *p7i, X509 *x509, EVP_PKEY *pkey,
317 const EVP_MD *dgst); 315 const EVP_MD *dgst);
316 int PKCS7_SIGNER_INFO_sign(PKCS7_SIGNER_INFO *si);
318 int PKCS7_add_signer(PKCS7 *p7, PKCS7_SIGNER_INFO *p7i); 317 int PKCS7_add_signer(PKCS7 *p7, PKCS7_SIGNER_INFO *p7i);
319 int PKCS7_add_certificate(PKCS7 *p7, X509 *x509); 318 int PKCS7_add_certificate(PKCS7 *p7, X509 *x509);
320 int PKCS7_add_crl(PKCS7 *p7, X509_CRL *x509); 319 int PKCS7_add_crl(PKCS7 *p7, X509_CRL *x509);
321 int PKCS7_content_new(PKCS7 *p7, int nid); 320 int PKCS7_content_new(PKCS7 *p7, int nid);
322 int PKCS7_dataVerify(X509_STORE *cert_store, X509_STORE_CTX *ctx, 321 int PKCS7_dataVerify(X509_STORE *cert_store, X509_STORE_CTX *ctx,
323 BIO *bio, PKCS7 *p7, PKCS7_SIGNER_INFO *si); 322 BIO *bio, PKCS7 *p7, PKCS7_SIGNER_INFO *si);
324 int PKCS7_signatureVerify(BIO *bio, PKCS7 *p7, PKCS7_SIGNER_INFO *si, 323 int PKCS7_signatureVerify(BIO *bio, PKCS7 *p7, PKCS7_SIGNER_INFO *si,
325 X509 *x509); 324 X509 *x509);
326 325
327 BIO *PKCS7_dataInit(PKCS7 *p7, BIO *bio); 326 BIO *PKCS7_dataInit(PKCS7 *p7, BIO *bio);
328 int PKCS7_dataFinal(PKCS7 *p7, BIO *bio); 327 int PKCS7_dataFinal(PKCS7 *p7, BIO *bio);
329 BIO *PKCS7_dataDecode(PKCS7 *p7, EVP_PKEY *pkey, BIO *in_bio, X509 *pcert); 328 BIO *PKCS7_dataDecode(PKCS7 *p7, EVP_PKEY *pkey, BIO *in_bio, X509 *pcert);
330 329
331 330
332 PKCS7_SIGNER_INFO *PKCS7_add_signature(PKCS7 *p7, X509 *x509, 331 PKCS7_SIGNER_INFO *PKCS7_add_signature(PKCS7 *p7, X509 *x509,
333 EVP_PKEY *pkey, const EVP_MD *dgst); 332 EVP_PKEY *pkey, const EVP_MD *dgst);
334 X509 *PKCS7_cert_from_signer_info(PKCS7 *p7, PKCS7_SIGNER_INFO *si); 333 X509 *PKCS7_cert_from_signer_info(PKCS7 *p7, PKCS7_SIGNER_INFO *si);
335 int PKCS7_set_digest(PKCS7 *p7, const EVP_MD *md); 334 int PKCS7_set_digest(PKCS7 *p7, const EVP_MD *md);
336 STACK_OF(PKCS7_SIGNER_INFO) *PKCS7_get_signer_info(PKCS7 *p7); 335 STACK_OF(PKCS7_SIGNER_INFO) *PKCS7_get_signer_info(PKCS7 *p7);
337 336
338 PKCS7_RECIP_INFO *PKCS7_add_recipient(PKCS7 *p7, X509 *x509); 337 PKCS7_RECIP_INFO *PKCS7_add_recipient(PKCS7 *p7, X509 *x509);
338 void PKCS7_SIGNER_INFO_get0_algs(PKCS7_SIGNER_INFO *si, EVP_PKEY **pk,
339 X509_ALGOR **pdig, X509_ALGOR **psig);
340 void PKCS7_RECIP_INFO_get0_alg(PKCS7_RECIP_INFO *ri, X509_ALGOR **penc);
339 int PKCS7_add_recipient_info(PKCS7 *p7, PKCS7_RECIP_INFO *ri); 341 int PKCS7_add_recipient_info(PKCS7 *p7, PKCS7_RECIP_INFO *ri);
340 int PKCS7_RECIP_INFO_set(PKCS7_RECIP_INFO *p7i, X509 *x509); 342 int PKCS7_RECIP_INFO_set(PKCS7_RECIP_INFO *p7i, X509 *x509);
341 int PKCS7_set_cipher(PKCS7 *p7, const EVP_CIPHER *cipher); 343 int PKCS7_set_cipher(PKCS7 *p7, const EVP_CIPHER *cipher);
344 int PKCS7_stream(unsigned char ***boundary, PKCS7 *p7);
342 345
343 PKCS7_ISSUER_AND_SERIAL *PKCS7_get_issuer_and_serial(PKCS7 *p7, int idx); 346 PKCS7_ISSUER_AND_SERIAL *PKCS7_get_issuer_and_serial(PKCS7 *p7, int idx);
344 ASN1_OCTET_STRING *PKCS7_digest_from_attributes(STACK_OF(X509_ATTRIBUTE) *sk); 347 ASN1_OCTET_STRING *PKCS7_digest_from_attributes(STACK_OF(X509_ATTRIBUTE) *sk);
345 int PKCS7_add_signed_attribute(PKCS7_SIGNER_INFO *p7si,int nid,int type, 348 int PKCS7_add_signed_attribute(PKCS7_SIGNER_INFO *p7si,int nid,int type,
346 void *data); 349 void *data);
347 int PKCS7_add_attribute (PKCS7_SIGNER_INFO *p7si, int nid, int atrtype, 350 int PKCS7_add_attribute (PKCS7_SIGNER_INFO *p7si, int nid, int atrtype,
348 void *value); 351 void *value);
349 ASN1_TYPE *PKCS7_get_attribute(PKCS7_SIGNER_INFO *si, int nid); 352 ASN1_TYPE *PKCS7_get_attribute(PKCS7_SIGNER_INFO *si, int nid);
350 ASN1_TYPE *PKCS7_get_signed_attribute(PKCS7_SIGNER_INFO *si, int nid); 353 ASN1_TYPE *PKCS7_get_signed_attribute(PKCS7_SIGNER_INFO *si, int nid);
351 int PKCS7_set_signed_attributes(PKCS7_SIGNER_INFO *p7si, 354 int PKCS7_set_signed_attributes(PKCS7_SIGNER_INFO *p7si,
352 STACK_OF(X509_ATTRIBUTE) *sk); 355 STACK_OF(X509_ATTRIBUTE) *sk);
353 int PKCS7_set_attributes(PKCS7_SIGNER_INFO *p7si,STACK_OF(X509_ATTRIBUTE) *sk); 356 int PKCS7_set_attributes(PKCS7_SIGNER_INFO *p7si,STACK_OF(X509_ATTRIBUTE) *sk);
354 357
355 358
356 PKCS7 *PKCS7_sign(X509 *signcert, EVP_PKEY *pkey, STACK_OF(X509) *certs, 359 PKCS7 *PKCS7_sign(X509 *signcert, EVP_PKEY *pkey, STACK_OF(X509) *certs,
357 BIO *data, int flags); 360 BIO *data, int flags);
361
362 PKCS7_SIGNER_INFO *PKCS7_sign_add_signer(PKCS7 *p7,
363 X509 *signcert, EVP_PKEY *pkey, const EVP_MD *md,
364 int flags);
365
366 int PKCS7_final(PKCS7 *p7, BIO *data, int flags);
358 int PKCS7_verify(PKCS7 *p7, STACK_OF(X509) *certs, X509_STORE *store, 367 int PKCS7_verify(PKCS7 *p7, STACK_OF(X509) *certs, X509_STORE *store,
359 BIO *indata, BIO *out, int flags); 368 BIO *indata, BIO *out, int flags);
360 STACK_OF(X509) *PKCS7_get0_signers(PKCS7 *p7, STACK_OF(X509) *certs, int flags); 369 STACK_OF(X509) *PKCS7_get0_signers(PKCS7 *p7, STACK_OF(X509) *certs, int flags);
361 PKCS7 *PKCS7_encrypt(STACK_OF(X509) *certs, BIO *in, const EVP_CIPHER *cipher, 370 PKCS7 *PKCS7_encrypt(STACK_OF(X509) *certs, BIO *in, const EVP_CIPHER *cipher,
362 int flags); 371 int flags);
363 int PKCS7_decrypt(PKCS7 *p7, EVP_PKEY *pkey, X509 *cert, BIO *data, int flags); 372 int PKCS7_decrypt(PKCS7 *p7, EVP_PKEY *pkey, X509 *cert, BIO *data, int flags);
364 373
365 int PKCS7_add_attrib_smimecap(PKCS7_SIGNER_INFO *si, 374 int PKCS7_add_attrib_smimecap(PKCS7_SIGNER_INFO *si,
366 STACK_OF(X509_ALGOR) *cap); 375 STACK_OF(X509_ALGOR) *cap);
367 STACK_OF(X509_ALGOR) *PKCS7_get_smimecap(PKCS7_SIGNER_INFO *si); 376 STACK_OF(X509_ALGOR) *PKCS7_get_smimecap(PKCS7_SIGNER_INFO *si);
368 int PKCS7_simple_smimecap(STACK_OF(X509_ALGOR) *sk, int nid, int arg); 377 int PKCS7_simple_smimecap(STACK_OF(X509_ALGOR) *sk, int nid, int arg);
369 378
379 int PKCS7_add_attrib_content_type(PKCS7_SIGNER_INFO *si, ASN1_OBJECT *coid);
380 int PKCS7_add0_attrib_signing_time(PKCS7_SIGNER_INFO *si, ASN1_TIME *t);
381 int PKCS7_add1_attrib_digest(PKCS7_SIGNER_INFO *si,
382 const unsigned char *md, int mdlen);
383
370 int SMIME_write_PKCS7(BIO *bio, PKCS7 *p7, BIO *data, int flags); 384 int SMIME_write_PKCS7(BIO *bio, PKCS7 *p7, BIO *data, int flags);
371 PKCS7 *SMIME_read_PKCS7(BIO *bio, BIO **bcont); 385 PKCS7 *SMIME_read_PKCS7(BIO *bio, BIO **bcont);
372 int SMIME_crlf_copy(BIO *in, BIO *out, int flags); 386
373 int SMIME_text(BIO *in, BIO *out); 387 BIO *BIO_new_PKCS7(BIO *out, PKCS7 *p7);
388
374 389
375 /* BEGIN ERROR CODES */ 390 /* BEGIN ERROR CODES */
376 /* The following lines are auto generated by the script mkerr.pl. Any changes 391 /* The following lines are auto generated by the script mkerr.pl. Any changes
377 * made after this point may be overwritten when the script is next run. 392 * made after this point may be overwritten when the script is next run.
378 */ 393 */
379 void ERR_load_PKCS7_strings(void); 394 void ERR_load_PKCS7_strings(void);
380 395
381 /* Error codes for the PKCS7 functions. */ 396 /* Error codes for the PKCS7 functions. */
382 397
383 /* Function codes. */ 398 /* Function codes. */
384 #define PKCS7_F_B64_READ_PKCS7 120 399 #define PKCS7_F_B64_READ_PKCS7 120
385 #define PKCS7_F_B64_WRITE_PKCS7 121 400 #define PKCS7_F_B64_WRITE_PKCS7 121
401 #define PKCS7_F_DO_PKCS7_SIGNED_ATTRIB 136
402 #define PKCS7_F_I2D_PKCS7_BIO_STREAM 140
403 #define PKCS7_F_PKCS7_ADD0_ATTRIB_SIGNING_TIME 135
386 #define PKCS7_F_PKCS7_ADD_ATTRIB_SMIMECAP 118 404 #define PKCS7_F_PKCS7_ADD_ATTRIB_SMIMECAP 118
387 #define PKCS7_F_PKCS7_ADD_CERTIFICATE 100 405 #define PKCS7_F_PKCS7_ADD_CERTIFICATE 100
388 #define PKCS7_F_PKCS7_ADD_CRL 101 406 #define PKCS7_F_PKCS7_ADD_CRL 101
389 #define PKCS7_F_PKCS7_ADD_RECIPIENT_INFO 102 407 #define PKCS7_F_PKCS7_ADD_RECIPIENT_INFO 102
408 #define PKCS7_F_PKCS7_ADD_SIGNATURE 131
390 #define PKCS7_F_PKCS7_ADD_SIGNER 103 409 #define PKCS7_F_PKCS7_ADD_SIGNER 103
391 #define PKCS7_F_PKCS7_BIO_ADD_DIGEST 125 410 #define PKCS7_F_PKCS7_BIO_ADD_DIGEST 125
411 #define PKCS7_F_PKCS7_COPY_EXISTING_DIGEST 138
392 #define PKCS7_F_PKCS7_CTRL 104 412 #define PKCS7_F_PKCS7_CTRL 104
393 #define PKCS7_F_PKCS7_DATADECODE 112 413 #define PKCS7_F_PKCS7_DATADECODE 112
394 #define PKCS7_F_PKCS7_DATAFINAL 128 414 #define PKCS7_F_PKCS7_DATAFINAL 128
395 #define PKCS7_F_PKCS7_DATAINIT 105 415 #define PKCS7_F_PKCS7_DATAINIT 105
396 #define PKCS7_F_PKCS7_DATASIGN 106 416 #define PKCS7_F_PKCS7_DATASIGN 106
397 #define PKCS7_F_PKCS7_DATAVERIFY 107 417 #define PKCS7_F_PKCS7_DATAVERIFY 107
398 #define PKCS7_F_PKCS7_DECRYPT 114 418 #define PKCS7_F_PKCS7_DECRYPT 114
419 #define PKCS7_F_PKCS7_DECRYPT_RINFO 133
420 #define PKCS7_F_PKCS7_ENCODE_RINFO 132
399 #define PKCS7_F_PKCS7_ENCRYPT 115 421 #define PKCS7_F_PKCS7_ENCRYPT 115
422 #define PKCS7_F_PKCS7_FINAL 134
400 #define PKCS7_F_PKCS7_FIND_DIGEST 127 423 #define PKCS7_F_PKCS7_FIND_DIGEST 127
401 #define PKCS7_F_PKCS7_GET0_SIGNERS 124 424 #define PKCS7_F_PKCS7_GET0_SIGNERS 124
425 #define PKCS7_F_PKCS7_RECIP_INFO_SET 130
402 #define PKCS7_F_PKCS7_SET_CIPHER 108 426 #define PKCS7_F_PKCS7_SET_CIPHER 108
403 #define PKCS7_F_PKCS7_SET_CONTENT 109 427 #define PKCS7_F_PKCS7_SET_CONTENT 109
404 #define PKCS7_F_PKCS7_SET_DIGEST 126 428 #define PKCS7_F_PKCS7_SET_DIGEST 126
405 #define PKCS7_F_PKCS7_SET_TYPE 110 429 #define PKCS7_F_PKCS7_SET_TYPE 110
406 #define PKCS7_F_PKCS7_SIGN 116 430 #define PKCS7_F_PKCS7_SIGN 116
407 #define PKCS7_F_PKCS7_SIGNATUREVERIFY 113 431 #define PKCS7_F_PKCS7_SIGNATUREVERIFY 113
432 #define PKCS7_F_PKCS7_SIGNER_INFO_SET 129
433 #define PKCS7_F_PKCS7_SIGNER_INFO_SIGN 139
434 #define PKCS7_F_PKCS7_SIGN_ADD_SIGNER 137
408 #define PKCS7_F_PKCS7_SIMPLE_SMIMECAP 119 435 #define PKCS7_F_PKCS7_SIMPLE_SMIMECAP 119
409 #define PKCS7_F_PKCS7_VERIFY 117 436 #define PKCS7_F_PKCS7_VERIFY 117
410 #define PKCS7_F_SMIME_READ_PKCS7 122 437 #define PKCS7_F_SMIME_READ_PKCS7 122
411 #define PKCS7_F_SMIME_TEXT 123 438 #define PKCS7_F_SMIME_TEXT 123
412 439
413 /* Reason codes. */ 440 /* Reason codes. */
414 #define PKCS7_R_CERTIFICATE_VERIFY_ERROR 117 441 #define PKCS7_R_CERTIFICATE_VERIFY_ERROR 117
415 #define PKCS7_R_CIPHER_HAS_NO_OBJECT_IDENTIFIER 144 442 #define PKCS7_R_CIPHER_HAS_NO_OBJECT_IDENTIFIER 144
416 #define PKCS7_R_CIPHER_NOT_INITIALIZED 116 443 #define PKCS7_R_CIPHER_NOT_INITIALIZED 116
417 #define PKCS7_R_CONTENT_AND_DATA_PRESENT 118 444 #define PKCS7_R_CONTENT_AND_DATA_PRESENT 118
445 #define PKCS7_R_CTRL_ERROR 152
418 #define PKCS7_R_DECODE_ERROR 130 446 #define PKCS7_R_DECODE_ERROR 130
419 #define PKCS7_R_DECRYPTED_KEY_IS_WRONG_LENGTH 100 447 #define PKCS7_R_DECRYPTED_KEY_IS_WRONG_LENGTH 100
420 #define PKCS7_R_DECRYPT_ERROR 119 448 #define PKCS7_R_DECRYPT_ERROR 119
421 #define PKCS7_R_DIGEST_FAILURE 101 449 #define PKCS7_R_DIGEST_FAILURE 101
450 #define PKCS7_R_ENCRYPTION_CTRL_FAILURE 149
451 #define PKCS7_R_ENCRYPTION_NOT_SUPPORTED_FOR_THIS_KEY_TYPE 150
422 #define PKCS7_R_ERROR_ADDING_RECIPIENT 120 452 #define PKCS7_R_ERROR_ADDING_RECIPIENT 120
423 #define PKCS7_R_ERROR_SETTING_CIPHER 121 453 #define PKCS7_R_ERROR_SETTING_CIPHER 121
424 #define PKCS7_R_INVALID_MIME_TYPE 131 454 #define PKCS7_R_INVALID_MIME_TYPE 131
425 #define PKCS7_R_INVALID_NULL_POINTER 143 455 #define PKCS7_R_INVALID_NULL_POINTER 143
426 #define PKCS7_R_MIME_NO_CONTENT_TYPE 132 456 #define PKCS7_R_MIME_NO_CONTENT_TYPE 132
427 #define PKCS7_R_MIME_PARSE_ERROR 133 457 #define PKCS7_R_MIME_PARSE_ERROR 133
428 #define PKCS7_R_MIME_SIG_PARSE_ERROR 134 458 #define PKCS7_R_MIME_SIG_PARSE_ERROR 134
429 #define PKCS7_R_MISSING_CERIPEND_INFO 103 459 #define PKCS7_R_MISSING_CERIPEND_INFO 103
430 #define PKCS7_R_NO_CONTENT 122 460 #define PKCS7_R_NO_CONTENT 122
431 #define PKCS7_R_NO_CONTENT_TYPE 135 461 #define PKCS7_R_NO_CONTENT_TYPE 135
462 #define PKCS7_R_NO_DEFAULT_DIGEST 151
463 #define PKCS7_R_NO_MATCHING_DIGEST_TYPE_FOUND 154
432 #define PKCS7_R_NO_MULTIPART_BODY_FAILURE 136 464 #define PKCS7_R_NO_MULTIPART_BODY_FAILURE 136
433 #define PKCS7_R_NO_MULTIPART_BOUNDARY 137 465 #define PKCS7_R_NO_MULTIPART_BOUNDARY 137
434 #define PKCS7_R_NO_RECIPIENT_MATCHES_CERTIFICATE 115 466 #define PKCS7_R_NO_RECIPIENT_MATCHES_CERTIFICATE 115
435 #define PKCS7_R_NO_RECIPIENT_MATCHES_KEY 146 467 #define PKCS7_R_NO_RECIPIENT_MATCHES_KEY 146
436 #define PKCS7_R_NO_SIGNATURES_ON_DATA 123 468 #define PKCS7_R_NO_SIGNATURES_ON_DATA 123
437 #define PKCS7_R_NO_SIGNERS 142 469 #define PKCS7_R_NO_SIGNERS 142
438 #define PKCS7_R_NO_SIG_CONTENT_TYPE 138 470 #define PKCS7_R_NO_SIG_CONTENT_TYPE 138
439 #define PKCS7_R_OPERATION_NOT_SUPPORTED_ON_THIS_TYPE 104 471 #define PKCS7_R_OPERATION_NOT_SUPPORTED_ON_THIS_TYPE 104
440 #define PKCS7_R_PKCS7_ADD_SIGNATURE_ERROR 124 472 #define PKCS7_R_PKCS7_ADD_SIGNATURE_ERROR 124
473 #define PKCS7_R_PKCS7_ADD_SIGNER_ERROR 153
441 #define PKCS7_R_PKCS7_DATAFINAL 126 474 #define PKCS7_R_PKCS7_DATAFINAL 126
442 #define PKCS7_R_PKCS7_DATAFINAL_ERROR 125 475 #define PKCS7_R_PKCS7_DATAFINAL_ERROR 125
443 #define PKCS7_R_PKCS7_DATASIGN 145 476 #define PKCS7_R_PKCS7_DATASIGN 145
444 #define PKCS7_R_PKCS7_PARSE_ERROR 139 477 #define PKCS7_R_PKCS7_PARSE_ERROR 139
445 #define PKCS7_R_PKCS7_SIG_PARSE_ERROR 140 478 #define PKCS7_R_PKCS7_SIG_PARSE_ERROR 140
446 #define PKCS7_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE 127 479 #define PKCS7_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE 127
447 #define PKCS7_R_SIGNATURE_FAILURE 105 480 #define PKCS7_R_SIGNATURE_FAILURE 105
448 #define PKCS7_R_SIGNER_CERTIFICATE_NOT_FOUND 128 481 #define PKCS7_R_SIGNER_CERTIFICATE_NOT_FOUND 128
482 #define PKCS7_R_SIGNING_CTRL_FAILURE 147
483 #define PKCS7_R_SIGNING_NOT_SUPPORTED_FOR_THIS_KEY_TYPE 148
449 #define PKCS7_R_SIG_INVALID_MIME_TYPE 141 484 #define PKCS7_R_SIG_INVALID_MIME_TYPE 141
450 #define PKCS7_R_SMIME_TEXT_ERROR 129 485 #define PKCS7_R_SMIME_TEXT_ERROR 129
451 #define PKCS7_R_UNABLE_TO_FIND_CERTIFICATE 106 486 #define PKCS7_R_UNABLE_TO_FIND_CERTIFICATE 106
452 #define PKCS7_R_UNABLE_TO_FIND_MEM_BIO 107 487 #define PKCS7_R_UNABLE_TO_FIND_MEM_BIO 107
453 #define PKCS7_R_UNABLE_TO_FIND_MESSAGE_DIGEST 108 488 #define PKCS7_R_UNABLE_TO_FIND_MESSAGE_DIGEST 108
454 #define PKCS7_R_UNKNOWN_DIGEST_TYPE 109 489 #define PKCS7_R_UNKNOWN_DIGEST_TYPE 109
455 #define PKCS7_R_UNKNOWN_OPERATION 110 490 #define PKCS7_R_UNKNOWN_OPERATION 110
456 #define PKCS7_R_UNSUPPORTED_CIPHER_TYPE 111 491 #define PKCS7_R_UNSUPPORTED_CIPHER_TYPE 111
457 #define PKCS7_R_UNSUPPORTED_CONTENT_TYPE 112 492 #define PKCS7_R_UNSUPPORTED_CONTENT_TYPE 112
458 #define PKCS7_R_WRONG_CONTENT_TYPE 113 493 #define PKCS7_R_WRONG_CONTENT_TYPE 113
459 #define PKCS7_R_WRONG_PKCS7_TYPE 114 494 #define PKCS7_R_WRONG_PKCS7_TYPE 114
460 495
461 #ifdef __cplusplus 496 #ifdef __cplusplus
462 } 497 }
463 #endif 498 #endif
464 #endif 499 #endif
OLDNEW
« no previous file with comments | « openssl/crypto/pkcs7/pk7_smime.c ('k') | openssl/crypto/pkcs7/pkcs7err.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698