oweals/openssl.git
24 years agoCheck for missing engine name, and also, do not count up the number of given algorith...
Richard Levitte [Fri, 30 Jun 2000 15:58:37 +0000 (15:58 +0000)]
Check for missing engine name, and also, do not count up the number of given algorithms when an engine is given

24 years agop_CSwift_AttachKeyParam actually returns more than one kind of error. Detect the...
Richard Levitte [Fri, 30 Jun 2000 15:54:48 +0000 (15:54 +0000)]
p_CSwift_AttachKeyParam actually returns more than one kind of error.  Detect the input size error, treat any that are not specially checked as 'request failed', not as 'provide parameters', and for those, add the actual status code to the error message

24 years agoCryptoswitch actually has a few more statuses than SW_OK. Let's provide the possibil...
Richard Levitte [Fri, 30 Jun 2000 15:52:07 +0000 (15:52 +0000)]
Cryptoswitch actually has a few more statuses than SW_OK.  Let's provide the possibility for a better granularity in error checking

24 years agoMake it possible to turn off compilation of hardware support through
Richard Levitte [Fri, 30 Jun 2000 11:02:02 +0000 (11:02 +0000)]
Make it possible to turn off compilation of hardware support through
the configuration parameter 'no-hw'.

24 years ago`make update'
Richard Levitte [Thu, 29 Jun 2000 21:26:46 +0000 (21:26 +0000)]
`make update'

24 years agoIt makes much more sense and is much more consistent with the rest of
Richard Levitte [Thu, 29 Jun 2000 21:20:14 +0000 (21:20 +0000)]
It makes much more sense and is much more consistent with the rest of
OpenSSL to have to opt out hardware support instead of having to opt
it in.  And since the hardware support modules are self-contained and
actually check that the vendor stuff is loadable, it still works as
expected, or at least, so I think...

24 years agoGive the programmer of extra engines the possibility to actually make
Richard Levitte [Thu, 29 Jun 2000 16:33:59 +0000 (16:33 +0000)]
Give the programmer of extra engines the possibility to actually make
it functional :-).

24 years agoMake the use of logstream thread-safe.
Richard Levitte [Thu, 29 Jun 2000 16:32:34 +0000 (16:32 +0000)]
Make the use of logstream thread-safe.

24 years agoUse the new control to add a log stream.
Richard Levitte [Thu, 29 Jun 2000 16:17:28 +0000 (16:17 +0000)]
Use the new control to add a log stream.

24 years agoWhen closing the hwcrhk engine, also remove the reference to the
Richard Levitte [Thu, 29 Jun 2000 16:16:50 +0000 (16:16 +0000)]
When closing the hwcrhk engine, also remove the reference to the
logstream.

24 years agoAdd the possibility to control some engine internals.
Richard Levitte [Thu, 29 Jun 2000 14:26:07 +0000 (14:26 +0000)]
Add the possibility to control some engine internals.

24 years agoRename 'hwcrhk' to 'ncipher' in all public symbols. Redo the logging function so...
Richard Levitte [Thu, 29 Jun 2000 13:00:07 +0000 (13:00 +0000)]
Rename 'hwcrhk' to 'ncipher' in all public symbols.  Redo the logging function so it takes a BIO.  Make module-local functions static

24 years agoThe error ENGINE_R_HWCRYPTOHOOK_REPORTS should never have been used
Richard Levitte [Thu, 29 Jun 2000 12:58:52 +0000 (12:58 +0000)]
The error ENGINE_R_HWCRYPTOHOOK_REPORTS should never have been used

24 years agoRename 'hwcrhk' to 'ncipher' in all public symbols
Richard Levitte [Mon, 26 Jun 2000 23:15:16 +0000 (23:15 +0000)]
Rename 'hwcrhk' to 'ncipher' in all public symbols

24 years agoStrange how one line can make a world of difference, particularly when
Geoff Thorpe [Mon, 26 Jun 2000 15:58:33 +0000 (15:58 +0000)]
Strange how one line can make a world of difference, particularly when
the one line turns an error return value into a success return value.
:-) "openssl speed -engine hwcrhk rsa1024" now passes through ok.

