summaryrefslogtreecommitdiffstats
path: root/lib/libcrypto/err/err.c
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@
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.beck1-2/+30
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,beck1-9/+10
and document ERR_asprintf_error_data as their replacement. ok jsing@, ingo@
2017-02-07Revert previous; the implementation is incorrect since it assumes that thejsing1-17/+4
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 inbeck1-4/+17
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,beck1-2/+2
as was done earlier in libssl. Thanks inoguchi@ for noticing libssl had more reacharounds into this. ok jsing@ inoguchi@
2014-11-09GOST crypto algorithms (well, most of them), ported from the removed GOSTmiod1-1/+2
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-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-11Only import cryptlib.h in the four source files that actually need it.jsing1-5/+4
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-10Explicitly include <openssl/opensslconf.h> in every file that referencesjsing1-2/+5
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-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 teduderaadt1-1/+1
2014-06-07malloc() result does not need a cast.deraadt1-1/+1
ok 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 toobeck1-25/+25
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.jsing1-477/+507
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-19We'll interpret a (void) cast on snprintf() to mean it's been verified thatguenther1-4/+4
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-15Part 1 of eliminating BIO_snprintf(). This fixes mechanical conversionsbeck1-4/+4
where the return value is ignored changing to (void) snprintf. ok deraadt@
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
2012-10-13resolve conflictsdjm1-5/+8
2010-10-01resolve conflicts, fix local changesdjm1-35/+754
2009-01-09resolve conflictsdjm1-748/+34
2009-01-05update to openssl-0.9.8i; tested by several, especially krw@djm1-0/+1
2008-09-06resolve conflictsdjm1-18/+68
2006-06-27resolve conflictsdjm1-2/+4
2005-04-29resolve conflictsdjm1-0/+2
2004-04-08merge 0.9.7dmarkus1-1/+1
2003-11-11merge 0.9.7c; minor bugsfixes;markus1-1/+41
API addition: ERR_release_err_state_table [make includes before you build libssl/libcrypto]
2003-05-12merge 0.9.7b with local changes; crank majors for libssl/libcryptomarkus1-0/+2
2003-04-03str{cat,cpy}/sprintf cleanup. markus@, deraadt@ okho1-1/+1
2002-09-10merge openssl-0.9.7-beta3, tested on vax by miod@markus1-0/+1
2002-05-15OpenSSL 0.9.7 stable 2002 05 08 mergebeck1-192/+423
2001-06-22openssl-engine-0.9.6a mergebeck1-7/+13
2000-12-15openssl-engine-0.9.6 mergebeck1-53/+101
2000-04-15OpenSSL 0.9.5a mergebeck1-1/+105
2000-03-19OpenSSL 0.9.5 mergebeck1-10/+10
*warning* this bumps shared lib minors for libssl and libcrypto from 2.1 to 2.2 if you are using the ssl26 packages for ssh and other things to work you will need to get new ones (see ~beck/libsslsnap/<arch>) on cvs or ~beck/src-patent.tar.gz on cvs
1999-09-29OpenSSL 0.9.4 mergebeck1-91/+92
1998-10-05Import of SSLeay-0.9.0b with RSA and IDEA stubbed + OpenBSD buildryker1-0/+642
functionality for shared libs. Note that routines such as sslv2_init and friends that use RSA will not work due to lack of RSA in this library. Needs documentation and help from ports for easy upgrade to full functionality where legally possible.