summaryrefslogtreecommitdiffstats
path: root/lib/libcrypto/err
AgeCommit message (Collapse)AuthorFilesLines
2019-10-17Provide err_clear_last_constant_time() as a way of clearing an error fromjsing1-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@
2019-09-09Load CMS error strings.jsing1-1/+5
2018-04-03KNF: move two opening curly braces of function bodies to their own linestb1-2/+3
2018-03-17Bring in compatibility for OpenSSL 1.1 style init functions.beck2-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@
2017-02-20Mark ERR_add_error_data and ERR_add_error_vdata as not for internal use,beck2-10/+13
and document ERR_asprintf_error_data as their replacement. ok jsing@, ingo@
2017-02-07Revert previous; the implementation is incorrect since it assumes that thejsing2-20/+7
provided error code matches the error that is currently on the top of the error stack.
2017-02-07Add file and line to the LibreSSL error strings sine we are no longer inbeck2-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@
2017-01-29Send the function codes from the error functions to the bit bucket,beck2-4/+40
as was done earlier in libssl. Thanks inoguchi@ for noticing libssl had more reacharounds into this. ok jsing@ inoguchi@
2017-01-26Hide SSLerr() under #ifndef LIBRESSL_INTERNAL since we shouldn't bebeck1-2/+4
using it anymore ok jsing@
2016-10-19unifdef OPENSSL_NO_CMSjsing1-7/+1
2015-02-11Guenther has plans for OPENSSL_NO_CMS, so revert this for the moment.beck1-4/+4
2015-02-11get rid of OPENSSL_NO_CMS code we do not use.beck1-4/+4
ok miod@
2015-02-11get rid of OPENSSL_NO_COMP code we don't use.beck1-7/+1
jajaja miod@
2014-11-09GOST crypto algorithms (well, most of them), ported from the removed GOSTmiod4-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.
2014-10-18Sort/group includes.jsing1-25/+26
2014-10-05compile with c89 (code / decl ordering); from Joakim.Tjernlund@transmode.sederaadt1-2/+3
ok miod
2014-08-24constify strerror return valuebcook1-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@
2014-07-11Revert change that snuck into previous commit.jsing1-3/+1
2014-07-11Only import cryptlib.h in the four source files that actually need it.jsing3-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@
2014-07-11Remove JPAKE remnants - there is no jpake.h, so if OPENSSL_NO_JPAKE wasjsing2-8/+1
removed from opensslconf.h, this would no longer compile.
2014-07-10Explicitly include <openssl/opensslconf.h> in every file that referencesjsing2-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.
2014-07-10Stop including standard headers via cryptlib.h - pull in the headers thatjsing1-1/+3
are needed in the source files that actually require them. ok beck@ miod@
2014-07-08We do not care about broken Borland C pre-processors.jsing1-5/+3
ok beck@ deraadt@
2014-06-27save_errno botch; spotted by miodderaadt1-2/+2
2014-06-27hand-KNF the remaining bitsderaadt1-96/+104
2014-06-26save errno in ERR_put_error(), so that SYSerr doesn't have any accidentalderaadt1-1/+3
cases where errno can be trashed. ok jsing
2014-06-12tags as requested by miod and teduderaadt4-4/+4
2014-06-07malloc() result does not need a cast.deraadt1-1/+1
ok miod
2014-05-29Everything sane has stdio, and FILE *. we don't need ifdefs for this.beck2-6/+0
ok to firebomb from tedu@
2014-05-24Almost nothing actually needs to include <openssl/e_os2.h>, however byjsing1-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@
2014-05-24No OPENSSL_SYS_WINDOWS wanted.jsing1-3/+0
ok miod@
2014-04-24add ERR_asprintf_error_data, A tool to be used to get rid of the far toobeck2-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@
2014-04-21KNF.jsing4-549/+582
2014-04-20Chop off more SSLv2 tentacles and start fixing and noting y2038 issues.guenther1-11/+18
APIs that pass times as longs will have to change at some point... Bump major on both libcrypto and libssl. ok tedu@
2014-04-20Restore beck's rev 1.9: snprintf() was reviewedguenther1-1/+1
2014-04-19We'll interpret a (void) cast on snprintf() to mean it's been verified thatguenther2-5/+5
truncation is either desirable, not an issue, or is detected and handled later ok deraadt@
2014-04-19use intrinsic strlcpy and strlcat everywhere so we only have one set ofbeck1-1/+1
funcitons to check for incorrect use. keep BUF_strlcpy and BUF_strlcat for API comptibility only. ok tedu@
2014-04-18Unsurprisingly, since <unistd.h> was so darn hard to find for OpenSSL developersbeck1-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@
2014-04-17kill REF_PRINT/REF_CHECK debugging framework noone would usederaadt1-11/+1
ok miod
2014-04-17Change library to use intrinsic memory allocation functions instead ofbeck1-7/+7
OPENSSL_foo wrappers. This changes: OPENSSL_malloc->malloc OPENSSL_free->free OPENSSL_relloc->realloc OPENSSL_freeFunc->free
2014-04-16Clean up dangerous strncpy use. This included a use where the resultingbeck1-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@
2014-04-15we don't use these files for buildingtedu1-75/+0
2014-04-15remove FIPS mode support. people who require FIPS can buy something thattedu1-6/+0
meets their needs, but dumping it in here only penalizes the rest of us. ok beck deraadt
2014-04-15Part 1 of eliminating BIO_snprintf(). This fixes mechanical conversionsbeck2-5/+5
where the return value is ignored changing to (void) snprintf. ok deraadt@
2014-04-14remove auto-generated dependencies from the old unused build system, soderaadt1-35/+0
that it is easier to find code pieces. They are getting in the way. ok miod
2014-04-13Remove various horrible socket syscall wrappers, especially SHUTDOWN*deraadt1-1/+1
which did shutdown + close, all nasty and surprising. Use the raw syscalls that everyone knows the behaviour of. ok beck matthew
2014-04-13Merge conflicts; remove MacOS, Netware, OS/2, VMS and Windows build machinery.miod1-9/+10
2012-10-13resolve conflictsdjm3-6/+17
2010-10-01resolve conflicts, fix local changesdjm9-1268/+851
2010-10-01import OpenSSL-1.0.0adjm1-33/+13