Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | correct misspelled page name in an .Xr | schwarze | 2019-08-12 | 1 | -3/+3 | |
| | ||||||
* | Fix .Xrs to non-existant pages by correcting the misspelled function | schwarze | 2019-08-12 | 1 | -43/+83 | |
| | | | | | | names and documenting these two functions, CMS_decrypt_set1_pkey(3) and CMS_decrypt_set1_key(3) right here in this same page. While here, simplify and improve some wording. | |||||
* | These public functions are listed in the OpenSSL manuals but not | schwarze | 2019-08-12 | 2 | -0/+257 | |
| | | | | actually documented, so write the documentation from scratch. | |||||
* | merge a few minor improvements from the OpenSSL 1.1.1 branch, | schwarze | 2019-08-12 | 1 | -15/+35 | |
| | | | | | | | | | | which is still under a free license: * mention pem_password_cb in NAME and SYNOPSIS * recommend -1 as pem_password_cb error return for OpenSSL compat * minor improvements to the pass_cb() example code * mention that the pass phrase is just a byte sequence * and minor wording and markup improvements | |||||
* | Use ERR_asprintf_error_data() instead of ERR_add_error_data(). | jsing | 2019-08-11 | 1 | -3/+3 | |
| | ||||||
* | Remove unsupported GOST 2012 NIDs. | jsing | 2019-08-11 | 1 | -3/+1 | |
| | ||||||
* | Disable DES3 since we do not currently provide DES3 keywrap. | jsing | 2019-08-11 | 1 | -1/+7 | |
| | ||||||
* | Remove label that is now unused (due to arc4random_buf() returning void). | jsing | 2019-08-11 | 1 | -3/+2 | |
| | ||||||
* | Fix loading of CMS error strings. | jsing | 2019-08-11 | 1 | -5/+5 | |
| | ||||||
* | Bring back stack macros for CMS structs. | jsing | 2019-08-11 | 1 | -1/+111 | |
| | ||||||
* | Provide ASN1_PKEY_CTRL_CMS_RI_TYPE. | jsing | 2019-08-11 | 1 | -1/+2 | |
| | ||||||
* | bring HISTORY sections up to OpenBSD standards | schwarze | 2019-08-11 | 21 | -78/+129 | |
| | ||||||
* | Include string.h for explicit_bzero(). | jsing | 2019-08-11 | 2 | -2/+6 | |
| | ||||||
* | Expand M_ASN1_new_of and M_ASN1_free_of macros. | jsing | 2019-08-11 | 9 | -39/+39 | |
| | ||||||
* | Use arc4random_buf() instead of RAND_bytes(). | jsing | 2019-08-11 | 3 | -12/+8 | |
| | | | | This also removes return checks since arc4random_buf() does not fail. | |||||
* | Include string.h for memcmp()/memcpy(). | jsing | 2019-08-11 | 5 | -5/+15 | |
| | ||||||
* | Use freezero() rather than OPENSSL_clear_free(). | jsing | 2019-08-11 | 5 | -15/+15 | |
| | ||||||
* | Use explicit_bzero() instead of OPENSSL_cleanse(). | jsing | 2019-08-11 | 2 | -5/+5 | |
| | ||||||
* | Use malloc(3) and free(3), rather than OPENSSL_{malloc,free}(). | jsing | 2019-08-11 | 6 | -33/+33 | |
| | ||||||
* | Convert CMSerr() to CMSerror(). | jsing | 2019-08-11 | 11 | -240/+191 | |
| | ||||||
* | Switch ASN.1 INT32 back to LONG. | jsing | 2019-08-11 | 2 | -28/+28 | |
| | ||||||
* | Expand a new macro that tried to get away... | jsing | 2019-08-11 | 1 | -2/+8 | |
| | ||||||
* | Expand ASN.1 macros. | jsing | 2019-08-11 | 8 | -273/+1544 | |
| | ||||||
* | We use DECLARE_STACK_OF rather than DEFINE_STACK_OF. | jsing | 2019-08-11 | 2 | -7/+7 | |
| | ||||||
* | Unlike OpenSSL we do not have our own special ssize_t. | jsing | 2019-08-11 | 3 | -9/+9 | |
| | ||||||
* | Re-convert and re-import the CMS manual pages from OpenSSL 1.1.1 | schwarze | 2019-08-10 | 21 | -0/+3388 | |
| | | | | | | | (which are still under a free license) with pod2mdoc(1) now that jsing@ has begun work to provide these APIs. Some formatting was improved and some typos were fixed, but apart from that, little was changed, so there is still much to polish. | |||||
* | Fix style(9) and whitespace. | jsing | 2019-08-10 | 1 | -210/+205 | |
| | ||||||
* | More style(9) and whitespace. | jsing | 2019-08-10 | 1 | -335/+294 | |
| | ||||||
* | More style(9), whitespace and readability fixes. | jsing | 2019-08-10 | 14 | -675/+903 | |
| | | | | Files are identical once whitespace and newlines are removed. | |||||
* | First pass at style(9). | jsing | 2019-08-10 | 14 | -4174/+4174 | |
| | | | | Whitespace only and no change according to diff -w. | |||||
* | Fix includes for non-installed headers. | jsing | 2019-08-10 | 9 | -25/+25 | |
| | ||||||
* | Include cms.h instead of cmserr.h. | jsing | 2019-08-10 | 1 | -2/+2 | |
| | ||||||
* | Add $OpenBSD$ tag. | jsing | 2019-08-10 | 1 | -0/+1 | |
| | ||||||
* | Restore the per-file license for cms.h. | jsing | 2019-08-10 | 1 | -5/+49 | |
| | | | | | This reverts the removal from OpenSSL 21dcbebc6e35419f1842f39a125374ea1ba45693. | |||||
* | Provide cms.h. | jsing | 2019-08-10 | 1 | -0/+515 | |
| | | | | | This is OpenSSL 1.1.1 cms.h and cmserr.h combined, essentially reverting OpenSSL 52df25cf2e656146cb3b206d8220124f0417d03f. | |||||
* | Add $OpenBSD$ tags. | jsing | 2019-08-10 | 15 | -0/+15 | |
| | ||||||
* | Restore the original per-file licenses for CMS. | jsing | 2019-08-10 | 14 | -70/+686 | |
| | | | | These were removed in OpenSSL b1322259d93cf6b6286f9febcd468b6a9f577d91. | |||||
* | Work towards supporting Cryptographic Message Syntax (CMS) in libcrypto. | jsing | 2019-08-10 | 15 | -0/+6172 | |
| | | | | | | | | | | | | | | | | 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@ | |||||
* | correct mispellings of EACCES; from Kris Katterjohnlibressl-v3.0.0 | deraadt | 2019-07-29 | 1 | -3/+3 | |
| | ||||||
* | explain the acronym "CRT"; suggested by tb@ | schwarze | 2019-07-13 | 2 | -6/+8 | |
| | ||||||
* | Using pthread_atfork instead of __register_atfork with uClibc on noMMU | inoguchi | 2019-07-11 | 1 | -2/+2 | |
| | | | | | | | | uClibc on noMMU doesn't provide __register_atfork(). Reported by redbirdtek on Github issue. https://github.com/libressl-portable/portable/issues/538 ok bcook@ | |||||
* | Group tls_{handshake,read,write,close}() return values documentation. | jsing | 2019-07-09 | 1 | -21/+21 | |
| | | | | | | | | | | Move the documentation for tls_error() down so that both the special return values for tls_{handshake,read,write,close}() directly follow the standard return values for the same functions. Prompted by deraadt@. ok deraadt@ schwarze@ | |||||
* | Clean up pvkfmt.c | inoguchi | 2019-07-08 | 1 | -63/+66 | |
| | | | | | | | | | | | - Replace EVP_CIPHER_CTX_init with EVP_CIPHER_CTX_new and handle return value - Replace EVP_CIPHER_CTX_cleanup with EVP_CIPHER_CTX_free - Change two 'return -1;' to 'goto err;' for avoiding leak - Remove the case if enclevel == 0 - Change enclevel checking to make more consistent - Change all goto label to 'err' and insert space before goto label ok and advise from tb@ | |||||
* | Fix pvk format processing in libcrypto | inoguchi | 2019-07-07 | 1 | -11/+11 | |
| | | | | | | | | - Return the valid pointer in i2b_PVK() - Use EVP_Decrypt* instead of EVP_Encrypt* - Fix error handling after BIO_write() in i2b_PVK_bio() ok tb@ | |||||
* | improve verb-tense for explaining the calling convention of __ | deraadt | 2019-07-05 | 1 | -3/+3 | |
| | | | | ok guenther jmc | |||||
* | The last consumer of pre-posix realpath behaviour has stopped | deraadt | 2019-07-05 | 1 | -34/+3 | |
| | | | | | | | | requiring it (sftp-server). Remove the /exists///// behaviour from here. The /nonexistant behaviour remains in the kernel and needs to be shot next. There may be ports fallout, but we doubt it. ok beck djm | |||||
* | snprintf/vsnprintf return < 0 on error, rather than -1. | deraadt | 2019-07-03 | 3 | -7/+7 | |
| | ||||||
* | Add cpuid support for arm64 so that we can recognize which | patrick | 2019-07-02 | 3 | -3/+57 | |
| | | | | | | hardware crypto features are available. "no objections" kettenis@ | |||||
* | tweak previous; ok guenther | jmc | 2019-06-30 | 1 | -5/+6 | |
| | ||||||
* | Document that getcwd() and realpath() are built on system calls that | guenther | 2019-06-29 | 1 | -2/+16 | |
| | | | | | | | have a different calling convention than the standard function...as seen in kdump output. ok deraadt@ schwarze@ |