oweals/openssl.git
23 years agoUpdate so that progs.h can indeed be automatically generated
Bodo Möller [Mon, 10 Sep 2001 17:00:28 +0000 (17:00 +0000)]
Update so that progs.h can indeed be automatically generated

    (Working file: progs.h
     revision 1.24

     date: 2001/02/19 16:06:03;  author: levitte;  state: Exp;  lines: +59 -59
     Make all configuration macros available for application by making
     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.

     [...])

23 years agotypo
Bodo Möller [Mon, 10 Sep 2001 16:57:06 +0000 (16:57 +0000)]
typo

23 years agoGet rid of hazardous EVP_DigestInit_dbg/EVP_DigestInit case
Bodo Möller [Mon, 10 Sep 2001 15:00:30 +0000 (15:00 +0000)]
Get rid of hazardous EVP_DigestInit_dbg/EVP_DigestInit case
distinction (which does not work well because if CRYPTO_MDEBUG is
defined at library compile time, it is not necessarily defined at
application compile time; and memory debugging now can be reconfigured
at run-time anyway).  To get the intended semantics, we could just use
the EVP_DigestInit_dbg unconditionally (which uses the caller's
__FILE__ and __LINE__ for memory leak debugging), but this would make
memory debugging inconsistent.  Instead, callers can use
CRYPTO_push_info() to track down memory leaks.

23 years agoGet rid of hazardous EVP_DigestInit_dbg/EVP_DigestInit case
Bodo Möller [Mon, 10 Sep 2001 14:59:17 +0000 (14:59 +0000)]
Get rid of hazardous EVP_DigestInit_dbg/EVP_DigestInit case
distinction (which does not work well because if CRYPTO_MDEBUG is
defined at library compile time, it is not necessarily defined at
application compile time; and memory debugging now can be reconfigured
at run-time anyway).  To get the intended semantics, we could just use
the EVP_DigestInit_dbg unconditionally (which uses the caller's
__FILE__ and __LINE__ for memory leak debugging), but this would make
memory debugging inconsistent.  Instead, callers can use
CRYPTO_push_info() to track down memory leaks.

Also fix indentation, and add OpenSSL copyright.

23 years agocopyright
Bodo Möller [Mon, 10 Sep 2001 14:51:19 +0000 (14:51 +0000)]
copyright

23 years agoDelete pointless casts
Bodo Möller [Mon, 10 Sep 2001 14:10:10 +0000 (14:10 +0000)]
Delete pointless casts

23 years agoFix apps/openssl.c and ssl/ssltest.c so that they use
Bodo Möller [Mon, 10 Sep 2001 09:50:30 +0000 (09:50 +0000)]
Fix apps/openssl.c and ssl/ssltest.c so that they use
CRYPTO_set_mem_debug_options() instead of CRYPTO_dbg_set_options(),
which is the default implementation of the former and should usually
not be directly used by applications (at least if we assume that the
options accepted by the default implementation will also be meaningful
to any other implementations).

Also fix apps/openssl.c and ssl/ssltest such that environment variable
setting 'OPENSSL_DEBUG_MEMORY=off' actively disables the compiled-in
library defaults (i.e. such that CRYPTO_MDEBUG is ignored in this
case).

23 years agoReplace old (and invalid) copyright notice.
Dr. Stephen Henson [Sat, 8 Sep 2001 12:15:09 +0000 (12:15 +0000)]
Replace old (and invalid) copyright notice.

23 years agoThe various hash #includes in rand_lcl.h *are* needed despite
Bodo Möller [Fri, 7 Sep 2001 23:55:15 +0000 (23:55 +0000)]
The various hash #includes in rand_lcl.h *are* needed despite
<openssl/evp.h> is now used (MD_DIGEST_LENGTH definitions!).
No need to include such headers directly in md_rand.c.

