summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/cms/cms_lib.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* More include sweeping in cms.tb2024-11-011-6/+9
|
* Hide symbols in CMSjoshua2024-03-301-1/+2
| | | | ok jsing
* cms_content_bio() is not used outside of cms_lib.ctb2023-08-241-2/+2
| | | | | Make it a static function and remove its prototype from the internal header.
* Some tweaking of cms_content_bio()tb2023-08-241-10/+10
| | | | | | | More idiomatic error checking and drop an always false test for !*pos. Use a slightly closer approximation to actual English sentences in comments. ok jsing
* Better names for the BIOs in CMS_dataInit()tb2023-08-241-14/+14
| | | | | | Rename cmsbio into cms_bio and use {,in_}content_bio for {,i}cont. ok jsing
* Pull the NULL check for cmsbio into the switchtb2023-08-221-14/+10
| | | | ok jsing
* Plug a leak of cont in CMS_dataInit()tb2023-08-221-11/+12
| | | | | | This and ts/ts_rsp_sign.c r1.32 were part of OpenSSL 309e73df. ok jsing
* Provide CMS{,_SignerInfo}_get_versiontb2023-07-281-1/+44
| | | | | | | Add accessors for the syntax versions of ContentInfo and SignerInfo. These will be used soon in rpki-client for some more compliance checks. ok job jsing
* Hide symbols in cms, comp, conf, and bufferbeck2023-07-081-1/+21
| | | | ok jsing@
* Unifdef ZLIBtb2023-06-111-6/+1
| | | | | | | This has long been unused code and compilation with -DZLIB was broken for a long time after BIO was made opaque. 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
* Move the now internal X.509-related structs into x509_lcl.h.tb2021-11-011-2/+3
| | | | | | | | Garbage collect the now unused LIBRESSL_CRYPTO_INTERNAL and LIBRESSL_OPAQUE_X509. Include "x509_lcl.h" where needed and fix a couple of unnecessary reacharounds. ok jsing
* Provide a local version of X509_get0_subject_key_id()jsing2019-08-121-3/+11
| | | | | It seems that the CMS code is currently the only code in existence that uses this function.
* Expand M_ASN1_new_of and M_ASN1_free_of macros.jsing2019-08-111-8/+8
|
* Convert CMSerr() to CMSerror().jsing2019-08-111-22/+17
|
* Expand ASN.1 macros.jsing2019-08-111-3/+33
|
* More style(9), whitespace and readability fixes.jsing2019-08-101-43/+98
| | | | Files are identical once whitespace and newlines are removed.
* First pass at style(9).jsing2019-08-101-407/+407
| | | | Whitespace only and no change according to diff -w.
* 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/+587
| | | | | | | | | | | | | | | | 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-594/+0
| | | | ok beck@, guenther@, tedu@
* BIO_free() returns immediately when the sole input is NULL.doug2014-07-251-3/+2
| | | | | | Remove unnecessary NULL check. ok miod@
* tags as requested by miod and teduderaadt2014-06-121-1/+1
|
* KNF.jsing2014-05-241-236/+209
|
* Import OpenSSL 1.0.1gmiod2014-04-131-4/+0
|
* import OpenSSL-1.0.1cdjm2012-10-131-2/+1
|
* import OpenSSL-1.0.0adjm2010-10-011-14/+18
|
* import of OpenSSL 0.9.8hdjm2008-09-061-0/+623