summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/cms/cms_pwri.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Tidy a few more includes in cms/tb2024-01-141-1/+2
|
* Clean up includes in cms_pwri.ctb2023-12-201-8/+10
|
* Hide symbols in cms, comp, conf, and bufferbeck2023-07-081-1/+3
| | | | ok jsing@
* Make internal header file names consistenttb2022-11-261-3/+3
| | | | | | | | | | | | | | | | Libcrypto currently has a mess of *_lcl.h, *_locl.h, and *_local.h names used for internal headers. Move all these headers we inherited from OpenSSL to *_local.h, reserving the name *_internal.h for our own code. Similarly, move dtls_locl.h and ssl_locl.h to dtls_local and ssl_local.h. constant_time_locl.h is moved to constant_time.h since it's special. Adjust all .c files in libcrypto, libssl and regress. The diff is mechanical with the exception of tls13_quic.c, where #include <ssl_locl.h> was fixed manually. discussed with jsing, no objection bcook
* Check return value from EVP_CIPHER_CTX_new in cms_pwri.cinoguchi2022-01-191-2/+4
| | | | | | CID 345137 ok jsing@ tb@
* Inline the equivalent of ASN1_TYPE_unpack_sequence().jsing2019-08-121-3/+6
|
* Expand M_ASN1_new_of and M_ASN1_free_of macros.jsing2019-08-111-4/+4
|
* Use arc4random_buf() instead of RAND_bytes().jsing2019-08-111-6/+4
| | | | This also removes return checks since arc4random_buf() does not fail.
* Include string.h for memcmp()/memcpy().jsing2019-08-111-1/+3
|
* Use freezero() rather than OPENSSL_clear_free().jsing2019-08-111-3/+3
|
* Use malloc(3) and free(3), rather than OPENSSL_{malloc,free}().jsing2019-08-111-5/+5
|
* Convert CMSerr() to CMSerror().jsing2019-08-111-24/+19
|
* Expand ASN.1 macros.jsing2019-08-111-3/+3
|
* Unlike OpenSSL we do not have our own special ssize_t.jsing2019-08-111-3/+3
|
* More style(9), whitespace and readability fixes.jsing2019-08-101-48/+42
| | | | Files are identical once whitespace and newlines are removed.
* First pass at style(9).jsing2019-08-101-337/+337
| | | | Whitespace only and no change according to diff -w.
* Fix includes for non-installed headers.jsing2019-08-101-3/+3
|
* Add $OpenBSD$ tags.jsing2019-08-101-0/+1
|
* Restore the original per-file licenses for CMS.jsing2019-08-101-5/+49
| | | | These were removed in OpenSSL b1322259d93cf6b6286f9febcd468b6a9f577d91.
* Work towards supporting Cryptographic Message Syntax (CMS) in libcrypto.jsing2019-08-101-0/+394
| | | | | | | | | | | | | | | | Cryptographic Message Syntax (CMS) is a standard for cryptographically protecting messages, as defined in RFC 5652. It is derived from PKCS #7 version 1.5 and utilises various ASN.1 structures, making it complex and fairly heavyweight. Various protocols - including RPKI (RFC 6480) - have been built on top of it, which means it is necessary to support CMS, in order to support RPKI. This imports around 6,000 lines of code from OpenSSL 1.1.1, which is still under the original OpenSSL license. Further work will occur in tree. Requested by and discussed with many. ok deraadt@ tb@
* Remove cms.jsing2016-09-041-431/+0
| | | | ok beck@, guenther@, tedu@
* Correct spelling of OPENSSL_cleanse.jsing2015-09-101-2/+2
| | | | ok miod@
* Fix return paths with missing EVP_CIPHER_CTX_cleanup() calls.jsg2015-05-151-4/+4
| | | | ok doug@
* Use arc4random_buf() instead of RAND_bytes() or RAND_pseudo_bytes().jsing2014-10-221-5/+5
| | | | | | | | 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@
* Avoid invoking EVP_CIPHER_CTX_cleanup() on uninitialized memory; frommiod2014-07-111-2/+2
| | | | Coverity via OpenSSL trunk
* Only import cryptlib.h in the four source files that actually need it.jsing2014-07-111-7/+7
| | | | | | | | 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@
* tags as requested by miod and teduderaadt2014-06-121-1/+1
|
* KNF.jsing2014-05-241-127/+104
|
* Spell ssize_t correctly (the incorrect spelling is ossl_ssize_t).jsing2014-05-241-2/+2
| | | | ok miod@
* Change library to use intrinsic memory allocation functions instead ofbeck2014-04-171-5/+5
| | | | | | | | OPENSSL_foo wrappers. This changes: OPENSSL_malloc->malloc OPENSSL_free->free OPENSSL_relloc->realloc OPENSSL_freeFunc->free
* import OpenSSL-1.0.1cdjm2012-10-131-0/+454