24 years agoGet rid of those annoying "?"s from cvs update :-)
Geoff Thorpe [Mon, 26 Jun 2000 13:36:04 +0000 (13:36 +0000)]
Get rid of those annoying "?"s from cvs update :-)

24 years agoThings merged from the main trunk, among others some well needed Win32
Richard Levitte [Fri, 23 Jun 2000 22:24:53 +0000 (22:24 +0000)]
Things merged from the main trunk, among others some well needed Win32
fixes.

24 years ago'make update' in the engine branch.
Geoff Thorpe [Tue, 20 Jun 2000 14:12:35 +0000 (14:12 +0000)]
'make update' in the engine branch.

24 years agoNow that the branch has been updated with the DSO changes in the head,
Geoff Thorpe [Tue, 20 Jun 2000 13:59:48 +0000 (13:59 +0000)]
Now that the branch has been updated with the DSO changes in the head,
correct the DSO-dependant code in the engine code.

24 years agoMerge of stuff from main trunk, all conflicts resolved, and addition
Richard Levitte [Mon, 19 Jun 2000 17:35:39 +0000 (17:35 +0000)]
Merge ... stuff from main trunk, all conflicts resolved, and addition
of dynamic lock support in the nCipher code.

24 years agoMerge of stuff from main trunk, all conflicts resolved, and addition
Richard Levitte [Mon, 19 Jun 2000 17:28:22 +0000 (17:28 +0000)]
Merge ... stuff from main trunk, all conflicts resolved, and addition
of dynamic lock support in the nCipher code.

24 years agoMerge of stuff from main trunk, all conflicts resolved.
Richard Levitte [Mon, 19 Jun 2000 14:44:57 +0000 (14:44 +0000)]
Merge ... stuff from main trunk, all conflicts resolved.

24 years agoThe README for the engine code was quite out of date. Hopefully it is
Geoff Thorpe [Thu, 15 Jun 2000 17:50:08 +0000 (17:50 +0000)]
The README for the engine code was quite out of date. Hopefully it is
now less so.

24 years ago(1) In the atalla initialisation, use the test from Ben's earlier
Geoff Thorpe [Thu, 15 Jun 2000 17:32:42 +0000 (17:32 +0000)]
(1) In the atalla initialisation, use the test from Ben's earlier
    Atalla code to see if the accelerator is running.
(2) Turn some spaces into tabs.

24 years agoAh, ok so my problem had been typographical rather than philosophical.
Geoff Thorpe [Thu, 15 Jun 2000 17:14:45 +0000 (17:14 +0000)]
Ah, ok so my problem had been typographical rather than philosophical.
It's cute to observe that Atalla having no RSA-specific form of mod_exp
causes a DSA server to achieve about 6 times as many signatures per
second than an RSA server. :-)

24 years agoLittle typo.
Geoff Thorpe [Wed, 14 Jun 2000 17:54:28 +0000 (17:54 +0000)]
Little typo.

24 years agoThis adds Atalla support code to the ENGINE framework. If you have an
Geoff Thorpe [Wed, 14 Jun 2000 17:04:10 +0000 (17:04 +0000)]
This adds Atalla support code to the ENGINE framework. If you have an
Atalla card, you should be able to compile with the "hw-atalla" switch
with "./config" or "perl Configure", and then you can use the command-
line switch "-engine atalla" inside speed, s_cient and s_server (after
checking out note (1)).

Notes:
  (1) I've turned on native name translation when loading the shared-
      library, but this means that the Unix shared library needs to be
      libatasi.so rather than atasi.so. I got around this in my testing
      by creating a symbollic link from /usr/lib/libatasi.so to the real
      library, but something better will be needed. It also assumes in
      win32 that the DLL will be called atasi.dll - but as I don't have
      a win32/atalla environment to try I have no idea yet if this is
      the case.
  (2) Currently DSA verifies are not accelerated because I haven't yet
      got a mod_exp-based variant of BN_mod_exp2_mont() that yields
      correct results.
  (3) Currently the "init()" doesn't fail if the shared library can
      load successfully but the card is not operational. In this case,
      the ENGINE_init() call will succeed, but all RSA, DSA, DH, and
      the two BN_*** operations will fail until the ENGINE is switched
      back to something that does work. I expect to correct this next.
  (4) Although the API for the Atalla card just has the one crypto
      function suggesting an RSA private key operation - this is in
      fact just a straight mod_exp function that ignores all the RSA
      key parameters except the (private) exponent and modulus. This is
      why the only accelerator work is taking place inside the mod_exp
      function and there's no optimisation of RSA private key operations
      based on CRT etc.

