summaryrefslogtreecommitdiffstats
path: root/crypto/pkcs7/pk7_smime.c
AgeCommit message (Collapse)Author
2015-01-22Run util/openssl-format-source -v -c .Matt Caswell
Reviewed-by: Tim Hudson <tjh@openssl.org>
2014-06-02Make PKCS7_NOCERTS match documentation.Dr. Stephen Henson
As documented PKCS7_NOCERTS should only exclude the signer's certificate and not any supplied in the "certs" parameter. This makes it possible to exclude the signer's certificate but include other certificates. Applications that don't want to include other certificates should set "certs" to NULL anyway. (cherry picked from commit 5c6f808b66f1a2e0fb2a508b24b845a88803fe3a)
2012-03-08check return value of BIO_write in PKCS7_decryptDr. Stephen Henson
2012-02-27Detect symmetric crypto errors in PKCS7_decrypt.Dr. Stephen Henson
Thanks to Ivan Nestlerode <inestlerode@us.ibm.com> for reporting this bug.
2009-03-15Fix from stable branch.Dr. Stephen Henson
2008-11-21Set memory BIOs up properly when stripping text headers from S/MIME messages.Dr. Stephen Henson
2008-11-05Update obsolete email address...Dr. Stephen Henson
2007-08-12Fix warnings.Dr. Stephen Henson
2007-04-13Don't finalize signerinfo if reuse and partial both set.Dr. Stephen Henson
2007-02-26remove dead codeNils Larsch
2007-02-03fix potential memory leaksNils Larsch
PR: 1462
2006-12-24Experimental streaming PKCS#7 support.Dr. Stephen Henson
I thought it was about time I dusted this off. This stuff had been sitting on my hard drive for *ages* (2003 in fact). Hasn't been tested well and may not work properly. Nothing uses it at present which is just as well. Think of this as a traditional Christmas present which looks far more impressive in the adverts and on the box, some of the bits are missing and falls to bits if you play with it too much.
2006-07-09Set detached flag in PKCS7 structure earlier to avoid eating up memory.Dr. Stephen Henson
PR: 1071
2006-06-06Add AES and GOST S/MIME capabilities if algorithms are supported.Dr. Stephen Henson
2006-05-26Flush p7bio when all data has been copied.Dr. Stephen Henson
2006-05-24Fix warnings.Dr. Stephen Henson
2006-05-18Add -resign and -md options to smime command to support resigning anDr. Stephen Henson
existing structure and using alternative digest for signing.
2006-05-18More S/MIME tidy. Place some common attribute operations in utilityDr. Stephen Henson
functions.
2006-05-17Tidy up of S/MIME code and add new functions which will make is easierDr. Stephen Henson
to create S/MIME signed data with multiple signers.
2006-05-07Update S/MIME code to use default digest.Dr. Stephen Henson
2005-08-04Allow PKCS7_decrypt() to work if no cert supplied.Dr. Stephen Henson
2005-05-19fix potential memory leakNils Larsch
Submitted by: Goetz Babin-Ebell
2005-05-17fix memory leak (BIO_free_all needs pointer to first BIO)Bodo Möller
PR: 1070
2005-02-14Fix possible memory leak.Dr. Stephen Henson
2005-01-14PKCS7_verify() performance optimization. When the content is large and aDr. Stephen Henson
memory BIO (for example from SMIME_read_PKCS7 and detached data) avoid lots of slow memory copies from the memory BIO by saving the content in a temporary read only memory BIO.
2004-03-27Allow CRLs to be passed into X509_STORE_CTX. This is useful when theDr. Stephen Henson
verified structure can contain its own CRLs (such as PKCS#7 signedData). Tidy up some of the verify code.
2003-02-25Fix indefinite length encoding so EOC correctly updatesDr. Stephen Henson
the buffer pointer. Rename PKCS7_PARTSIGN to PKCS7_STREAM. Guess what that's for :-)
2003-02-15Single pass processing to cleartext S/MIME signing.Dr. Stephen Henson
2001-09-01Make the necessary changes to work with the recent "ex_data" overhaul.Geoff Thorpe
See the commit log message for that for more information. NB: X509_STORE_CTX's use of "ex_data" support was actually misimplemented (initialisation by "memset" won't/can't/doesn't work). This fixes that but requires that X509_STORE_CTX_init() be able to handle errors - so its prototype has been changed to return 'int' rather than 'void'. All uses of that function throughout the source code have been tracked down and adjusted.
2001-03-09Change the EVP_somecipher() and EVP_somedigest()Dr. Stephen Henson
functions to return constant EVP_MD and EVP_CIPHER pointers. Update docs.
2001-02-24Stop PKCS7_verify() core dumping with unknown publicDr. Stephen Henson
key algorithms and leaking if the signature verify fails.
2001-02-19Make all configuration macros available for application by makingRichard Levitte
sure they are available in opensslconf.h, by giving them names starting with "OPENSSL_" to avoid conflicts with other packages and by making sure e_os2.h will cover all platform-specific cases together with opensslconf.h. I've checked fairly well that nothing breaks with this (apart from external software that will adapt if they have used something like NO_KRB5), but I can't guarantee it completely, so a review of this change would be a good thing.
2000-09-18Work around for Netscape PKCS#7 signedData bug.Dr. Stephen Henson
2000-09-17Use sk_*_new_null() instead of sk_*_new(NULL), since that takes careRichard Levitte
of complaints from the compiler about data pointers and function pointers not being compatible with each other.
2000-09-07Ugh, BIO_find_type() cannot be passed a NULL.Dr. Stephen Henson
Fix doc example, and fix BIO_find_type(). Fix PKCS7_verify(). It was using 'i' for both the loop variable and the verify return value.
2000-09-05Keep a not of original encoding in certificate requests.Dr. Stephen Henson
Add new option to PKCS7_sign to exclude S/MIME capabilities.
2000-05-16Typesafe Thought Police part 4.Ben Laurie
2000-05-15Get rid of more non-ANSI declarations.Ulf Möller
2000-02-28Ouch! PKCS7_encrypt() was heading MIME text headers twiceDr. Stephen Henson
because it added them manually and as part of SMIME_crlf_copy(). Removed the manual add.
2000-02-26Rename functions for new convention.Dr. Stephen Henson
1999-12-15Delete an unused variable and make the PKCS#12 keygen debugging code workDr. Stephen Henson
again.
1999-12-15Fix the S/MIME code to use canonical MIME format forDr. Stephen Henson
encrypted mail. Also update the smime docs.
1999-12-11Various S/MIME fixes.Dr. Stephen Henson
1999-12-09Make the PKCS#7 S/MIME functions check for passed NULL pointers.Dr. Stephen Henson
Fix the usage message of smime utility and sanitise the return codes. Add some documentation.
1999-12-07Modify S/MIME application so the -signer option writes the signer(s)Dr. Stephen Henson
to a file if we are verifying.
1999-12-05Merge in my S/MIME library and utility.Dr. Stephen Henson