23 years agoRecognize OpenUNIX-8 with compiler
Lutz Jänicke [Fri, 7 Sep 2001 12:13:10 +0000 (12:13 +0000)]
Recognize OpenUNIX-8 with compiler

23 years agoAdd a cleanup function for MDs.
Ben Laurie [Fri, 7 Sep 2001 12:03:24 +0000 (12:03 +0000)]
Add a cleanup function for MDs.

23 years agoLook up MD5 by name.
Ben Laurie [Fri, 7 Sep 2001 11:45:42 +0000 (11:45 +0000)]
Look up MD5 by name.

23 years agoRemove duplication.
Ben Laurie [Fri, 7 Sep 2001 11:44:59 +0000 (11:44 +0000)]
Remove duplication.

23 years agoNow need sha.h for some reason.
Ben Laurie [Fri, 7 Sep 2001 11:44:17 +0000 (11:44 +0000)]
Now need sha.h for some reason.

23 years agoRedo type-safety fix.
Ben Laurie [Fri, 7 Sep 2001 11:43:30 +0000 (11:43 +0000)]
Redo type-safety fix.

23 years agoispell
Ulf Möller [Fri, 7 Sep 2001 06:39:38 +0000 (06:39 +0000)]
ispell

23 years agoispell
Ulf Möller [Fri, 7 Sep 2001 06:13:40 +0000 (06:13 +0000)]
ispell

23 years agomake engine file names unique in 8.3
Ulf Möller [Fri, 7 Sep 2001 04:14:48 +0000 (04:14 +0000)]
make engine file names unique in 8.3

23 years agoCompletely reworked SVR5 shared library support.
Lutz Jänicke [Thu, 6 Sep 2001 19:25:56 +0000 (19:25 +0000)]
Completely reworked SVR5 shared library support.

23 years agounused function
Ulf Möller [Thu, 6 Sep 2001 17:02:33 +0000 (17:02 +0000)]
unused function

23 years agoinclude the proper header file
Ulf Möller [Thu, 6 Sep 2001 16:25:34 +0000 (16:25 +0000)]
include the proper header file

23 years agodouble definition
Ulf Möller [Thu, 6 Sep 2001 16:24:29 +0000 (16:24 +0000)]
double definition

23 years agoEven more corrections for OpenUNIX 8
Lutz Jänicke [Thu, 6 Sep 2001 14:28:35 +0000 (14:28 +0000)]
Even more corrections for OpenUNIX 8

23 years agoAvoid strdup.
Bodo Möller [Thu, 6 Sep 2001 13:09:00 +0000 (13:09 +0000)]
Avoid strdup.

(Some platforms need _XOPEN_SOURCE and _XOPEN_SOURCE_EXTENDED to get
the declaration, but on other platforms _XOPEN_SOURCE disables
the strdup declaration in <string.h>.)

23 years agoSort out mess of colons...
Lutz Jänicke [Thu, 6 Sep 2001 12:48:16 +0000 (12:48 +0000)]
Sort out mess of colons...

23 years agoSupport for shared libraries on Unixware-7 and OpenUNIX-8
Lutz Jänicke [Thu, 6 Sep 2001 12:39:00 +0000 (12:39 +0000)]
Support for shared libraries on Unixware-7 and OpenUNIX-8
(Boyd Lynn Gerber <gerberb@zenez.com>).

23 years agoTotally get rid of CRYPTO_LOCK_ERR_HASH.
Bodo Möller [Thu, 6 Sep 2001 12:37:36 +0000 (12:37 +0000)]
Totally get rid of CRYPTO_LOCK_ERR_HASH.

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.

23 years agoBuild shared libaries for Unixware-7 and OpenUNIX-8 in old (pre 0.9.7)
Lutz Jänicke [Thu, 6 Sep 2001 12:28:05 +0000 (12:28 +0000)]
Build shared libaries for Unixware-7 and OpenUNIX-8 in old (pre 0.9.7)
style (Boyd Lynn Gerber <gerberb@zenez.com>).