24 years agoGeoff inspired me to nullify some pointers if initialisation went
Richard Levitte [Wed, 14 Jun 2000 16:57:57 +0000 (16:57 +0000)]
Geoff inspired me to nullify some pointers if initialisation went
wrong.  Additionally, just give a new value to hndidx once.

24 years agoDSO_bind() is effectively a method-specific wrapper for dlopen() or
Geoff Thorpe [Wed, 14 Jun 2000 14:28:16 +0000 (14:28 +0000)]
DSO_bind() is effectively a method-specific wrapper for dlopen() or
whatever the underlying API is. It must return (void *) because shared
libraries can expose functions, structures, or whatever. However, some
compilers give loads of warnings about casted function pointers through
this code, so I am explicitly casting them to the right prototypes.

24 years agoI'm working on Atalla ENGINE code, and the existing bn_exp.c hooks
Geoff Thorpe [Wed, 14 Jun 2000 13:27:47 +0000 (13:27 +0000)]
I'm working on Atalla ENGINE code, and the existing bn_exp.c hooks
(initiated by ./config and the presence of SDK headers) are conflicting.

24 years agoIf initialisation fails for any reason, the global function pointers
Geoff Thorpe [Wed, 14 Jun 2000 13:24:37 +0000 (13:24 +0000)]
If initialisation fails for any reason, the global function pointers
should be NULL'd out.

24 years agoThis hooks the "hwcrhk" engine Richard just submitted into the default
Geoff Thorpe [Tue, 13 Jun 2000 18:11:38 +0000 (18:11 +0000)]
This hooks the "hwcrhk" engine Richard just submitted into the default
engine list if HW_NCIPHER is defined. I want to play :-)

24 years ago- merged in the latest from the main trunk, fixed all conflicts
Richard Levitte [Tue, 13 Jun 2000 16:21:06 +0000 (16:21 +0000)]
- merged in the latest from the main trunk, fixed all conflicts
- implemented nCipher support via the nfhwcrhk library (not well tested).
- make update + make depend

24 years ago* Migrate the engine code's Malloc + Free calls to the newer
Geoff Thorpe [Fri, 9 Jun 2000 11:42:02 +0000 (11:42 +0000)]
* Migrate the engine code's Malloc + Free calls to the newer
  OPENSSL_malloc and OPENSSL_free.

* 3 "normal" files (crypto/rsa/rsa_lib.c, crypto/dsa/dsa_lib.c
  and crypto/dh/dh_lib.c) had their Malloc's and Free's missed
  when Richard merged the changes across to this branch -
  probably because those files have been changed in this branch
  and gave some grief to the merge - so I've changed them
  manually here.

24 years agoMerge in code from main trunk to BRANCH_engine.
Richard Levitte [Thu, 8 Jun 2000 11:00:37 +0000 (11:00 +0000)]
Merge in code from main trunk to BRANCH_engine.

24 years agoThis commit was manufactured by cvs2svn to create branch 'BRANCH_engine'.
cvs2svn [Thu, 1 Jun 2000 22:19:22 +0000 (22:19 +0000)]
This commit was manufactured by cvs2svn to create branch 'BRANCH_engine'.

24 years agoThere have been a number of complaints from a number of sources that names
Richard Levitte [Thu, 1 Jun 2000 22:19:21 +0000 (22:19 +0000)]
There have been a number of complaints from a number of sources that names
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.

24 years agoUse NO_FP_API.
Ulf Möller [Thu, 1 Jun 2000 20:25:44 +0000 (20:25 +0000)]
Use NO_FP_API.

24 years agoDon't include <stdlib.h>. In the NO_FP_API case, don't include <stdio.h>.
Ulf Möller [Thu, 1 Jun 2000 19:34:25 +0000 (19:34 +0000)]
Don't include <stdlib.h>. In the NO_FP_API case, don't include <stdio.h>.

