aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/err/err.c
Commit message (Collapse)AuthorAgeFilesLines
* Move cryptlib.h prior bio.h. Actually it makes sense to include cryptlib.hAndy Polyakov2005-05-171-1/+1
| | | | | first everywhere in crypto and skip stdio.h and string.h [because it includes them].
* Include error library value in C error source files instead of fixing upDr. Stephen Henson2005-04-121-2/+4
| | | | at runtime.
* some const fixes and cleanupNils Larsch2005-04-051-7/+7
|
* Give everything prototypes (well, everything that's actually used).Ben Laurie2005-03-311-1/+1
|
* Oops, wrong version...Dr. Stephen Henson2004-07-271-1/+0
|
* Add FIPS library name to error routines.Dr. Stephen Henson2004-07-271-0/+1
|
* We're passed p, so let's use p instead of making assumptions.Richard Levitte2004-01-241-4/+4
|
* Use BUF_strlcpy() instead of strcpy().Richard Levitte2003-12-271-1/+1
| | | | | | | Use BUF_strlcat() instead of strcat(). Use BIO_snprintf() instead of sprintf(). In some cases, keep better track of buffer lengths. This is part of a large change submitted by Markus Friedl <markus@openbsd.org>
* Add reference counting around the thread state hash table.Richard Levitte2003-09-271-1/+41
| | | | | | Unfortunately, this means that the dynamic ENGINE version just went up, and isn't backward compatible. PR: 678
* Remove unused variableRichard Levitte2003-06-111-2/+0
|
* Add functionality to set marks on the error stack and to pop all errors to ↵Richard Levitte2003-06-111-5/+46
| | | | the next mark.
* Make the no-err option work properlyRichard Levitte2003-02-181-0/+2
|
* New error code ERR_R_DISABLEDBodo Möller2002-08-021-0/+1
| | | | Submitted by: Douglas Stebila <douglas.stebila@sun.com>
* Handle read errors.Ben Laurie2002-06-111-0/+1
|
* For some reason, getting the topmost error was done the same way asRichard Levitte2002-02-141-1/+1
| | | | | | getting the bottommost one. I hope I understood correctly how this should be done. It seems to work when running evp_test in an environment where it can't find openssl.cnf.
* sort functions ...Bodo Möller2002-01-241-6/+9
|
* New functionsBodo Möller2002-01-241-16/+31
| | | | | | | | | | | ERR_peek_last_error ERR_peek_last_error_line ERR_peek_last_error_line_data (supersedes ERR_peek_top_error). Rename OPENSSL_NO_OLD_DES_SUPPORT into OPENSSL_DISABLE_OLD_DES_SUPPORT because OPENSSL_NO_... indicates disabled algorithms (according to mkdef.pl).
* Make no config file not an error. Move /dev/crypto config to ctrl.Ben Laurie2002-01-221-0/+7
|
* In case of memory problems, the va_start() wasn't cleaned with a va_end().Richard Levitte2001-09-241-1/+2
| | | | Noticed by Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>.
* fix memory leak (I think)Bodo Möller2001-09-101-16/+24
|
* Totally get rid of CRYPTO_LOCK_ERR_HASH.Bodo Möller2001-09-061-54/+68
| | | | | | | | | In err.c, flags int_error_hash_set and int_thread_hash_set appear superfluous since we can just as well initialize int_error_hash and int_thread_hash to NULL. Change some of the err.c formatting to conform with the rest of OpenSSL.
* typoBodo Möller2001-09-041-1/+1
|
* Now that we have ERR_unload_strings(), ERR_load_ERR_strings() mustBodo Möller2001-09-041-22/+24
| | | | | | | always load its strings because they might have been unloaded since the 'init' flag was deleted. But build_SYS_str_reasons() can use an 'init' flag.
* changing something requires a write lock, not a read lockBodo Möller2001-09-041-7/+15
|
* Add a new ERR function, "ERR_unload_strings", to complement the existingGeoff Thorpe2001-09-031-0/+26
| | | | "ERR_load_strings" function.
* This changes the "ERR" code to have all access to state (a hash table ofGeoff Thorpe2001-08-251-137/+276
| | | | | | | | | | | | | | | | | error strings and a hash table storing per-thread error state) go via an ERR_FNS function table. The first time an ERR operation occurs, the implementation that will be used (from then on) is set to the internal "defaults" implementation if it has not already been set. The actual LHASH tables are only accessed by this implementation. This is primarily for modules that can be loaded at run-time and bound into an application (or a shared-library version of OpenSSL). If the module has its own statically-linked copy of OpenSSL code - this mechanism allows it to *not* create and use ERR information in its own linked "ERR" code, but instead to use and interact with the state stored in the loader (application or shared library). The loader calls ERR_get_implementation() and the return value is what the module should use when calling its own copy of ERR_set_implementation().
* More error_data memory leaksBodo Möller2001-03-151-6/+5
|
* Use err_clear_data macroBodo Möller2001-03-131-3/+2
|
* fix memory leak in err.cBodo Möller2001-03-121-1/+9
|
* Fix ERR_R_... problems.Bodo Möller2001-03-071-32/+27
|
* Move ec.h to ec2.h because it is not compatible with what we will use.Bodo Möller2001-03-051-0/+1
| | | | | | | Add EC vaporware: change relevant Makefiles and add some empty source files. "make update".
* Use new-style system-id macros everywhere possible. I hope I haven'tRichard Levitte2001-02-201-1/+1
| | | | | | | missed any. This compiles and runs on Linux, and external applications have no problems with it. The definite test will be to build this on VMS.
* Make all configuration macros available for application by makingRichard Levitte2001-02-191-2/+2
| | | | | | | | | | | | sure they are available in opensslconf.h, by giving them names starting with "OPENSSL_" to avoid conflicts with other packages and by making sure e_os2.h will cover all platform-specific cases together with opensslconf.h. I've checked fairly well that nothing breaks with this (apart from external software that will adapt if they have used something like NO_KRB5), but I can't guarantee it completely, so a review of this change would be a good thing.
* Modify OCSP API to more closely reflectDr. Stephen Henson2001-01-051-0/+1
| | | | | | application needs. Add OCSP library name to error code.
* Constification of the data of a hash table. This means the callbackRichard Levitte2000-12-131-8/+8
| | | | | | | functions need to be constified, and therefore meant a number of easy changes a little everywhere. Now, if someone could explain to me why OBJ_dup() cheats...
* Next step in tidying up the LHASH code.Geoff Thorpe2000-12-081-21/+24
| | | | | | | | | | | | | | | | DECLARE/IMPLEMENT macros now exist to create type (and prototype) safe wrapper functions that avoid the use of function pointer casting yet retain type-safety for type-specific callbacks. However, most of the usage within OpenSSL itself doesn't really require the extra function because the hash and compare callbacks are internal functions declared only for use by the hash table. So this change catches all those cases and reimplements the functions using the base-level LHASH prototypes and does per-variable casting inside those functions to convert to the appropriate item type. The exception so far is in ssl_lib.c where the hash and compare callbacks are not static - they're exposed in ssl.h so their prototypes should not be changed. In this last case, the IMPLEMENT_LHASH_*** macros have been left intact.
* Make the remaining LHASH macro changes. This should leave no remainingGeoff Thorpe2000-12-041-4/+10
| | | | | cases of function pointer casting in lh_new() calls - and leave only the lh_doall and lh_doall_arg cases to be finished.
* First step in tidying up the LHASH code. The callback prototypes (andGeoff Thorpe2000-12-011-2/+4
| | | | | | | | | | | | | | | | casts) used in the lhash code are about as horrible and evil as they can be. For starters, the callback prototypes contain empty parameter lists. Yuck. This first change defines clearer prototypes - including "typedef"'d function pointer types to use as "hash" and "compare" callbacks, as well as the callbacks passed to the lh_doall and lh_doall_arg iteration functions. Now at least more explicit (and clear) casting is required in all of the dependant code - and that should be included in this commit. The next step will be to hunt down and obliterate some of the function pointer casting being used when it's not necessary - a particularly evil variant exists in the implementation of lh_doall.
* Merge the engine branch into the main trunk. All conflicts resolved.Richard Levitte2000-10-261-0/+2
| | | | At the same time, add VMS support for Rijndael.
* Use the passed buffer in ERR_error_string!Ben Laurie2000-08-281-1/+1
|
* Fix warnings.Dr. Stephen Henson2000-07-261-1/+1
| | | | | | In crypto/err/err.c need to initialise p to NULL in case thread_hash is NULL. Otherwise p will be uninitialized.
* Avoid a race condition if another thread happens to remove the errorRichard Levitte2000-07-251-5/+8
| | | | state at the same time.
* Bugfix: use write locks, not just read locksBodo Möller2000-07-211-8/+8
|
* There have been a number of complaints from a number of sources that namesRichard Levitte2000-06-011-7/+7
| | | | | | | | | like Malloc, Realloc and especially Free conflict with already existing names on some operating systems or other packages. That is reason enough to change the names of the OpenSSL memory allocation macros to something that has a better chance of being unique, like prepending them with OPENSSL_. This change includes all the name changes needed throughout all C files.
* Add DSA library string. Workaround for IIS .key file invalidDr. Stephen Henson2000-05-241-0/+1
| | | | ASN1 encoding.
* Initialise.Richard Levitte2000-05-021-1/+1
|
* Avoid leaking memory in thread_hash (and enable memory leak detectionBodo Möller2000-04-291-20/+32
| | | | for it).
* New function ERR_error_string_n.Bodo Möller2000-04-141-17/+45
|
* This commit ties the new DSO code (crypto/dso/) into the build for aGeoff Thorpe2000-04-041-0/+2
| | | | | | | | | | | | | | | | | | | | | variety of platforms. A few are missing, and they will be added in eventually, but as this is new stuff, it was better to not break lots of platforms in one go that we can't easily test. The changes to "Configure" should illustrate how to add support to other systems if you feel like having a go. NB: I'll add something shortly to allow you to add "dlfcn.h" support on those platforms that don't have (or need) a dlfcn.h header file. (The symbol for Configure will probably by "dlfcn_no_h"). Thanks to Richard Levitte, who is responsible for the dso_dl.c support, understanding the trickier aspects of the build process, and giving great feedback on everything else. [Don't use this stuff if you're easily offended by changes to the interface or behaviour - it's still work in progress.] PR:
* Generate correct error reasons strings for SYSerr.Bodo Möller2000-03-041-1/+105
|