23 years agoimprove OAEP check
Bodo Möller [Thu, 6 Sep 2001 10:42:56 +0000 (10:42 +0000)]
improve OAEP check

23 years agofix formatting so that the file can be view with any tab-width
Bodo Möller [Thu, 6 Sep 2001 09:30:16 +0000 (09:30 +0000)]
fix formatting so that the file can be view with any tab-width

23 years agoMention DSO_up => DSO_up_ref renaming
Bodo Möller [Wed, 5 Sep 2001 21:39:39 +0000 (21:39 +0000)]
Mention DSO_up => DSO_up_ref renaming

23 years agoRenaming DH_up to DH_up_ref does not warrant a CHANGES entry of its own
Bodo Möller [Wed, 5 Sep 2001 19:14:53 +0000 (19:14 +0000)]
Renaming DH_up to DH_up_ref does not warrant a CHANGES entry of its own
as the functions were only introduced a couple of days ago.

Some '*)' apparently should be '+)' as the changes do not apply
to the 0.9.6 bugfix branch.

23 years agoENGINEs can now perform structural cleanup.
Geoff Thorpe [Wed, 5 Sep 2001 19:07:01 +0000 (19:07 +0000)]
ENGINEs can now perform structural cleanup.

23 years agoThis adds "destroy" handlers to the existing ENGINEs that load their own
Geoff Thorpe [Wed, 5 Sep 2001 19:00:33 +0000 (19:00 +0000)]
This adds "destroy" handlers to the existing ENGINEs that load their own
error strings - the destroy handler functions unload the error strings so
any pending error state referring to them will not attempt to reference
them after the ENGINE has been destroyed.

23 years agoENGINE's init() and finish() handler functions are used when the ENGINE is
Geoff Thorpe [Wed, 5 Sep 2001 18:32:23 +0000 (18:32 +0000)]
ENGINE's init() and finish() handler functions are used when the ENGINE is
being enabled or disabled (respectively) for operation. Additionally, each
ENGINE has a constructor function where it can do more 'structural' level
intialisations such as loading error strings, creating "ex_data" indices,
etc. This change introduces a handler function that gives an ENGINE a
corresponding opportunity to cleanup when the ENGINE is being destroyed. It
also adds the "get/set" API functions that control this "destroy" handler
function in an ENGINE.

23 years agoAdd some missing CHANGES items.
Geoff Thorpe [Wed, 5 Sep 2001 17:50:24 +0000 (17:50 +0000)]
Add some missing CHANGES items.

23 years agoOops^2: It was the correct line, but an incorrect change.
Bodo Möller [Wed, 5 Sep 2001 17:28:50 +0000 (17:28 +0000)]
Oops^2: It was the correct line, but an incorrect change.

23 years agoOops, wrong line
Bodo Möller [Wed, 5 Sep 2001 17:22:40 +0000 (17:22 +0000)]
Oops, wrong line

23 years ago-mcpu=i486 vs. -m486 ...
Bodo Möller [Wed, 5 Sep 2001 17:18:14 +0000 (17:18 +0000)]
-mcpu=i486 vs. -m486 ...

23 years agoChange DH_up() -> DH_up_ref()
Geoff Thorpe [Wed, 5 Sep 2001 17:02:35 +0000 (17:02 +0000)]
Change DH_up() -> DH_up_ref()

23 years ago"DH_up" had been changed to "DH_up_ref" in libeay.num but the function
Geoff Thorpe [Wed, 5 Sep 2001 16:54:32 +0000 (16:54 +0000)]
"DH_up" had been changed to "DH_up_ref" in libeay.num but the function
declaration and implementation had not. So a recent update recreated the
original definition in libeay.num ... this corrects it and changes the "dh"
code to the "up_ref" variant.

