summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/err (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Clean up dangerous strncpy use. This included a use where the resultingbeck2014-04-161-2/+1
| | | | | | | string was potentially not nul terminated and a place where malloc return was unchecked. while we're at it remove dummytest.c ok miod@
* we don't use these files for buildingtedu2014-04-151-75/+0
|
* remove FIPS mode support. people who require FIPS can buy something thattedu2014-04-151-6/+0
| | | | | meets their needs, but dumping it in here only penalizes the rest of us. ok beck deraadt
* Part 1 of eliminating BIO_snprintf(). This fixes mechanical conversionsbeck2014-04-152-5/+5
| | | | | where the return value is ignored changing to (void) snprintf. ok deraadt@
* remove auto-generated dependencies from the old unused build system, soderaadt2014-04-141-35/+0
| | | | | that it is easier to find code pieces. They are getting in the way. ok miod
* Remove various horrible socket syscall wrappers, especially SHUTDOWN*deraadt2014-04-131-1/+1
| | | | | | which did shutdown + close, all nasty and surprising. Use the raw syscalls that everyone knows the behaviour of. ok beck matthew
* Merge conflicts; remove MacOS, Netware, OS/2, VMS and Windows build machinery.miod2014-04-131-9/+10
|
* resolve conflictsdjm2012-10-133-6/+17
|
* resolve conflicts, fix local changesdjm2010-10-019-1268/+851
|
* This commit was generated by cvs2git to track changes on a CVS vendordjm2010-10-011-33/+13
|\ | | | | branch.