summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/err (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Move a few functions out of OPENSSL_NO_DEPRECATEDtb2023-04-092-7/+4
| | | | | | | | | | | | | | | | | | | | | | | | Geoff Thorpe added OPENSSL_NO_DEPRECATED nearly two decades ago. The hope was that at some point some functions can be dropped. Most of the functions marked deprecated are actually unused nowadays but unfortunately some of them are still used in the ecosystem. Move them out of OPENSSL_NO_DEPRECATED so we can define it without breaking the consumers in the next bump. ERR_remove_state() is still used by a dozen or so ports. This isn't a big deal since it is just a stupid wrapper for the not quite as deprecated ERR_remove_thread_state(). It's not worth patching these ports. Annoyingly, {DH,DSA}_generate_parameters() and RSA_generate_key() are still used. They "make use" of the old-style BN_GENCB callback, which is therefore more difficult to remove - in case you don't know know: that's the thing responsible for printing pretty '.', '+' and '*' when you generate keys. Most annoyingly, DH_generate_parameters() was added to rust-openssl in 2020 for "advanced DH support". This is very unfortunate since cargo bundles a rust-openssl and updates it only every few years or so. As a consequence we're going to be stuck with this nonsense for a good while. ok beck jsing
* Avoid errno is EINVAL after OpenSSL initializationjan2023-03-271-1/+5
| | | | ok tb@
* spelling fixes; from paul tagliamontejmc2022-12-261-2/+2
| | | | | | | i removed the arithmetics -> arithmetic changes, as i felt they were not clearly correct ok tb
* Provide ERR_R_INIT_FAIL.jsing2022-08-292-3/+4
| | | | | | Needed for an upcoming change. ok tb@
* Remove mkerr.pl remnants from LibreSSLkn2022-07-121-96/+0
| | | | | | | This script is not used at all and files are edited by hand instead. Thus remove misleading comments incl. the obsolete script/config. Feedback OK jsing tb
* Sort alphabetically so that future omissions will be easier to spot.tb2022-05-071-35/+35
| | | | discussed with jsing
* Add missing ERR_load_{COMP,CT,KDF}_strings()tb2022-05-061-1/+11
| | | | ok beck
* Provide KDFerr() and KDFerror() macrostb2022-05-051-1/+4
| | | | ok beck jsing
* Add a new, mostly empty, bio_local.h and include it in the filestb2022-01-071-1/+3
| | | | | | that will need it in the upcoming bump. discussed with jsing
* Make the certificate transparency code build with the rest of the librarybeck2021-11-241-1/+4
| | | | | | Do not expose it yet, this will wait for an upcoming bump ok tb@
* Provide err_clear_last_constant_time() as a way of clearing an error fromjsing2019-10-171-1/+22
| | | | | | | | | | the top of the error stack in constant time. This will be used by upcoming RSA changes. From OpenSSL 1.1.1d. ok inoguchi@ tb@
* Load CMS error strings.jsing2019-09-091-1/+5
|
* KNF: move two opening curly braces of function bodies to their own linestb2018-04-031-2/+3
|
* Bring in compatibility for OpenSSL 1.1 style init functions.beck2018-03-172-6/+44
| | | | | | | | | This adds OPENSSL_init_crypto and OPENSSL_init_ssl, as well thread safety modifications for the existing LibreSSL init functions. The initialization routines are called automatically by the normal entry points into the library, as in newer OpenSSL ok jsing@, nits by tb@ and deraadt@
* Mark ERR_add_error_data and ERR_add_error_vdata as not for internal use,beck2017-02-202-10/+13
| | | | | and document ERR_asprintf_error_data as their replacement. ok jsing@, ingo@
* Revert previous; the implementation is incorrect since it assumes that thejsing2017-02-072-20/+7
| | | | | provided error code matches the error that is currently on the top of the error stack.
* Add file and line to the LibreSSL error strings sine we are no longer inbeck2017-02-072-7/+20
| | | | | | | 1989, VMS, or MS/DOS and we all run Brobdingnagian C compilers that have can now be counted on to achieve this level of sophistication nearly everywhere. ok jsing@
* Send the function codes from the error functions to the bit bucket,beck2017-01-292-4/+40
| | | | | | as was done earlier in libssl. Thanks inoguchi@ for noticing libssl had more reacharounds into this. ok jsing@ inoguchi@
* Hide SSLerr() under #ifndef LIBRESSL_INTERNAL since we shouldn't bebeck2017-01-261-2/+4
| | | | | using it anymore ok jsing@
* unifdef OPENSSL_NO_CMSjsing2016-10-191-7/+1
|
* Guenther has plans for OPENSSL_NO_CMS, so revert this for the moment.beck2015-02-111-4/+4
|
* get rid of OPENSSL_NO_CMS code we do not use.beck2015-02-111-4/+4
| | | | ok miod@
* get rid of OPENSSL_NO_COMP code we don't use.beck2015-02-111-7/+1
| | | | jajaja miod@
* GOST crypto algorithms (well, most of them), ported from the removed GOSTmiod2014-11-094-3/+13
| | | | | | | | | | | | 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.
* Sort/group includes.jsing2014-10-181-25/+26
|
* compile with c89 (code / decl ordering); from Joakim.Tjernlund@transmode.sederaadt2014-10-051-2/+3
| | | | ok miod
* constify strerror return valuebcook2014-08-241-2/+2
| | | | | | | | | There is no intention to modify the string returned by strerror and doing so is forbidden by the standard. from Jonas 'Sortie' Termansen ok tedu@ deraadt@
* Revert change that snuck into previous commit.jsing2014-07-111-3/+1
|
* Only import cryptlib.h in the four source files that actually need it.jsing2014-07-113-10/+10
| | | | | | | | 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@
* Remove JPAKE remnants - there is no jpake.h, so if OPENSSL_NO_JPAKE wasjsing2014-07-112-8/+1
| | | | removed from opensslconf.h, this would no longer compile.
* Explicitly include <openssl/opensslconf.h> in every file that referencesjsing2014-07-102-3/+9
| | | | | | | | | 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.
* 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@
* We do not care about broken Borland C pre-processors.jsing2014-07-081-5/+3
| | | | ok beck@ deraadt@
* save_errno botch; spotted by miodderaadt2014-06-271-2/+2
|
* hand-KNF the remaining bitsderaadt2014-06-271-98/+106
|
* save errno in ERR_put_error(), so that SYSerr doesn't have any accidentalderaadt2014-06-261-1/+3
| | | | | cases where errno can be trashed. ok jsing
* tags as requested by miod and teduderaadt2014-06-124-4/+4
|
* malloc() result does not need a cast.deraadt2014-06-071-1/+1
| | | | ok miod
* Everything sane has stdio, and FILE *. we don't need ifdefs for this.beck2014-05-292-6/+0
| | | | ok to firebomb from tedu@
* Almost nothing actually needs to include <openssl/e_os2.h>, however byjsing2014-05-241-1/+1
| | | | | | | 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@
* No OPENSSL_SYS_WINDOWS wanted.jsing2014-05-241-3/+0
| | | | ok miod@
* add ERR_asprintf_error_data, A tool to be used to get rid of the far toobeck2014-04-242-25/+26
| | | | | | | | | frequent construct of 30 lines of pointer and strlcat insanity followed by an ERR_add_error_data. I will sweep through here like a chubby mongol horde in the next few days pillaging crappy ERR_add_error_data's. Oh and while we're at it fix the nasty vdata function to use something less hard on the eyes. ok jsing@
* KNF.jsing2014-04-214-558/+591
|
* Chop off more SSLv2 tentacles and start fixing and noting y2038 issues.guenther2014-04-201-11/+18
| | | | | | | APIs that pass times as longs will have to change at some point... Bump major on both libcrypto and libssl. ok tedu@
* Restore beck's rev 1.9: snprintf() was reviewedguenther2014-04-201-1/+1
|
* We'll interpret a (void) cast on snprintf() to mean it's been verified thatguenther2014-04-192-5/+5
| | | | | | truncation is either desirable, not an issue, or is detected and handled later ok deraadt@
* use intrinsic strlcpy and strlcat everywhere so we only have one set ofbeck2014-04-191-1/+1
| | | | | | funcitons to check for incorrect use. keep BUF_strlcpy and BUF_strlcat for API comptibility only. ok tedu@
* Unsurprisingly, since <unistd.h> was so darn hard to find for OpenSSL developersbeck2014-04-181-19/+0
| | | | | | | | they had resorted to manually protyping read(2) instead of incredible amount of preprocessor wizardry needed to find the ever illusive <unistd.h>. Let's just include <unistd.h> and we don't need to do this.. While we're at it flense out _OSD_POSIX and __DGJPP__ cruft. ok krw@
* kill REF_PRINT/REF_CHECK debugging framework noone would usederaadt2014-04-171-11/+1
| | | | ok miod
* Change library to use intrinsic memory allocation functions instead ofbeck2014-04-171-7/+7
| | | | | | | | OPENSSL_foo wrappers. This changes: OPENSSL_malloc->malloc OPENSSL_free->free OPENSSL_relloc->realloc OPENSSL_freeFunc->free