23 years agoSolaris <string.h> does not declare 'strdup' if _XOPEN_SOURCE is
Bodo Möller [Wed, 5 Sep 2001 14:40:05 +0000 (14:40 +0000)]
Solaris <string.h> does not declare 'strdup' if _XOPEN_SOURCE is
defined.

(Preprocessor symbols such as _POSIX_C_SOURCE or _XOPEN_SOURCE are
supposed to disable anything not allowed by the respective
specification; I'm not sure why 'strdup' would be considered
an outlaw though.)

23 years agobug fix: bn_sqr_recursive output is twice its input size.
Ulf Möller [Wed, 5 Sep 2001 04:43:43 +0000 (04:43 +0000)]
bug fix: bn_sqr_recursive output is twice its input size.

23 years agoEric Hanchrow points out that Cygwin perl works.
Ulf Möller [Wed, 5 Sep 2001 02:27:07 +0000 (02:27 +0000)]
Eric Hanchrow points out that Cygwin perl works.

23 years agoUse GCC 2.95/3.0 optimization
Ulf Möller [Wed, 5 Sep 2001 02:18:40 +0000 (02:18 +0000)]
Use GCC 2.95/3.0 optimization

23 years agoUpdate the ENGINE README, and stock it up with extra verbeage for good
Geoff Thorpe [Tue, 4 Sep 2001 23:18:36 +0000 (23:18 +0000)]
Update the ENGINE README, and stock it up with extra verbeage for good
measure (including info and instructions on "dynamic" ENGINEs).

23 years agostrsep implementation to allow the file to compile on non-BSD systems
Ulf Möller [Tue, 4 Sep 2001 22:19:06 +0000 (22:19 +0000)]
strsep implementation to allow the file to compile on non-BSD systems

Submitted by: "Brian Havard" <brianh@kheldar.apana.org.au>

23 years agoMake the 'dynamic' ENGINE bundle up the loading application/library's
Geoff Thorpe [Tue, 4 Sep 2001 21:25:17 +0000 (21:25 +0000)]
Make the 'dynamic' ENGINE bundle up the loading application/library's
locking callbacks to pass to the loaded library (in addition to the
existing mem, ex_data, and err callbacks). Also change the default
implementation of the "bind_engine" function to apply those callbacks, ie.
the IMPLEMENT_DYNAMIC_BIND_FN macro.

23 years agoAdd a "_up" -> "_up_ref" change to libeay.num that was missing from the
Geoff Thorpe [Tue, 4 Sep 2001 20:40:41 +0000 (20:40 +0000)]
Add a "_up" -> "_up_ref" change to libeay.num that was missing from the
recent changes. Also, do the same change to the DSO_up() function.

23 years agotypo
Bodo Möller [Tue, 4 Sep 2001 11:57:17 +0000 (11:57 +0000)]
typo

23 years agoNow that we have ERR_unload_strings(), ERR_load_ERR_strings() must
Bodo Möller [Tue, 4 Sep 2001 11:49:14 +0000 (11:49 +0000)]
Now that we have ERR_unload_strings(), ERR_load_ERR_strings() must
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.

23 years agochanging something requires a write lock, not a read lock
Bodo Möller [Tue, 4 Sep 2001 11:15:55 +0000 (11:15 +0000)]
changing something requires a write lock, not a read lock

23 years agoCHANGES should list all API changes relevant for applications
Bodo Möller [Tue, 4 Sep 2001 11:13:01 +0000 (11:13 +0000)]
CHANGES should list all API changes relevant for applications
(here: X509_STORE_CTX_init())

23 years agoOpenSSL copyright notices ...
Bodo Möller [Tue, 4 Sep 2001 11:02:23 +0000 (11:02 +0000)]
OpenSSL copyright notices ...

23 years agodelete redundant ERR_load_CRYPTO_strings() prototype
Bodo Möller [Tue, 4 Sep 2001 10:45:01 +0000 (10:45 +0000)]
delete redundant ERR_load_CRYPTO_strings() prototype

