Geoff Thorpe [Fri, 18 Oct 2002 20:45:38 +0000 (20:45 +0000)]
If dynamically-loadable ENGINEs are linked against a shared-library version
of libcrypto, then it is possible that when they are loaded they will share
the same static data as the loading application/library. This means it will
be too late to set memory/ERR/ex_data/[etc] callbacks, but entirely
unnecessary to try. This change puts a static variable in the core ENGINE
code (contained in libcrypto) and a function returning a pointer to it. If
the loaded ENGINE's return value from this function matches the loading
application/library's return value - they share static data. If they don't
match, the loaded ENGINE has its own copy of libcrypto's static data and so
the callbacks need to be set.
Also, although 0.9.7 hasn't been released yet, it's clear this will
introduce a binary incompatibility between dynamic ENGINEs built for 0.9.7
and 0.9.8 (though others probably exist already from EC_*** hooks and
what-not) - so the version control values are correspondingly bumped.
Geoff Thorpe [Fri, 18 Oct 2002 19:23:27 +0000 (19:23 +0000)]
Another ENGINE implementation dependant on string.h.
Geoff Thorpe [Fri, 18 Oct 2002 19:05:32 +0000 (19:05 +0000)]
We need to propogate SHARED_LIBS to sub-directories for "install" targets
now.
Geoff Thorpe [Fri, 18 Oct 2002 19:02:18 +0000 (19:02 +0000)]
The loop variable is 'l', not 'i'.
Lutz Jänicke [Fri, 18 Oct 2002 09:47:14 +0000 (09:47 +0000)]
Corrected exchanged parameters in example for EVP_EncryptInit_ex()
Submitted by: "Marcus Carey" <marcus.carey@verizon.net>
Reviewed by:
PR: 265
Bodo Möller [Thu, 17 Oct 2002 09:16:02 +0000 (09:16 +0000)]
change Emacs indentation style to make it easier to insert
tabs manually
Submitted by: Pierre Bacquet <pbacquet@delta.fr>
Richard Levitte [Wed, 16 Oct 2002 22:44:52 +0000 (22:44 +0000)]
Eh, -Wl,--whole-archive disappeared from the GNU targets. I've no
idea why, but that was definitely wrong...
Geoff Thorpe [Wed, 16 Oct 2002 21:50:28 +0000 (21:50 +0000)]
The ENGINE implementations in ./engines/ should be role models on how to
write external engines (and thus should require only installed openssl
headers and libs to compile without warnings). So this gets rid of recently
introduced compilation warnings (no longer including internal headers) by
including string.h directly.
Geoff Thorpe [Wed, 16 Oct 2002 01:29:37 +0000 (01:29 +0000)]
- Remo Inverardi noticed that ENGINEs don't have an "up_ref" function in the
normal 'structural' case (ENGINE_init() satisfies this in the less normal
'functional' case). This change provides such a function.
- Correct some "read" locks that should actually be "write" locks.
- make update.
Richard Levitte [Tue, 15 Oct 2002 20:30:56 +0000 (20:30 +0000)]
Typos.
PR: 189
Richard Levitte [Tue, 15 Oct 2002 20:29:09 +0000 (20:29 +0000)]
Typos.
PR: 189
Richard Levitte [Tue, 15 Oct 2002 12:09:22 +0000 (12:09 +0000)]
A much better idea, of course, is not to do a submake at all...
Richard Levitte [Tue, 15 Oct 2002 11:58:44 +0000 (11:58 +0000)]
Makefile.shared needs to know how it can reach itself.
Richard Levitte [Mon, 14 Oct 2002 11:33:32 +0000 (11:33 +0000)]
When BN_add_word() reaches top, it shouldn't try to add the the corresponding
word, since that word may not be zero.
Richard Levitte [Mon, 14 Oct 2002 10:02:36 +0000 (10:02 +0000)]
makedepend complains when a header file is included more than once in
the same source file.
Richard Levitte [Mon, 14 Oct 2002 09:44:57 +0000 (09:44 +0000)]
Complete the VxWorks fix by implementing a NULL RAND_poll() for it.
PR: 253
Richard Levitte [Mon, 14 Oct 2002 09:35:11 +0000 (09:35 +0000)]
libs is a timestamp that we don't really need to know about.
Richard Levitte [Mon, 14 Oct 2002 09:25:48 +0000 (09:25 +0000)]
Add needed libraries as per configuration to the list of libraries we
depend upon.
Richard Levitte [Mon, 14 Oct 2002 09:24:50 +0000 (09:24 +0000)]
Add missing quotes.
Make sure test doesn't barf because of missing spaces before the
closing ].
Add -lc to the list of libraries we depend upon. Not always
necessary, but never hurts.
Richard Levitte [Sun, 13 Oct 2002 22:57:51 +0000 (22:57 +0000)]
Targeting the solaris platform for specific tests. Something is going
wrong, and my test engine doesn't show it. The verbosity will be
temporary for about a day.
Richard Levitte [Sat, 12 Oct 2002 16:07:31 +0000 (16:07 +0000)]
Clarify where the engines are by default.
Richard Levitte [Sat, 12 Oct 2002 09:16:10 +0000 (09:16 +0000)]
Chase down the missing backslashes.
Richard Levitte [Fri, 11 Oct 2002 22:42:34 +0000 (22:42 +0000)]
Add more commentary. Check that *num is smaller than the block size.
Richard Levitte [Fri, 11 Oct 2002 22:37:29 +0000 (22:37 +0000)]
The AES CTR API was buggy, we need to save the encrypted counter as well
between calls, or that will be lost if it returned with *num non-zero.
Richard Levitte [Fri, 11 Oct 2002 22:06:44 +0000 (22:06 +0000)]
Step 14 of move of engines: Final step, document the change.
Richard Levitte [Fri, 11 Oct 2002 20:45:56 +0000 (20:45 +0000)]
make update.
Richard Levitte [Fri, 11 Oct 2002 20:31:27 +0000 (20:31 +0000)]
And if the path has a space, we definitely need to protect $openssl.
Richard Levitte [Fri, 11 Oct 2002 20:28:23 +0000 (20:28 +0000)]
Oh, there were *two* places where we needed to protect the file
name...
Richard Levitte [Fri, 11 Oct 2002 19:56:57 +0000 (19:56 +0000)]
For the platforms where version info is inserted separately into the
shared library, set those flags conditionally.
Richard Levitte [Fri, 11 Oct 2002 18:52:42 +0000 (18:52 +0000)]
Step 13 of move of engines: Remove old files.
Richard Levitte [Fri, 11 Oct 2002 18:51:29 +0000 (18:51 +0000)]
Step 12 of move of engines: Time to make the changes to support
automatic load of dynamic engines. Make the changes in the main
Makefile so the engines are built, but now in the engines/ directory.
Note: The changes in step 12 have all been made by Geoff Thorpe.
Credit where credit is due.
Richard Levitte [Fri, 11 Oct 2002 18:49:55 +0000 (18:49 +0000)]
Step 11c of move of engines: Time to make the changes to support
automatic load of dynamic engines. Change the iterator to try to load
the requested engine dynamically. The environment variable
OPENSSL_ENGINES can be used to override the internal default directory
where one can expect to find dynamically loadable engines.
Note: The changes in step 11 have all been made by Geoff Thorpe.
Credit where credit is due.
Richard Levitte [Fri, 11 Oct 2002 18:47:51 +0000 (18:47 +0000)]
Step 11b of move of engines: Time to make the changes to support
automatic load of dynamic engines. Add functionality to the dynamic
engine to handle engine directories and loading from those. This
is currently NOT compatible with the use of LD_LIBRARY_PATH and
similar environment variables.
Note: The changes in step 11 have all been made by Geoff Thorpe.
Credit where credit is due.
Richard Levitte [Fri, 11 Oct 2002 18:42:54 +0000 (18:42 +0000)]
Step 11a of move of engines: Time to make the changes to support
automatic load of dynamic engines. Unless we don't have shared
library support, do not try to load any "built-in" engines except for
cryptodev.
Richard Levitte [Fri, 11 Oct 2002 18:40:47 +0000 (18:40 +0000)]
Step 10 of move of engines: Change crypto/engine/Makefile.ssl so we
don't build any "built-in" engines in that directory any more, except
fo the cryptodev one.
Richard Levitte [Fri, 11 Oct 2002 18:38:26 +0000 (18:38 +0000)]
Step 9 of move of engines: rename crypto/engine/hw_cryptodev.c to
eng_cryptodev.c. This is an engine that (at least currently) has
to be built in.
Richard Levitte [Fri, 11 Oct 2002 18:32:32 +0000 (18:32 +0000)]
Typo
Richard Levitte [Fri, 11 Oct 2002 18:21:40 +0000 (18:21 +0000)]
Step 8 of move of engines: Remove the last little quirks.
DECIMAL_SIZE is copied from crypto/cryptlib.h.
Richard Levitte [Fri, 11 Oct 2002 18:20:06 +0000 (18:20 +0000)]
We didn't copy the cryptodev engine here, darn it!
Richard Levitte [Fri, 11 Oct 2002 18:17:16 +0000 (18:17 +0000)]
Step 7 of move of engines: Engines should not depend on private
OpenSSL header files.
Richard Levitte [Fri, 11 Oct 2002 18:10:14 +0000 (18:10 +0000)]
Typo.
Richard Levitte [Fri, 11 Oct 2002 18:06:08 +0000 (18:06 +0000)]
Step 6 of move of engines: rename the macro ENGINE_DYNAMIC_SUPPORT to
OPENSSL_NO_DYNAMIC_ENGINE and make sure that gets defined unless
shared library support has been specifically requested.
Bodo Möller [Fri, 11 Oct 2002 17:56:34 +0000 (17:56 +0000)]
synchronize with 0.9.7-stable version of this file
Richard Levitte [Fri, 11 Oct 2002 17:43:53 +0000 (17:43 +0000)]
That wasn't supposed to be there...
Richard Levitte [Fri, 11 Oct 2002 17:42:30 +0000 (17:42 +0000)]
Step 5 of move of engines: Add a makefile (and a .cvsignore).
Richard Levitte [Fri, 11 Oct 2002 17:41:40 +0000 (17:41 +0000)]
Step 4 of move of engines: Split e.ec into individual files for each
engine.
Richard Levitte [Fri, 11 Oct 2002 17:10:59 +0000 (17:10 +0000)]
Step 3 of move of engines: copy the corresponding vendor header files.
Richard Levitte [Fri, 11 Oct 2002 17:08:27 +0000 (17:08 +0000)]
Step 2 of move of engines: copy engines to new directory and rename them
to be prefixed with e_ instead of hw_. They aren't necessarely hardware
engines. The files commited here are exact copies of the corresponding
hw_ files found in crypto/engine/.
Richard Levitte [Fri, 11 Oct 2002 14:39:03 +0000 (14:39 +0000)]
Add a configuration target for A/UX.
PR: 271
Richard Levitte [Fri, 11 Oct 2002 12:22:47 +0000 (12:22 +0000)]
make update
Richard Levitte [Fri, 11 Oct 2002 11:34:20 +0000 (11:34 +0000)]
There may be more than one single quote to fix.
PR: 256
Richard Levitte [Fri, 11 Oct 2002 11:14:41 +0000 (11:14 +0000)]
Make sure it's properly detected when there's no version information
at all, and in all other cases, make sure foo.so is linked to
foo.so.{soversion}.
Richard Levitte [Fri, 11 Oct 2002 11:07:28 +0000 (11:07 +0000)]
Make sure $fname will not give us any surprises with any funny characters.
PR: 256
Richard Levitte [Fri, 11 Oct 2002 09:38:56 +0000 (09:38 +0000)]
BN_bn2hex() returns "0" instead of "00" for zero. This disrputs the
requirement that the serial number always be an even amount of characters.
PR: 248
Richard Levitte [Fri, 11 Oct 2002 08:45:42 +0000 (08:45 +0000)]
Fix inconsistencies in the Darwin targets.
Add a variant of SHLIB_SOVER without the preceding period.
Richard Levitte [Fri, 11 Oct 2002 07:33:38 +0000 (07:33 +0000)]
Add a suffix for Darwin's sake, since it seems like .dylib comes after
the version in the file name.
Richard Levitte [Fri, 11 Oct 2002 00:37:11 +0000 (00:37 +0000)]
Move the shared library construction stuff to Makefile.shared, a
helper makefile that generalises our way of building shared libraries
and is designed to take care of almost anything (I hope).
Richard Levitte [Thu, 10 Oct 2002 13:35:49 +0000 (13:35 +0000)]
Rhapsody had ftime, Darwin doesn't (any longer?)
Richard Levitte [Thu, 10 Oct 2002 12:46:05 +0000 (12:46 +0000)]
Add a few more target platforms, to see how well the shared library
linking works on them.
Richard Levitte [Thu, 10 Oct 2002 09:05:05 +0000 (09:05 +0000)]
VMS below version 7 doesn't have strcasecmp, so let's roll our own on VMS.
PR: 184
Richard Levitte [Thu, 10 Oct 2002 08:32:39 +0000 (08:32 +0000)]
Typo
Richard Levitte [Thu, 10 Oct 2002 07:59:03 +0000 (07:59 +0000)]
RFC 2712 redefines the codes for use of Kerberos 5 in SSL/TLS.
PR: 189
Dr. Stephen Henson [Wed, 9 Oct 2002 17:19:59 +0000 (17:19 +0000)]
More docs.
Dr. Stephen Henson [Wed, 9 Oct 2002 17:15:35 +0000 (17:15 +0000)]
Typo.
Dr. Stephen Henson [Wed, 9 Oct 2002 17:05:05 +0000 (17:05 +0000)]
Update docs.
Richard Levitte [Wed, 9 Oct 2002 15:36:23 +0000 (15:36 +0000)]
Make sure that the 'config' variable is correctly defined and declared
for monolithic as well as non-monolithic biuld.
More work is probably needed in this area.
PR: 144
Richard Levitte [Wed, 9 Oct 2002 15:12:36 +0000 (15:12 +0000)]
Remove redundancy and use the main makefile better
Richard Levitte [Wed, 9 Oct 2002 15:03:21 +0000 (15:03 +0000)]
Keep the sub_all symbol so all the algorithm Makefiles won't break.
Richard Levitte [Wed, 9 Oct 2002 14:52:01 +0000 (14:52 +0000)]
Change the main Makefile to have "mini-build" targets.
PR: 253, last part.
Richard Levitte [Wed, 9 Oct 2002 13:57:55 +0000 (13:57 +0000)]
Don't fuss with the demo binaries
Richard Levitte [Wed, 9 Oct 2002 13:40:48 +0000 (13:40 +0000)]
Add a few more VxWorks targets.
Correct misspelled VXWORKS macros.
Add VXWORKS identifying macros to e_os2.h.
Add required inclusions and mappings for VxWorks in e_os.h.
A few small modifications to make OpenSSL build and work on VxWorks.
PR: 253, except for the change that was handled in an earlier
commit, and a request for easy build of just parts of OpenSSL.
Richard Levitte [Wed, 9 Oct 2002 13:25:12 +0000 (13:25 +0000)]
Use double dashes so makedepend doesn't misunderstand the flags we
give it.
For 0.9.7 and up, that means util/domd needs to remove those double
dashes from the argument list when gcc is used to find the
dependencies.
Dr. Stephen Henson [Wed, 9 Oct 2002 13:10:23 +0000 (13:10 +0000)]
PKCS12_parse manual page.
Dr. Stephen Henson [Wed, 9 Oct 2002 12:06:58 +0000 (12:06 +0000)]
PKCS12_create manual page
Dr. Stephen Henson [Wed, 9 Oct 2002 12:06:12 +0000 (12:06 +0000)]
More man pages.
Richard Levitte [Wed, 9 Oct 2002 06:35:47 +0000 (06:35 +0000)]
Add missing LF
Dr. Stephen Henson [Tue, 8 Oct 2002 00:40:58 +0000 (00:40 +0000)]
PKCS7_verify() docs.
Dr. Stephen Henson [Mon, 7 Oct 2002 17:31:00 +0000 (17:31 +0000)]
More docs.
Dr. Stephen Henson [Mon, 7 Oct 2002 13:07:00 +0000 (13:07 +0000)]
More d2i/i2d manual pages.
Dr. Stephen Henson [Sun, 6 Oct 2002 12:59:25 +0000 (12:59 +0000)]
Document "0" and "1" naming convention.
Dr. Stephen Henson [Sun, 6 Oct 2002 12:40:31 +0000 (12:40 +0000)]
Update docs.
Dr. Stephen Henson [Sun, 6 Oct 2002 12:34:06 +0000 (12:34 +0000)]
Update docs.
Dr. Stephen Henson [Sun, 6 Oct 2002 12:24:09 +0000 (12:24 +0000)]
Update DH parameter docs.
Dr. Stephen Henson [Sun, 6 Oct 2002 12:14:55 +0000 (12:14 +0000)]
Various Win32 fixes.
Resolve signed/unsigned conflicts
Make dso_win32.c compile.
Dr. Stephen Henson [Sun, 6 Oct 2002 12:10:35 +0000 (12:10 +0000)]
Oops, remove old comment out debugging printf...
Richard Levitte [Sun, 6 Oct 2002 00:41:12 +0000 (00:41 +0000)]
Since crypt() isn't defined anywhere, define it locally in destest.c
Richard Levitte [Sun, 6 Oct 2002 00:33:23 +0000 (00:33 +0000)]
Please do not use C++ comments in C code.
Richard Levitte [Sun, 6 Oct 2002 00:23:28 +0000 (00:23 +0000)]
Do not define crypt(). The supported function is DES_crypt() (an des_crypt()
when backward compatibility is desired).
Dr. Stephen Henson [Sun, 6 Oct 2002 00:03:20 +0000 (00:03 +0000)]
Update RSAPublicKey manual page...
Dr. Stephen Henson [Sat, 5 Oct 2002 23:30:10 +0000 (23:30 +0000)]
Some docs relating to X509 ASN1 functions.
Many other ASN1 functions are identical other
than the actual structure being handled.
Richard Levitte [Sat, 5 Oct 2002 20:54:09 +0000 (20:54 +0000)]
For some reason, the random number support removed the destructor
Dr. Stephen Henson [Sat, 5 Oct 2002 01:38:58 +0000 (01:38 +0000)]
Typo.
Dr. Stephen Henson [Fri, 4 Oct 2002 21:22:47 +0000 (21:22 +0000)]
Add version info to Win32 DLLs.
We might want to edit the strings a bit...
Maybe add to 0.9.7 too?
Dr. Stephen Henson [Fri, 4 Oct 2002 21:16:58 +0000 (21:16 +0000)]
make update
Dr. Stephen Henson [Fri, 4 Oct 2002 21:08:01 +0000 (21:08 +0000)]
Add declaration got PKCS#7 NDEF.
Dr. Stephen Henson [Fri, 4 Oct 2002 20:24:50 +0000 (20:24 +0000)]
Update mkdef.pl to handle new ASN1 macro
Richard Levitte [Fri, 4 Oct 2002 13:43:43 +0000 (13:43 +0000)]
Installed libraries should not be overwritten, especially shared ones.
Use mv to make sure the old copy is unlinked instead of overwritten.
PR: 273, and probably others...
Richard Levitte [Fri, 4 Oct 2002 13:30:57 +0000 (13:30 +0000)]
Add random number generation capability to the cswift engine.
Should this be added to 0.9.6-stable as well?
PR: 275
Richard Levitte [Fri, 4 Oct 2002 13:04:37 +0000 (13:04 +0000)]
If we're loading libz dynamically, and COMP_zlib() is called more than once,
only the first call would provide the correct result.
PR: 277
Richard Levitte [Fri, 4 Oct 2002 12:59:00 +0000 (12:59 +0000)]
Document should match reality :-).
PR: 255