Richard Levitte
600b77a93f
Add the possibility to enable olde des support, not just disable it, for future support. Redocument
2002-03-26 14:26:08 +00:00
Richard Levitte
39335c356b
Add the mapping of des_random_seed() for 0.9.6 compatibility.
...
Make sure DES_cblock is defined at all times (meaning one shouldn't include
openssl/des_old.h directly any more).
2002-03-26 13:58:30 +00:00
Richard Levitte
a3c62bb737
Correct the mapping for des_read_pw()
2002-03-26 13:54:04 +00:00
Bodo Möller
2f6263a696
fix memory leak
...
Submitted by: Nils Larsch
2002-03-25 23:17:35 +00:00
Bodo Möller
35748f40d6
add missing declaration
...
Submitted by: Nils Larsch
2002-03-25 23:14:50 +00:00
Bodo Möller
9e7733a743
fix conditational compilation for OPENSSL_NO_...
2002-03-22 11:02:45 +00:00
Richard Levitte
fc0bdd1aa8
Key schedules are given as arguments a bit differently in 0.9.6 and
...
earlier. Also, it was an error to define crypt() at all times.
2002-03-22 10:46:13 +00:00
Richard Levitte
e9dad4048f
Key schedules are given as arguments a bit differently in 0.9.6 and
...
earlier. Also, a few 0.9.6 functions were missing their mappings.
2002-03-22 10:29:56 +00:00
Richard Levitte
e9f970891d
Change des_old.h so OpenSSL 0.9.6 compatibility is default. One must
...
define OPENSSL_DES_LIBDES_COMPATIBILITY to get libdes compatibility.
At the same time, correct a couple of argument errors for the cfb
encryption routines.
Make destest use as much of the old API as possible, to make sure it
works properly. Other tests will use the new API...
2002-03-22 02:33:24 +00:00
Lutz Jänicke
f90c544039
Remove superflous statement <justin.fletcher@ntlworld.com>.
...
Submitted by:
Reviewed by:
PR:
2002-03-21 19:10:07 +00:00
Bodo Möller
afcf54a5c9
fix DH_generate_parameters for general 'generator'
2002-03-20 16:02:46 +00:00
Dr. Stephen Henson
59a941e4a4
Ensure EVP_CipherInit() uses the correct encode/decode parameter if
...
enc == -1
[Reported by Markus Friedl <markus@openbsd.org>]
Fix typo in dh_lib.c (use of DSAerr instead of DHerr).
2002-03-16 23:19:25 +00:00
Dr. Stephen Henson
b74dfe6e8e
Initialize cipher context in KRB5
...
("D. Russell" <russelld@aol.net>)
Allow HMAC functions to use an alternative ENGINE.
2002-03-14 18:16:49 +00:00
Bodo Möller
d80f6e0f8c
Fixes for 'no-hw' combined with 'no-SOME_CIPHER'.
...
Fix dsaparam usage output.
Submitted by: Nils Larsch (for 0.9.8-dev; backported to 0.9.7-dev)
2002-03-14 09:53:30 +00:00
Bodo Möller
2fc1f3dd48
disable '#ifdef DEBUG' code
2002-03-14 09:35:15 +00:00
Dr. Stephen Henson
e50baf58ab
Fix various warnings when compiling with KRB5 code.
2002-03-12 03:00:59 +00:00
Dr. Stephen Henson
c77bd28775
Make ciphers and digests obtain an ENGINE functional reference
...
if impl is explicitly supplied.
2002-03-09 18:56:38 +00:00
Dr. Stephen Henson
1619add90c
Make {RSA,DSA,DH}_new_method obtain and release an ENGINE
...
functional reference.
2002-03-09 18:24:14 +00:00
Richard Levitte
121cb9ee38
Synchronise the AEP engine in all branches. For 0.9.6-stable [engine], implement software fallback
2002-03-07 19:39:19 +00:00
Richard Levitte
bc173b9fb0
When closing, do not use close(). Also, if the closing call fails, do
...
not return immediately since that leaves a locked lock.
2002-03-07 17:13:49 +00:00
Richard Levitte
4fd9c70f06
Change des_old.c to use types prefixed with _ossl_old_des_.
2002-03-07 15:38:40 +00:00
Dr. Stephen Henson
c913cf446f
ENGINE module additions.
...
Add "init" command to control ENGINE
initialization.
Call ENGINE_finish on initialized ENGINEs on exit.
Reorder shutdown in apps.c: modules should be shut
down first.
Add test private key loader to openssl ENGINE: this
just loads a private key in PEM format.
Fix print format for dh length parameter.
2002-03-06 14:09:46 +00:00
Bodo Möller
022b31a8c8
typo
2002-03-05 15:03:16 +00:00
Dr. Stephen Henson
dd6b494eb3
Make sure the type accessed by the LONG and ZLONG ASN1 type
...
is really a long, to avoid problems on platforms where
sizeof(int) != sizeof(long).
2002-03-05 13:49:27 +00:00
Richard Levitte
c9bea5bad3
Provide a pre 0.9.7 compatibility mapping if
...
OPENSSL_DES_PRE_0_9_7_COMPATIBILITY is defined. NOT AT ALL TESTED YET!
Add a comment as to the libdes compatibility.
2002-03-05 11:25:46 +00:00
Richard Levitte
9e77b7075a
A dash was missing in this branch as well.
2002-03-04 18:09:10 +00:00
Richard Levitte
5c7f9a627f
Rename des_SPtrans to DES_SPtrans to differentiate from libdes and avoid certain linkage clashes.
2002-03-04 16:08:53 +00:00
Dr. Stephen Henson
66bd86e2c2
Fix warnings about signed/unsigned mismatch and global
...
shadowing (random, index) in hw_4758.c
2002-03-03 17:07:27 +00:00
Richard Levitte
69c48301e0
make update
2002-02-28 20:28:23 +00:00
Bodo Möller
98fa4fce09
use ERR_peek_last_error() instead of ERR_peek_error() to ignore
...
any other errors that may be left in the error queue
Submitted by: Jeffrey Altman
2002-02-28 14:03:41 +00:00
Richard Levitte
1ec1d17e16
VMS addaptation, including a few more long names that needed hacking.
2002-02-28 13:18:47 +00:00
Richard Levitte
1e11df0dc3
Make sure aep_close_connection() is declared and has a prototype that's
...
consistent with the rest of the AEP functions
2002-02-28 12:59:03 +00:00
Richard Levitte
421d474332
Increase internal security when using strncpy, by making sure the resulting string is NUL-terminated
2002-02-28 12:44:05 +00:00
Richard Levitte
58060fa11b
Updated AEP engine, submitted by Diarmuid O'Neill <Diarmuid.ONeill@aep.ie>
2002-02-28 11:37:35 +00:00
Geoff Thorpe
6d1a837df7
This adds a new ENGINE to support IBM 4758 cards, contributed by Maurice
...
Gittens.
2002-02-27 22:45:48 +00:00
Dr. Stephen Henson
bb9dcc99cf
Always init ctx_tmp in PKCS7_dataFinal since it is always cleaned up.
2002-02-26 19:32:16 +00:00
Richard Levitte
3d59821134
make update
2002-02-26 14:37:25 +00:00
Dr. Stephen Henson
e36e473859
Make the engine config module always add dynamic ENGINEs
...
to the list using dynamic_path. This stops ENGINEs which
don't supply any default algorithms being automatically
freed (because they have no references) and allows them
to be accessed by id.
Alternative dynamic loading behaviour can be achieved by
issuing the dynamic ENGINE ctrls separately in the config file.
2002-02-24 16:22:20 +00:00
Dr. Stephen Henson
d7fb66aa82
Remove old comment
2002-02-23 13:43:07 +00:00
Dr. Stephen Henson
344b3b5ce1
OPENSSL_LOAD_CONF define as in main trunk
2002-02-23 02:09:29 +00:00
Dr. Stephen Henson
3f7cf29124
Update from main branch.
2002-02-23 01:47:59 +00:00
cvs2svn
63dc69fef6
This commit was manufactured by cvs2svn to create branch
...
'OpenSSL_0_9_7-stable'.
2002-02-23 01:00:45 +00:00
Dr. Stephen Henson
e84be9b495
New OPENSSL_LOAD_CONF define to load openssl.cnf
...
when OpenSSL_add_all_algorithms() is called.
2002-02-23 01:00:44 +00:00
Dr. Stephen Henson
3208ff58ca
make errors
2002-02-22 21:17:31 +00:00
Dr. Stephen Henson
6707d22a40
Update from stable branch.
2002-02-22 14:07:35 +00:00
Dr. Stephen Henson
3647bee263
Config code updates.
...
CONF_modules_unload() now calls CONF_modules_finish()
automatically.
Default use of section openssl_conf moved to
CONF_modules_load()
Load config file in several openssl utilities.
Most utilities now load modules from the config file,
though in a few (such as version) this isn't done
because it couldn't be used for anything.
In the case of ca and req the config file used is
the same as the utility itself: that is the -config
command line option can be used to specify an
alternative file.
2002-02-22 14:01:21 +00:00
Dr. Stephen Henson
0cd8572b2d
Config code updates.
...
CONF_modules_unload() now calls CONF_modules_finish()
automatically.
Default use of section openssl_conf moved to
CONF_modules_load()
Load config file in several openssl utilities.
Most utilities now load modules from the config file,
though in a few (such as version) this isn't done
because it couldn't be used for anything.
In the case of ca and req the config file used is
the same as the utility itself: that is the -config
command line option can be used to specify an
alternative file.
2002-02-22 13:58:15 +00:00
Bodo Möller
de603b75fc
disable '#ifdef DEBUG' sections
2002-02-21 14:08:47 +00:00
Bodo Möller
3e563bcea7
disable '#ifdef DEBUG' sections
2002-02-21 13:07:44 +00:00
Bodo Möller
1244be2eda
disable '#ifdef DEBUG' sections
2002-02-21 13:00:45 +00:00
Dr. Stephen Henson
92f91ff48b
Config file updates from stable branch
2002-02-21 00:54:54 +00:00
Richard Levitte
b0701709c1
Add comfy aliases for AES in CBC mode.
2002-02-20 18:00:23 +00:00
Richard Levitte
5b7848a345
Add comfy aliases for AES in CBC mode.
2002-02-20 17:59:49 +00:00
Richard Levitte
34aa216a65
Stop assuming the IV is 8 bytes long, use the real size instead.
...
This is especially important for AES that has a 16 bytes IV.
2002-02-20 17:56:01 +00:00
Richard Levitte
915c6a21ba
Stop assuming the IV is 8 bytes long, use the real size instead.
...
This is especially important for AES that has a 16 bytes IV.
2002-02-20 17:55:08 +00:00
Richard Levitte
a76a29f233
Merge in recent changes from the main trunk.
2002-02-20 17:53:17 +00:00
Richard Levitte
236be53269
gcc figures that the format specifier %2x means unsigned int, so let's
...
make n unsigned.
2002-02-20 13:50:36 +00:00
Richard Levitte
1fc1bd382b
Instead of casting a lvalue, let's constify meth.
2002-02-20 13:49:17 +00:00
Bodo Möller
3613e6fc57
simplifications
...
Submitted by: Nils Larsch
2002-02-20 13:08:17 +00:00
Richard Levitte
bd53a054b1
Merg in recent changes from the main trunk.
2002-02-20 12:28:32 +00:00
Richard Levitte
f19759a182
Instead of just checking for OpenVMS, check if DEC C is used, since it's as
...
picky on all platforms
2002-02-20 12:01:24 +00:00
Bodo Möller
d009bcbfb6
bugfix: allocate sufficiently large buffer
...
Submitted by: Nils Larsch
2002-02-20 11:59:42 +00:00
Bodo Möller
211b8685d3
bugfix: allocate sufficiently large buffer
...
Submitted by: Nils Larsch
2002-02-20 11:58:17 +00:00
Richard Levitte
4b71f63ac0
Comparing a pointer (data) with 0 using > is incorrect. The changed
...
comparison doesn't look right, but at least it compiles. It would be nice
if the one who knows what this is supposed to do changed it to do it correctly
2002-02-20 11:57:33 +00:00
Richard Levitte
3adb8c3854
With Compaq make, it seems like # inside an action becomes part of the command, not a comment at all
2002-02-20 11:43:40 +00:00
Geoff Thorpe
5b2d6ff07e
make update
2002-02-20 08:33:55 +00:00
Dr. Stephen Henson
9c75b2d931
Use default openssl.cnf if config filename set to NULL and
...
openssl_conf if appname NULL.
2002-02-19 23:25:18 +00:00
Richard Levitte
3d7ba69a05
The AES modes OFB and CFB are defined with 128 feedback bits. This
...
deviates from the "standard" 64 bits of feedback that all other
algorithms are using. Therefore, let's redo certain EVP macros to
accept different amounts of feedback bits for these modes.
Also, change e_aes.c to provide all usually available modes for AES.
CTR isn't included yet.
2002-02-16 12:39:58 +00:00
Richard Levitte
a6cd870784
The AES modes OFB and CFB are defined with 128 feedback bits. This
...
deviates from the "standard" 64 bits of feedback that all other
algorithms are using. Therefore, let's redo certain EVP macros to
accept different amounts of feedback bits for these modes.
Also, change e_aes.c to provide all usually available modes for AES.
CTR isn't included yet.
2002-02-16 12:39:07 +00:00
Richard Levitte
58133d22a8
Add the modes OFB128, CFB128 and CTR128 to AES.
...
Submitted by Stephen Sprunk <stephen@sprunk.org>
2002-02-16 12:21:43 +00:00
cvs2svn
330e5c5460
This commit was manufactured by cvs2svn to create branch
...
'OpenSSL_0_9_7-stable'.
2002-02-16 12:20:35 +00:00
Richard Levitte
97879bcd57
Add the modes OFB128, CFB128 and CTR128 to AES.
...
Submitted by Stephen Sprunk <stephen@sprunk.org>
2002-02-16 12:20:34 +00:00
Richard Levitte
ab519c8262
Adjust the NID names for the AES modes OFB and CFB to contain the number
...
of feedback bits
2002-02-16 12:16:43 +00:00
Richard Levitte
ab1dee1efc
Adjust the NID names for the AES modes OFB and CFB to contain the number
...
of feedback bits
2002-02-16 12:15:30 +00:00
Richard Levitte
e072aa535d
The macro IMPLEMENT_ASN1_FUNCTIONS_const already contains an ending ;,
...
so do not add one after the expansion, since ANSI C doesn't allow ;;
at this level (or at least, so tells me gcc).
2002-02-16 12:03:25 +00:00
Richard Levitte
48f9859d2a
Local time' shadows the global function
time()'. Rename the local
...
variable to `tim' (and, as a matter of consequence, `time_d' to `tim_d').
2002-02-16 12:01:13 +00:00
Richard Levitte
48b5083ca0
Missing #endif
2002-02-16 11:58:16 +00:00
Bodo Möller
c363b5a62f
constify
2002-02-15 10:19:22 +00:00
Dr. Stephen Henson
80bbb6578e
Add flag to disable config module DSO loading.
2002-02-15 02:43:50 +00:00
Dr. Stephen Henson
19cc0f0ab4
Only initialize cipher ctx if cipher is not NULL.
2002-02-15 01:01:36 +00:00
Dr. Stephen Henson
14e14ea68c
Allow a NULL store parameter to X509_STORE_CTX_init().
2002-02-15 00:58:14 +00:00
Dr. Stephen Henson
834d37ed86
Don't call finish function if it isn't set.
...
Fix OID module.
2002-02-15 00:33:35 +00:00
Dr. Stephen Henson
86a0d0234d
Add argument to OPENSSL_config() and add flag to
...
tolerate missing config file.
2002-02-14 23:39:36 +00:00
Dr. Stephen Henson
4598be561a
typo (?)
2002-02-14 18:52:37 +00:00
Dr. Stephen Henson
af5db47e99
Fix warnings:
...
#if out some unused function.
"index" is a global function on some platforms.
2002-02-14 18:46:12 +00:00
Richard Levitte
fb67f40f04
Add the configuration target VxWorks.
2002-02-14 16:23:55 +00:00
Bodo Möller
e65991f977
fix indentation
2002-02-14 16:08:55 +00:00
Richard Levitte
3e83e686ba
Add the configuration target VxWorks.
2002-02-14 15:37:38 +00:00
Bodo Möller
48033c3242
fix: make it possible to disable memory debugging even if it is
...
enabled by default
2002-02-14 14:47:15 +00:00
Bodo Möller
8f06b00373
make it possible to disable memory checking for timings
2002-02-14 14:41:13 +00:00
Bodo Möller
aa1f5b3581
don't call OPENSSL_config(), this does not make any sense during "make test"
2002-02-14 13:52:11 +00:00
Bodo Möller
6cc3700314
don't call OPENSSL_config(), this does not make any sense during "make test"
2002-02-14 13:51:20 +00:00
Richard Levitte
d9d3a69595
Make sure memset() is defined by including string.h
...
Notified by Oscar Jacobsson <oscar@jacobsson.org>
2002-02-14 13:51:13 +00:00
Richard Levitte
cc1489d2f2
Make sure memset() is defined by including string.h
...
Notified by Oscar Jacobsson <oscar@jacobsson.org>
2002-02-14 13:51:04 +00:00
Richard Levitte
016029c69f
For some reason, getting the topmost error was done the same way as
...
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.
2002-02-14 13:45:26 +00:00
Richard Levitte
f9adfa6d4e
For some reason, getting the topmost error was done the same way as
...
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.
2002-02-14 13:42:33 +00:00
Bodo Möller
d8309efc72
EC_GROUP_get_group_by_name() is now called EC_GROUP_new_by_name()
2002-02-14 10:23:20 +00:00
Ben Laurie
f43acc8a50
Fix warnings.
2002-02-14 09:59:35 +00:00
Richard Levitte
976b2c9c2f
Because making the key strong by xoring the last byte with 0xF0
...
generates different keys than previous versions of OpenSSL and libdes,
let's make Assar's change experimental for now.
2002-02-14 02:43:57 +00:00
Bodo Möller
4d94ae00d5
ECDSA support
...
Submitted by: Nils Larsch <nla@trustcenter.de>
2002-02-13 18:21:51 +00:00