23 years agoThis changes the existing hardware ENGINE implementations to dynamically
Geoff Thorpe [Mon, 3 Sep 2001 21:33:00 +0000 (21:33 +0000)]
This changes the existing hardware ENGINE implementations to dynamically
declare their own error strings so that they can be more easily compiled as
external shared-libraries if desired. Also, each implementation has been
given canonical "dynamic" support at the base of each file and is only
built if the ENGINE_DYNAMIC_SUPPORT symbol is defined.

Also, use "void" prototypes rather than empty prototypes in engine_int.h.

This does not yet;
  (i) remove error strings when unloading,
 (ii) remove the redundant ENGINE_R_*** codes (though ENGINE_F_*** codes
      have gone), or
(iii) provide any instructions on how to build shared-library ENGINEs or
      use them.

All are on their way.

23 years agoThis change adds a new ENGINE called "dynamic" that allows new ENGINE
Geoff Thorpe [Mon, 3 Sep 2001 19:15:29 +0000 (19:15 +0000)]
This change adds a new ENGINE called "dynamic" that allows new ENGINE
implementations to be loaded from self-contained shared-libraries. It also
provides (in engine.h) definitions and macros to help implement a
self-contained ENGINE. Version control is handled in a way whereby the
loader or loadee can veto the load depending on any objections it has with
each other's declared interface level. The way this is currently
implemented assumes a veto will only take place when one side notices the
other's interface level is too *old*. If the other side is newer, it should
be assumed the newer version knows better whether to veto the load or not.
Version checking (like other "dynamic" settings) can be controlled using
the "dynamic" ENGINE's control commands. Also, the semantics for the
loading allow a shared-library ENGINE implementation to handle differing
interface levels on the fly (eg. loading secondary shared-libraries
depending on the versions required).

Code will be added soon to the existing ENGINEs to illustrate how they can
be built as external libraries rather than building statically into
libcrypto.

NB: Applications wanting to support "dynamic"-loadable ENGINEs will need to
add support for ENGINE "control commands". See apps/engine.c for an example
of this, and use "apps/openssl engine -vvvv" to test or experiment.

23 years agoNote the "ERR_unload_strings" function.
Geoff Thorpe [Mon, 3 Sep 2001 18:27:22 +0000 (18:27 +0000)]
Note the "ERR_unload_strings" function.

23 years agoAdd a new ERR function, "ERR_unload_strings", to complement the existing
Geoff Thorpe [Mon, 3 Sep 2001 18:24:56 +0000 (18:24 +0000)]
Add a new ERR function, "ERR_unload_strings", to complement the existing
"ERR_load_strings" function.

23 years agoCorrect a typo.
Geoff Thorpe [Mon, 3 Sep 2001 17:24:27 +0000 (17:24 +0000)]
Correct a typo.

23 years agoRename recently introduced functions for improved code clarity:
Bodo Möller [Mon, 3 Sep 2001 13:40:07 +0000 (13:40 +0000)]
Rename recently introduced functions for improved code clarity:
      [DR]SA_up  =>  [DR]SA_up_ref

23 years agoUse uniformly chosen witnesses for Miller-Rabin test
Bodo Möller [Mon, 3 Sep 2001 12:58:16 +0000 (12:58 +0000)]
Use uniformly chosen witnesses for Miller-Rabin test
(by using new BN_pseudo_rand_range function)

23 years agorearrange #includes because trying to include <crypto/cryptodev.h>
Bodo Möller [Mon, 3 Sep 2001 12:37:13 +0000 (12:37 +0000)]
rearrange #includes because trying to include <crypto/cryptodev.h>
is a bad idea if OPENSSL_OPENBSD_DEV_CRYPTO is not defined

