summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/pkcs7 (follow)
Commit message (Collapse)AuthorAgeFilesLines
* GOST crypto algorithms (well, most of them), ported from the removed GOSTmiod2014-11-091-1/+3
| | | | | | | | | | | | engine to regular EVP citizens, contributed by Dmitry Eremin-Solenikov; libcrypto bits only for now. This is a verbatim import of Dmitry's work, and does not compile in this state; the forthcoming commits will address these issues. None of the GOST code is enabled in libcrypto yet, for it still gets compiled with OPENSSL_NO_GOST defined. However, the public header gost.h will be installed.
* Check the result of sk_*_push() operations for failure.miod2014-10-281-17/+17
| | | | ok doug@ jsing@
* Use arc4random_buf() instead of RAND_bytes() or RAND_pseudo_bytes().jsing2014-10-221-4/+3
| | | | | | | | arc4random_buf() is guaranteed to always succeed - it is worth noting that a number of the replaced function calls were already missing return value checks. ok deraadt@
* None of these need to include <openssl/rand.h>jsing2014-10-181-2/+1
|
* BIO_free() returns immediately when the sole input is NULL.doug2014-07-251-3/+2
| | | | | | Remove unnecessary NULL check. ok miod@
* if (x) FOO_free(x) -> FOO_free(x).miod2014-07-122-10/+6
| | | | | | | Improves readability, keeps the code smaller so that it is warmer in your cache. review & ok deraadt@
* Only import cryptlib.h in the four source files that actually need it.jsing2014-07-115-14/+16
| | | | | | | | Remove the openssl public includes from cryptlib.h and add a small number of includes into the source files that actually need them. While here, also sort/group/tidy the includes. ok beck@ miod@
* Explicitly include <openssl/opensslconf.h> in every file that referencesjsing2014-07-101-1/+4
| | | | | | | | | an OPENSSL_NO_* define. This avoids relying on something else pulling it in for us, plus it fixes several cases where the #ifndef OPENSSL_NO_XYZ is never going to do anything, since OPENSSL_NO_XYZ will never defined, due to the fact that opensslconf.h has not been included. This also includes some miscellaneous sorting/tidying of headers.
* KNFmiod2014-07-101-26/+34
|
* Fix a double free in a can't-fail error path in PKCS7_decrypt(), by removingmiod2014-07-101-10/+6
| | | | | the error path altogether and simplifying the local variables as a result. joint work with jsing@; ok jsing@ tedu@
* Stop including standard headers via cryptlib.h - pull in the headers thatjsing2014-07-101-1/+3
| | | | | | are needed in the source files that actually require them. ok beck@ miod@
* Remove #if 0 code which dumps your data to stdout.miod2014-07-101-9/+1
|
* More KNF.jsing2014-07-081-16/+18
|
* pk7_doit.c r1.20 introduced a NULL check that ensures that the signaturejsing2014-07-021-2/+2
| | | | | | | | | | contents are not NULL, however this breaks detached signature processing. Fix this by allowing the signature contents to be NULL when operating with a detached signature. Found the hard way by sthen@. ok sthen@
* Remove more unused cruft.jsing2014-07-0229-1633/+0
| | | | No objection from the usual suspects.
* KNF.jsing2014-07-021-61/+51
|
* Remove yet another unused file... a backup copy (minus copyright andjsing2014-06-291-66/+0
| | | | includes) follows this commit message:
* KNF.jsing2014-06-2911-1606/+1563
| | | | | | | | I just spent too long chasing a bug in here and really should have done this first. Gem of the day... is it an if test or a for loop? No, it is a super ifloop! if (!(flags & PKCS7_NOVERIFY)) for (k = 0; k < sk_X509_num(signers); k++) {
* Remove another unused source file - I got suspicious when I found ajsing2014-06-291-460/+0
| | | | | | | | function that ended with: if (ret & 0x01) if (ret & V_ASN1_CONSTRUCTED) }
* tags as requested by miod and teduderaadt2014-06-1214-12/+14
|
* Remove various test stubs. The good ones have been moved by jsingderaadt2014-06-074-833/+0
| | | | | | and others to the regress framework. These remaining ones just muddle us up when re-reading code repeatedly. ok jsing
* Everything sane has stdio, and FILE *. we don't need ifdefs for this.beck2014-05-291-2/+0
| | | | ok to firebomb from tedu@
* calloc instead of malloc/memset. from Benjamin Baiertedu2014-05-251-3/+1
|
* Almost nothing actually needs to include <openssl/e_os2.h>, however byjsing2014-05-241-2/+2
| | | | | | | including it they get <openssl/opensslconf.h>. So instead of pulling in <openssl/e_os2.h>, just pull in <openssl/opensslconf.h>. "go ahead" miod@
* if (x) free(x) -> free(x); semantic patch generated with coccinelle, carefullymiod2014-05-221-2/+1
| | | | eyeballed before applying. Contributed by Cyril Roelandt on tech@
* no no md2tedu2014-05-172-6/+0
|
* Make sure PKCS7_get_octet_string() return values are checked for NULL.miod2014-05-061-2/+10
| | | | | | Reported by David Ramos (and simultaneously to OpenSSL as PR#3339). ok beck@ logan@
* Use C99 initializers for the various FOO_METHOD structs. More readable, andmiod2014-04-271-12/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | avoid unreadable/unmaintainable constructs like that: const EVP_PKEY_ASN1_METHOD cmac_asn1_meth = { EVP_PKEY_CMAC, EVP_PKEY_CMAC, 0, "CMAC", "OpenSSL CMAC method", 0,0,0,0, 0,0,0, cmac_size, 0, 0,0,0,0,0,0,0, cmac_key_free, 0, 0,0 }; ok matthew@ deraadt@
* Replace all use of ERR_add_error_data with ERR_asprintf_error_data.beck2014-04-262-4/+2
| | | | | | | | This avoids a lot of ugly gymnastics to do snprintfs before sending the bag of strings to ERR, and eliminates at least one place in dso_dlfctn.c where it was being called with the incorrect number of arguments and using random things off the stack as addresses of strings. ok krw@, jsing@
* XXXXXXXXXXXXXXXX -> XXXtedu2014-04-181-3/+3
| | | | XXXXXXXXXXXXXXXXXXXXXXX -> XXXX
* fix another potential double freejsg2014-04-181-2/+2
| | | | ok miod@ lteo@ jca@
* -netwaretedu2014-04-181-6/+2
|
* Use of OPENSSL_SYS_xxx defines in public header files considered harmful.miod2014-04-171-6/+0
|
* Change library to use intrinsic memory allocation functions instead ofbeck2014-04-172-18/+18
| | | | | | | | OPENSSL_foo wrappers. This changes: OPENSSL_malloc->malloc OPENSSL_free->free OPENSSL_relloc->realloc OPENSSL_freeFunc->free
* we don't use these files for buildingtedu2014-04-151-96/+0
|
* remove auto-generated dependencies from the old unused build system, soderaadt2014-04-141-98/+0
| | | | | that it is easier to find code pieces. They are getting in the way. ok miod
* Cope with the removal of openssl/symhacks.hderaadt2014-04-131-1/+0
|
* This commit was generated by cvs2git to track changes on a CVS vendormiod2014-04-131-1/+1
|\ | | | | branch.
| * Import OpenSSL 1.0.1gmiod2014-04-131-1/+1
| |
| * import OpenSSL-1.0.1cdjm2012-10-132-28/+98
| |
| * import OpenSSL 1.0.0edjm2011-11-032-5/+0
| |
* | resolve conflictsdjm2012-10-132-28/+98
| |
* | openssl-1.0.0e: resolve conflictsdjm2011-11-032-5/+0
| |
* | resolve conflicts, fix local changesdjm2010-10-019-1265/+778
| |
* | This commit was generated by cvs2git to track changes on a CVS vendordjm2010-10-011-0/+69
|\| | | | | branch.
| * import OpenSSL-1.0.0adjm2010-10-019-1022/+847
| |
| * import of OpenSSL 0.9.8kdjm2009-04-061-2/+1
| |
| * import openssl-0.9.8jdjm2009-01-094-4/+5
| |
| * import of OpenSSL 0.9.8hdjm2008-09-068-249/+509
| |
| * import of openssl-0.9.7jdjm2006-06-273-77/+99
| |