24 years agoSmall documentation bug, probably a cut'n'paste, corrected.
Richard Levitte [Thu, 1 Jun 2000 17:40:34 +0000 (17:40 +0000)]
Small documentation bug, probably a cut'n'paste, corrected.

24 years agoBug fix for 64 bit HP-UX.
Ulf Möller [Thu, 1 Jun 2000 14:24:59 +0000 (14:24 +0000)]
Bug fix for 64 bit HP-UX.

Submitted by: Karsten Spang <ks@bellesystems.com>

24 years agoSmall fix to enable reading from stdin as well.
Richard Levitte [Thu, 1 Jun 2000 11:23:20 +0000 (11:23 +0000)]
Small fix to enable reading from stdin as well.
Contributed by Yoichiro Okabe <okabe@wizsoft.co.jp>

24 years ago"make update" + stripping the type-specific stack functions out of
Geoff Thorpe [Thu, 1 Jun 2000 06:07:19 +0000 (06:07 +0000)]
"make update" + stripping the type-specific stack functions out of
libeay.num and ssleay.num.

24 years agoThis change will cause builds (by default) to not use different STACK
Geoff Thorpe [Thu, 1 Jun 2000 05:13:52 +0000 (05:13 +0000)]
This change will cause builds (by default) to not use different STACK
structures and functions for each stack type. The previous behaviour
can be enabled by configuring with the "-DDEBUG_SAFESTACK" option.
This will also cause "make update" (mkdef.pl in particular) to
update the libeay.num and ssleay.num symbol tables with the number of
extra functions DEBUG_SAFESTACK creates.

The way this change works is to accompany each DECLARE_STACK_OF()
macro with a set of "#define"d versions of the sk_##type##_***
functions that ensures all the existing "type-safe" stack calls are
precompiled into the underlying stack calls. The presence or abscence
of the DEBUG_SAFESTACK symbol controls whether this block of
"#define"s or the DECLARE_STACK_OF() macro is taking effect. The
block of "#define"s is in turn generated and maintained by a perl
script (util/mkstack.pl) that encompasses the block with delimiting
C comments. This works in a similar way to the auto-generated error
codes and, like the other such maintenance utilities, is invoked
by the "make update" target.

A long (but mundane) commit will follow this with the results of
"make update" - this will include all the "#define" blocks for
each DECLARE_STACK_OF() statement, along with stripped down
libeay.num and ssleay.num files.