23 years agoConvert "max" to "mx" for variable names (brought to my attention by Steve
Geoff Thorpe [Sun, 2 Sep 2001 20:41:34 +0000 (20:41 +0000)]
Convert "max" to "mx" for variable names (brought to my attention by Steve
Henson). Also, reverse a previous change that used an implicit function
pointer cast rather than an explicit data pointer cast in the STACK cleanup
code.

23 years agoMake MD functions take EVP_MD_CTX * instead of void *, add copy() function.
Ben Laurie [Sun, 2 Sep 2001 20:05:27 +0000 (20:05 +0000)]
Make MD functions take EVP_MD_CTX * instead of void *, add copy() function.

23 years agoNote the "ex_data" changes.
Geoff Thorpe [Sat, 1 Sep 2001 20:20:16 +0000 (20:20 +0000)]
Note the "ex_data" changes.

23 years agoMake the necessary changes to work with the recent "ex_data" overhaul.
Geoff Thorpe [Sat, 1 Sep 2001 20:02:13 +0000 (20:02 +0000)]
Make the necessary changes to work with the recent "ex_data" overhaul.
See the commit log message for that for more information.

NB: X509_STORE_CTX's use of "ex_data" support was actually misimplemented
(initialisation by "memset" won't/can't/doesn't work). This fixes that but
requires that X509_STORE_CTX_init() be able to handle errors - so its
prototype has been changed to return 'int' rather than 'void'. All uses of
that function throughout the source code have been tracked down and
adjusted.

23 years agoFirst step in fixing "ex_data" support. Warning: big commit log ...
Geoff Thorpe [Sat, 1 Sep 2001 19:56:46 +0000 (19:56 +0000)]
First step in fixing "ex_data" support. Warning: big commit log ...

Currently, this change merely addresses where ex_data indexes are stored
and managed, and thus fixes the thread-safety issues that existed at that
level. "Class" code (eg. RSA, DSA, etc) no longer store their own STACKS
and per-class index counters - all such data is stored inside ex_data.c. So
rather than passing both STACK+counter to index-management ex_data
functions, a 'class_index' is instead passed to indicate the class (eg.
CRYPTO_EX_INDEX_RSA). New classes can be dynamically registered on-the-fly
and this is also thread-safe inside ex_data.c (though whether the caller
manages the return value in a thread-safe way is not addressed).

This does not change the "get/set" functions on individual "ex_data"
structures, and so thread-safety at that level isn't (yet) assured.
Likewise, the method of getting and storing per-class indexes has not
changed, so locking may still be required at the "caller" end but is
nonetheless thread-safe inside "ex_data"'s internal implementation.
Typically this occurs when code implements a new method of some kind and
stores its own per-class index in a global variable without locking the
setting and usage of that variable. If the code in question is likely to be
used in multiple threads, locking the setting and use of that index is
still up to the code in question. Possible fixes to this are being
sketched, but definitely require more major changes to the API itself than
this change undertakes.

The underlying implementation in ex_data.c has also been modularised so
that alternative "ex_data" implementations (that control all access to
state) can be plugged in. Eg. a loaded module can have its implementation
set to that of the application loaded it - the result being that
thread-safety and consistency of "ex_data" classes and indexes can be
maintained in the same place rather than the loaded module using its own
copy of ex_data support code and state.

Due to the centralisation of "state" with this change, cleanup of all
"ex_data" state can now be performed properly. Previously all allocation of
ex_data state was guaranteed to leak - and MemCheck_off() had been used to
avoid it flagging up the memory debugging. A new function has been added to
perfrom all this cleanup, CRYPTO_cleanup_all_ex_data(). The "openssl"
command(s) have been changed to use this cleanup, as have the relevant test
programs. External application code may want to do so too - failure to
cleanup will not induce more memory leaking than was the case before, but
the memory debugging is not tricked into hiding it any more so it may
"appear" where it previously did not.

23 years agoOnly OPENSSL_free() non-NULL pointers.
Geoff Thorpe [Sat, 1 Sep 2001 18:37:17 +0000 (18:37 +0000)]
Only OPENSSL_free() non-NULL pointers.

23 years agoundo, didn't work
Ulf Möller [Sat, 1 Sep 2001 05:59:27 +0000 (05:59 +0000)]
undo, didn't work

23 years ago*** empty log message ***
Ulf Möller [Sat, 1 Sep 2001 05:30:45 +0000 (05:30 +0000)]
*** empty log message ***

23 years agostrsep implementation to allow the file to compile on non-BSD systems
Ulf Möller [Sat, 1 Sep 2001 05:05:32 +0000 (05:05 +0000)]
strsep implementation to allow the file to compile on non-BSD systems

Submitted by: "Brian Havard" <brianh@kheldar.apana.org.au>

23 years agomake update
Ulf Möller [Sat, 1 Sep 2001 04:25:50 +0000 (04:25 +0000)]
make update

23 years agozlib default was broken on most platforms.
Ulf Möller [Sat, 1 Sep 2001 04:18:00 +0000 (04:18 +0000)]
zlib default was broken on most platforms.

-mcpu=i486 is new as of gcc 2.95, and if you have that, you wouldn't
want to optimize for 486 anyway.

23 years ago(A version of) gcc had been giving somewhat odd "trigraph" warnings about
Geoff Thorpe [Tue, 28 Aug 2001 19:32:16 +0000 (19:32 +0000)]
(A version of) gcc had been giving somewhat odd "trigraph" warnings about
this construct, and Ulf provided the following insight as to why;

> ANSI C compliant compilers must substitute "??)" for "]" because your
> terminal might not have a "]" key if you bought it in the early 1970s.

So we escape the final '?' to avoid this pathological case.

23 years agoEnsure that failure to create the BIO in 'CRYPTO_mem_leaks_fp' doesn't
Geoff Thorpe [Tue, 28 Aug 2001 15:54:57 +0000 (15:54 +0000)]
Ensure that failure to create the BIO in 'CRYPTO_mem_leaks_fp' doesn't
leave memory debugging turned off.
[Spotted by Götz Babin-Ebell]

23 years agoFix SSL memory leak.
Ben Laurie [Tue, 28 Aug 2001 13:45:41 +0000 (13:45 +0000)]
Fix SSL memory leak.

23 years agoMake sure "CRYPTO_mem_leaks_fp" doesn't itself create a reportable memory
Geoff Thorpe [Mon, 27 Aug 2001 22:12:56 +0000 (22:12 +0000)]
Make sure "CRYPTO_mem_leaks_fp" doesn't itself create a reportable memory
leak.

23 years ago"make update"
Geoff Thorpe [Sun, 26 Aug 2001 21:06:22 +0000 (21:06 +0000)]
"make update"

23 years agogcc can't spot that 'derlst' is not used uninitialised, so appease it.
Geoff Thorpe [Sun, 26 Aug 2001 21:04:21 +0000 (21:04 +0000)]
gcc can't spot that 'derlst' is not used uninitialised, so appease it.

23 years agoTest digests.
Ben Laurie [Sun, 26 Aug 2001 17:09:31 +0000 (17:09 +0000)]
Test digests.

23 years agoAdd digests.
Ben Laurie [Sun, 26 Aug 2001 17:09:00 +0000 (17:09 +0000)]
Add digests.

23 years agoTidy up some code formatting.
Geoff Thorpe [Sat, 25 Aug 2001 18:01:36 +0000 (18:01 +0000)]
Tidy up some code formatting.

23 years agoNote the "ERR" changes.
Geoff Thorpe [Sat, 25 Aug 2001 17:59:13 +0000 (17:59 +0000)]
Note the "ERR" changes.

23 years agoThis changes the "ERR" code to have all access to state (a hash table of
Geoff Thorpe [Sat, 25 Aug 2001 17:51:59 +0000 (17:51 +0000)]
This changes the "ERR" code to have all access to state (a hash table of
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().

23 years agoMake a note of the "up" functions.
Geoff Thorpe [Sat, 25 Aug 2001 17:37:46 +0000 (17:37 +0000)]
Make a note of the "up" functions.

23 years agoChanges crypto/evp/ and ssl/ code from directly incrementing reference
Geoff Thorpe [Sat, 25 Aug 2001 17:28:23 +0000 (17:28 +0000)]
Changes crypto/evp/ and ssl/ code from directly incrementing reference
counts in DH, DSA, and RSA structures. Instead they use the new "***_up()"
functions that handle this.

23 years agoGive DH, DSA, and RSA functions to "up" their reference counts. Otherwise,
Geoff Thorpe [Sat, 25 Aug 2001 17:24:21 +0000 (17:24 +0000)]
Give DH, DSA, and RSA functions to "up" their reference counts. Otherwise,
dependant code has to directly increment the "references" value of each
such structure using the corresponding lock. Apart from code duplication,
this provided no "REF_CHECK/REF_PRINT" checking and violated
encapsulation.

23 years agoAllow client certificate lists > 16kB ("Douglas E. Engert" <deengert@anl.gov>.)
Lutz Jänicke [Sat, 25 Aug 2001 11:49:24 +0000 (11:49 +0000)]
Allow client certificate lists > 16kB ("Douglas E. Engert" <deengert@anl.gov>.)

23 years agoWording of comment...
Lutz Jänicke [Sat, 25 Aug 2001 11:33:34 +0000 (11:33 +0000)]
Wording of comment...

23 years agoNeeded for build on SunOS 4.1.x with gcc (Jeffrey Hutzelman <jhutz@cmu.edu>).
Lutz Jänicke [Sat, 25 Aug 2001 11:31:19 +0000 (11:31 +0000)]
Needed for build on SunOS 4.1.x with gcc (Jeffrey Hutzelman <jhutz@cmu.edu>).

23 years agoMore docs.
Lutz Jänicke [Fri, 24 Aug 2001 14:29:48 +0000 (14:29 +0000)]
More docs.

23 years ago-passin argument not used when actually loading the key
Lutz Jänicke [Fri, 24 Aug 2001 13:33:15 +0000 (13:33 +0000)]
-passin argument not used when actually loading the key
(found by Massimiliano Pala <madwolf@hackmasters.net>).

23 years agoLoad OCSP responder key before waiting for an incoming
Dr. Stephen Henson [Thu, 23 Aug 2001 23:54:11 +0000 (23:54 +0000)]
Load OCSP responder key before waiting for an incoming
connection so it can prompt for pass phrase on startup
instead of after the first connection.

Add -port switch to usage message.

23 years agoAdd #ifdefs to some devcrypto code
Dr. Stephen Henson [Thu, 23 Aug 2001 23:52:38 +0000 (23:52 +0000)]
Add #ifdefs to some devcrypto code

23 years agoTypo.
Lutz Jänicke [Thu, 23 Aug 2001 17:41:20 +0000 (17:41 +0000)]
Typo.

23 years agoMore manual pages. Constify.
Lutz Jänicke [Thu, 23 Aug 2001 17:22:43 +0000 (17:22 +0000)]
More manual pages. Constify.

23 years agoAs discussed recently on openssl-users.
Lutz Jänicke [Thu, 23 Aug 2001 15:00:11 +0000 (15:00 +0000)]
As discussed recently on openssl-users.

23 years agoMake clear, that using the compression layer is currently not recommended.
Lutz Jänicke [Thu, 23 Aug 2001 09:42:12 +0000 (09:42 +0000)]
Make clear, that using the compression layer is currently not recommended.

23 years agotypo.
Ulf Möller [Wed, 22 Aug 2001 18:35:17 +0000 (18:35 +0000)]
typo.