24 years agoThe previous commit to crypto/stack/*.[ch] pulled the type-safety strings
Geoff Thorpe [Thu, 1 Jun 2000 02:36:58 +0000 (02:36 +0000)]
The previous commit to crypto/stack/*.[ch] pulled the type-safety strings
yet tighter, and also put some heat on the rest of the library by
insisting (correctly) that compare callbacks used in stacks are prototyped
with "const" parameters. This has led to a depth-first explosion of
compiler warnings in the code where 1 constification has led to 3 or 4
more. Fortunately these have all been resolved to completion and the code
seems cleaner as a result - in particular many of the _cmp() functions
should have been prototyped with "const"s, and now are. There was one
little problem however;

X509_cmp() should by rights compare "const X509 *" pointers, and it is now
declared as such. However, it's internal workings can involve
recalculating hash values and extensions if they have not already been
setup. Someone with a more intricate understanding of the flow control of
X509 might be able to tighten this up, but for now - this seemed the
obvious place to stop the "depth-first" constification of the code by
using an evil cast (they have migrated all the way here from safestack.h).

Fortunately, this is the only place in the code where this was required
to complete these type-safety changes, and it's reasonably clear and
commented, and seemed the least unacceptable of the options. Trying to
take the constification further ends up exploding out considerably, and
indeed leads directly into generalised ASN functions which are not likely
to cooperate well with this.

24 years agoThis is the first of two commits (didn't want to dump them all into the
Geoff Thorpe [Thu, 1 Jun 2000 02:15:40 +0000 (02:15 +0000)]
This is the first of two commits (didn't want to dump them all into the
same one). However, the first will temporarily break things until the
second comes through. :-)

The safestack.h handling was mapping compare callbacks that externally
are of the type (int (*)(type **,type **)) into the underlying callback
type used by stack.[ch], which is (int (*)(void *,void *)). After some
degree of digging, it appears that the callback type in the underlying
stack code should use double pointers too - when the compare operations
are invoked (from sk_find and sk_sort), they are being used by bsearch
and qsort to compare two pointers to pointers. This change corrects the
prototyping (by only casting to the (void*,void*) form at the moment
it is needed by bsearch and qsort) and makes the mapping in safestack.h
more transparent. It also changes from "void*" to "char*" to stay in
keeping with stack.[ch]'s assumed base type of "char".

Also - the "const" situation was that safestack.h was throwing away
"const"s, and to compound the problem - a close examination of stack.c
showed that (const char **) is not really achieving what it is supposed
to when the callback is being invoked, what is needed is
(const char * const *). So the underlying stack.[ch] and the mapping
macros in safestack.h have all been altered to correct this.

What will follow are the vast quantities of "const" corrections required
in stack-dependant code that was being let "slip" through when
safestack.h was discarding "const"s. These now all come up as compiler
warnings.

24 years agois needed.
Ulf Möller [Thu, 1 Jun 2000 00:27:59 +0000 (00:27 +0000)]
is needed.

24 years agotypo
Bodo Möller [Wed, 31 May 2000 23:20:10 +0000 (23:20 +0000)]
typo

24 years agodh and gendh have been obsoleted by dhparam.
Bodo Möller [Wed, 31 May 2000 23:07:48 +0000 (23:07 +0000)]
dh and gendh have been obsoleted by dhparam.

24 years ago#include <stdio.h> not needed.
Ulf Möller [Wed, 31 May 2000 22:25:44 +0000 (22:25 +0000)]
#include <stdio.h> not needed.

24 years ago#include <stdlib.h> is not needed.
Ulf Möller [Wed, 31 May 2000 22:13:59 +0000 (22:13 +0000)]
#include <stdlib.h> is not needed.

24 years agoResult of "make update"
Richard Levitte [Wed, 31 May 2000 21:35:38 +0000 (21:35 +0000)]
Result of "make update"

24 years agoThis seems to become a FAQ...
Richard Levitte [Wed, 31 May 2000 20:11:11 +0000 (20:11 +0000)]
This seems to become a FAQ...

24 years agosk_***_new_null() seems to be there to avoid exactly this sort of thing
Geoff Thorpe [Wed, 31 May 2000 17:41:34 +0000 (17:41 +0000)]
sk_***_new_null() seems to be there to avoid exactly this sort of thing
which is a cast between NULL and a function pointer.

24 years agosk_value was also suffering from de-const-ification.
Geoff Thorpe [Wed, 31 May 2000 17:35:11 +0000 (17:35 +0000)]
sk_value was also suffering from de-const-ification.
Also, add in a couple of missing declarations in pkcs7 code.

24 years agoconfig can now detect ARM Linux automagically.
Richard Levitte [Wed, 31 May 2000 17:06:10 +0000 (17:06 +0000)]
config can now detect ARM Linux automagically.
Contributed by Jeremy Norris <jeremy.norris@rebel.com>

24 years agostrtoul is not used anywhere.
Bodo Möller [Wed, 31 May 2000 16:44:22 +0000 (16:44 +0000)]
strtoul is not used anywhere.

24 years agoWhen compiling with /opt/SUNWspro/SC4.2/bin/cc on Solaris, __svr4__ is
Bodo Möller [Wed, 31 May 2000 16:42:47 +0000 (16:42 +0000)]
When compiling with /opt/SUNWspro/SC4.2/bin/cc on Solaris, __svr4__ is
not defined, but __SVR4 is.

24 years agoAll the little functions created by the IMPLEMENT_STACK_OF() macro will
Geoff Thorpe [Wed, 31 May 2000 15:28:01 +0000 (15:28 +0000)]
All the little functions created by the IMPLEMENT_STACK_OF() macro will
cast their type-specific STACK into a real STACK and call the underlying
sk_*** function. The problem is that if the STACK_OF(..) parameter being
passed in has a "const *" qualifier, it is discarded by the cast.

I'm currently implementing a fix for this but in the mean-time, this is
one case I noticed (a few type-specific sk_**_num() functions pass in
const type-specific stacks). If there are other errors in the code where
consts are being discarded, we will similarly not notice them. yuck.

24 years agoMove Windows seeding functions into a separate file.
Bodo Möller [Wed, 31 May 2000 12:48:35 +0000 (12:48 +0000)]
Move Windows seeding functions into a separate file.
They have nothing to do with the particular PRNG (md_rand.c).

24 years agoAdd "FIXME" comment.
Bodo Möller [Wed, 31 May 2000 09:51:55 +0000 (09:51 +0000)]
Add "FIXME" comment.

24 years agoImprove PRNG robustness.
Bodo Möller [Tue, 30 May 2000 21:44:36 +0000 (21:44 +0000)]
Improve PRNG robustness.

24 years agoMore EVP cipher revision.
Dr. Stephen Henson [Tue, 30 May 2000 18:26:22 +0000 (18:26 +0000)]
More EVP cipher revision.

Change EVP_SealInit() and EVP_OpenInit() to
handle cipher parameters.

Make it possible to set RC2 and RC5 params.

Make RC2 ASN1 code use the effective key bits
and not the key length.

TODO: document how new API works.

24 years agoUpdate the relevant parts of the docs with the ENGINE changes. I've also
Geoff Thorpe [Tue, 30 May 2000 13:52:45 +0000 (13:52 +0000)]
Update the relevant parts of the docs with the ENGINE changes. I've also
unbolded a few bits that looked unecessary.

24 years ago"make update"
Geoff Thorpe [Tue, 30 May 2000 12:59:43 +0000 (12:59 +0000)]
"make update"

Also, corrects the linux-elf-arm config string, it was previously setting
$des_obj = dlfcn :-)

24 years agoYou must have an empty line between =item's
Richard Levitte [Tue, 30 May 2000 08:01:24 +0000 (08:01 +0000)]
You must have an empty line between =item's

24 years agoMain trunk changes merged into BRANCH_engine. There were no
Richard Levitte [Tue, 30 May 2000 07:16:56 +0000 (07:16 +0000)]
Main trunk changes merged into BRANCH_engine.  There were no
conflicts, which is a good thing.  Propper tagging of merge point
done.

24 years agoThis commit was manufactured by cvs2svn to create branch 'BRANCH_engine'.
cvs2svn [Tue, 30 May 2000 02:21:16 +0000 (02:21 +0000)]
This commit was manufactured by cvs2svn to create branch 'BRANCH_engine'.

24 years agoFourth phase EVP revision.
Dr. Stephen Henson [Tue, 30 May 2000 02:21:15 +0000 (02:21 +0000)]
Fourth phase EVP revision.

Declare ciphers in terms of macros. This reduces
the amount of code and places each block cipher EVP
definition in a single file instead of being spread
over 4 files.

24 years agoFourth phase EVP revision.
Dr. Stephen Henson [Tue, 30 May 2000 02:10:57 +0000 (02:10 +0000)]
Fourth phase EVP revision.

Declare ciphers in terms of macros. This reduces
the amount of code and places each block cipher EVP
definition in a single file instead of being spread
over 4 files.

24 years ago"handle", "h" and even "e" were probably not the best terms to use. The
Geoff Thorpe [Mon, 29 May 2000 16:24:42 +0000 (16:24 +0000)]
"handle", "h" and even "e" were probably not the best terms to use. The
original idea of "handle" was that it represented a functional reference
to an ENGINE (rather than just a pointer), but on reflection I think
this now looks a little more readable.

24 years agoConfiguration for linux on ARM (contributed by Jeremy Norris
Richard Levitte [Mon, 29 May 2000 16:18:37 +0000 (16:18 +0000)]
Configuration for linux on ARM (contributed by Jeremy Norris
<jeremy.norris@rebel.com>)

24 years agoMinor corrections to documentation.
Geoff Thorpe [Mon, 29 May 2000 15:52:21 +0000 (15:52 +0000)]
Minor corrections to documentation.

* speed processes any/all options passed to it, not just one.
* DH and DSA have no "_get_method()" functions, only RSA does.
* typos.

24 years agoThis adds DSA signature verification to the CryptoSwift support.
Geoff Thorpe [Mon, 29 May 2000 13:01:34 +0000 (13:01 +0000)]
This adds DSA signature verification to the CryptoSwift support.

24 years ago"make update"
Geoff Thorpe [Mon, 29 May 2000 11:21:29 +0000 (11:21 +0000)]
"make update"

24 years agoTie DSA into the engine framework as with RSA and DH so far. I've verified
Geoff Thorpe [Mon, 29 May 2000 11:07:38 +0000 (11:07 +0000)]
Tie DSA into the engine framework as with RSA and DH so far. I've verified
this integration with a web-server using CryptoSwift engine code with RSA
and DSA certificates (and with EDH cipher suites).

24 years agoGeneral tidy up of existing code, and add first half of DSA support for
Geoff Thorpe [Mon, 29 May 2000 10:59:46 +0000 (10:59 +0000)]
General tidy up of existing code, and add first half of DSA support for
CryptoSwift (this currently only does signing, verification will be
hooked in shortly).

24 years agoThe engine code has changed the "[get|set]_default_method" functions
Geoff Thorpe [Mon, 29 May 2000 04:55:26 +0000 (04:55 +0000)]
The engine code has changed the "[get|set]_default_method" functions
a bit, so bring libeay.num up to date.

24 years agoanother warning.
Geoff Thorpe [Mon, 29 May 2000 04:20:52 +0000 (04:20 +0000)]
another warning.

24 years agoIt seems that mktime does what is required here. Certainly timegm() can
Geoff Thorpe [Mon, 29 May 2000 03:50:37 +0000 (03:50 +0000)]
It seems that mktime does what is required here. Certainly timegm() can
not be used because it is not available on all systems (most notably,
win32).

24 years agoThis declaration seems to have been added into the header file accidently.
Geoff Thorpe [Mon, 29 May 2000 03:17:45 +0000 (03:17 +0000)]
This declaration seems to have been added into the header file accidently.
There's no trace of it being implemented and it doesn't seem to have been
intended given that it is prototyped with a BIO yet there was a BIO-
specific version added in at the same time.

24 years agooops.
Geoff Thorpe [Mon, 29 May 2000 02:42:57 +0000 (02:42 +0000)]
oops.

24 years agoUpdate dependencies courtesy of "make update". Changes to libeay.num
Geoff Thorpe [Mon, 29 May 2000 00:54:36 +0000 (00:54 +0000)]
Update dependencies courtesy of "make update". Changes to libeay.num
coming up soon after some more tinkering.

Submitted by:
Reviewed by:
PR:

24 years agoThis hooks the DH code into the engine framework in the same way that has
Geoff Thorpe [Mon, 29 May 2000 00:46:47 +0000 (00:46 +0000)]
This hooks the DH code into the engine framework in the same way that has
already been done for RSA. The others (DSA + RAND) will probably follow
in the near future too, but DH is easiest to test with RSA because one
can just force the use of the EDH cipher-suites.

24 years agoProvide command line options to s_client and s_server to select an
Geoff Thorpe [Sun, 28 May 2000 23:00:20 +0000 (23:00 +0000)]
Provide command line options to s_client and s_server to select an
"engine" to use.

24 years agoThe switch to having an (ENGINE *) handle inside each RSA structure rather
Geoff Thorpe [Sun, 28 May 2000 22:54:51 +0000 (22:54 +0000)]
The switch to having an (ENGINE *) handle inside each RSA structure rather
than (RSA_METHOD *) required a couple of functions to change shape. I
didn't really pick the best shape to change RSA_set_method into though. :-)

There's nothing really appropriate to return from RSA_set_method; the
temptation to return an "old handle" fails when you consider that the
caller might ignore the return value and so botch up the reference
counting, this wasn't an issue before because there was no reference
counting.

24 years agoThird phase of EVP cipher overhaul.
Dr. Stephen Henson [Sun, 28 May 2000 12:44:46 +0000 (12:44 +0000)]
Third phase of EVP cipher overhaul.

Remove duplicated code in EVP.

24 years agoBugfix: clear error queue after ignoring ssl_verify_cert_chain result.
Bodo Möller [Sat, 27 May 2000 22:25:01 +0000 (22:25 +0000)]
Bugfix: clear error queue after ignoring ssl_verify_cert_chain result.

24 years agoSecond phase of EVP cipher overhaul.
Dr. Stephen Henson [Sat, 27 May 2000 12:38:43 +0000 (12:38 +0000)]
Second phase of EVP cipher overhaul.

Change functions like EVP_EncryptUpdate() so they now return a
value. These normally have software only implementations
which cannot fail so this was acceptable. However ciphers
can be implemented in hardware and these could return errors.

24 years agoBeginnings of EVP cipher overhaul. This should eventually
Dr. Stephen Henson [Fri, 26 May 2000 23:51:35 +0000 (23:51 +0000)]
Beginnings of EVP cipher overhaul. This should eventually
enhance and tidy up the EVP interface.

This patch adds initial support for variable length ciphers
and changes S/MIME code to use this.

Some other library functions need modifying to support use
of modified cipher parameters.

Also need to change all the cipher functions that should
return error codes, but currenly don't.

And of course it needs extensive testing...

24 years agoUpdate the test program to compile and run with the changes I just made
Geoff Thorpe [Fri, 26 May 2000 15:43:28 +0000 (15:43 +0000)]
Update the test program to compile and run with the changes I just made
to ENGINE_new (and ENGINE_get_struct_size).

24 years agoPrevent calling code from doing the allocation of the ENGINE structure.
Geoff Thorpe [Fri, 26 May 2000 15:21:47 +0000 (15:21 +0000)]
Prevent calling code from doing the allocation of the ENGINE structure.
This was a bad idea in the first place, in particular it would have made
it trickier to implement error-handling, particularly when shutting down
third-party shared libraries etc.

24 years agoAdded Geoff's latest changes, which seems to mostly be DH stuff and a
Richard Levitte [Thu, 25 May 2000 21:21:03 +0000 (21:21 +0000)]
Added Geoff's latest changes, which seems to mostly be DH stuff and a
README.  Oh, and a test program.

24 years agoAdd code and changes to implement the ENGINE mechanism. These are the
Richard Levitte [Thu, 25 May 2000 19:55:54 +0000 (19:55 +0000)]
Add code and changes to implement the ENGINE mechanism.  These are the
patches that Geoff had in a patch file in his play directory.

NOTE for openssl-cvs:  THIS IS A CVS BRANCH (BRANCH_engine).  IT IS
NOT FOR THE FAINTHEARTED TO PLAY WITH.  The code works as it is, but
it's not at all sure it ends up in the OpenSSL distributio in this
form, so do not get dependent on it!

Those rsyncing the repository are considered warned!

24 years agoThis commit was manufactured by cvs2svn to create branch 'BRANCH_engine'.
cvs2svn [Thu, 25 May 2000 13:20:12 +0000 (13:20 +0000)]
This commit was manufactured by cvs2svn to create branch 'BRANCH_engine'.

24 years agocvs update
Geoff Thorpe [Thu, 25 May 2000 13:20:11 +0000 (13:20 +0000)]
cvs update

24 years agotypo
Bodo Möller [Thu, 25 May 2000 11:24:42 +0000 (11:24 +0000)]
typo

24 years agoImplement SSL_OP_TLS_ROLLBACK_BUG for servers.
Bodo Möller [Thu, 25 May 2000 09:50:40 +0000 (09:50 +0000)]
Implement SSL_OP_TLS_ROLLBACK_BUG for servers.

Call dh_tmp_cb with correct 'is_export' flag.

Avoid tabs in CHANGES.

24 years agoAdd the target system linux-m68k
Richard Levitte [Wed, 24 May 2000 22:00:59 +0000 (22:00 +0000)]
Add the target system linux-m68k

24 years agoAdd DSA library string. Workaround for IIS .key file invalid
Dr. Stephen Henson [Wed, 24 May 2000 13:09:59 +0000 (13:09 +0000)]
Add DSA library string. Workaround for IIS .key file invalid
ASN1 encoding.