Dr. Stephen Henson
84fa704c6f
Fix some obvious bugs in the PKCS#7 library handling. It didn't try to
...
find the right RecipientInfo based on the recipient certificate (so would
fail a lot of the time) and fixup cipher structures to correctly (maybe)
modify the AlgorithmIdentifiers. Largely untested at present... this will be
fixed in due course. Well the stuff was broken to begin with so if its broken
now then you haven't lost anything :-)
1999-05-16 00:25:36 +00:00
Dr. Stephen Henson
a74c55cd8f
Various Win32 fixes. Change args in do_ms.bat to put platform last. Fix
...
unsigned/signed cmp error in asn1parse. Change various pem_all.c args to
use pem_password_cb.
1999-05-15 20:33:15 +00:00
Ben Laurie
ac7d07851c
Get rid of casts.
1999-05-15 16:03:26 +00:00
Ben Laurie
62bad77124
Add actual testing to bntest...
1999-05-15 15:59:28 +00:00
Bodo Möller
e1999b1dab
Use OPENSSL_GLOBAL, OPENSSL_EXTERN instead of GLOBAL and EXTERN.
1999-05-15 14:38:10 +00:00
Bodo Möller
3398f6cc21
OPENSSL_EXTERN
1999-05-15 14:30:31 +00:00
Bodo Möller
7f0dae3276
OPENSSL_EXTERN, OPENSSL_GLOBAL
1999-05-15 14:23:29 +00:00
Bodo Möller
127640b449
Update dependencies.
1999-05-15 13:38:48 +00:00
Bodo Möller
cdfb093fc3
Get rid of another cast.
1999-05-15 13:31:53 +00:00
Bodo Möller
cbbd384040
Use e_os2.h, not e_os.h in exported header file des.h.
1999-05-15 13:27:13 +00:00
Bodo Möller
64a3b11be6
Comment.
1999-05-15 12:22:46 +00:00
Bodo Möller
79479f0240
Bugfix (set shutdown only when we should).
...
Submitted by: Oleg Girko
1999-05-15 12:22:19 +00:00
Ben Laurie
531b2cf7e9
Get rid of the cast.
1999-05-15 11:54:21 +00:00
Bodo Möller
8aa5b77c87
Avoid compiler warnings for x86.
1999-05-14 21:07:48 +00:00
Dr. Stephen Henson
1ad2ecb66f
The encoding of negative ASN1 INTEGERs and the conversion of BNs to negative
...
integers was completely broken. Also added a NEG_PUBKEY_BUG compilation option
to compensate for public keys improperly encoded as negative integers.
1999-05-14 18:21:21 +00:00
Bodo Möller
2a82c7cf25
Various bugfixes: Uses locking for some more of the stuff that is not
...
thread-safe (where thread-safe counterparts are not available on all
platforms), and don't memcpy to NULL-pointers
Submitted by: Anonymous
Reviewed by: Bodo Moeller
Also, clean up htons vs. ntohs confusions.
1999-05-14 12:40:39 +00:00
Bodo Möller
d36bcdf5ca
Fix cryptlib.c.
...
Submitted by:
Reviewed by:
PR:
1999-05-14 11:57:17 +00:00
Bodo Möller
3ae76679c7
Introduce and use function typedef pem_password_cb so that we don't call
...
those functions without having a parameter list declaration.
(There are various similar cases left ...)
1999-05-14 11:52:49 +00:00
Bodo Möller
dbd1e38482
Change cast in function calls to that which is, I think, the right
...
one for those functions (is it?).
1999-05-14 11:47:29 +00:00
Ulf Möller
7de82c29c8
Missed one line.
1999-05-13 17:55:08 +00:00
Bodo Möller
608217d8d0
Don't use reserved name "_encrypt" for parameters;
...
instead I've picked "enc", because that's what's in the prototypes.
("_encrypt" is reserved only as an external name, but still
using it in an application doesn't look like good style to me --
and it certainly isn't if the point is just avoiding shadowing,
which is apparently why the previous name "encrypt" was changed.)
1999-05-13 17:51:35 +00:00
Ben Laurie
2adca9cdc6
Update dependencies.
1999-05-13 17:33:27 +00:00
Ben Laurie
90ba7e21e1
Avoid shadowing, and a bit of constification while I'm at it.
1999-05-13 17:10:42 +00:00
Bodo Möller
b56bce4fc7
New structure type SESS_CERT used instead of CERT inside SSL_SESSION.
...
While modifying the sources, I found some inconsistencies on the use of
s->cert vs. s->session->sess_cert; I don't know if those could
really have caused problems, but possibly this is a proper bug-fix
and not just a clean-up.
1999-05-13 15:09:38 +00:00
Bodo Möller
0981259ada
For solaris-usparc configurations, avoid problems with GNU as, which
...
cannot handle all opcodes we need.
1999-05-13 15:02:49 +00:00
Ulf Möller
5c83b4c93f
Remove redundant ifdef.
1999-05-13 13:29:41 +00:00
Ulf Möller
75e0770d96
VMS support bug fixes.
1999-05-13 13:21:17 +00:00
Ulf Möller
bd3576d2dd
Reorganize and speed up MD5.
...
Submitted by: Andy Polyakov <appro@fy.chalmers.se>
1999-05-13 13:16:42 +00:00
Ulf Möller
7d7d2cbcb0
VMS support.
...
Submitted by: Richard Levitte <richard@levitte.org>
1999-05-13 11:37:32 +00:00
Dr. Stephen Henson
8bc1431edd
Several of the EVP_CIPHER structures had the get and set asn1 parameter
...
functions transposed.
1999-05-12 23:11:08 +00:00
Ulf Möller
dcbe935125
Missing argument in prototype.
...
Submitted by: Andreas Ley <ley@rz.uni-karlsruhe.de>
1999-05-12 00:45:42 +00:00
Ulf Möller
2ec765c81d
Use ifndef PEDANTIC for all inline assembler.
1999-05-11 22:14:29 +00:00
Bodo Möller
d797727b20
Comment.
...
Submitted by:
Reviewed by:
PR:
1999-05-11 22:05:39 +00:00
Dr. Stephen Henson
10243d97fd
Various PKCS#7 related fixes,tidies and comments.
1999-05-11 00:52:46 +00:00
Bodo Möller
84a370a400
The various character predicates (isspace and the like) may not be
...
used with negative char values, so I've added casts to unsigned char.
Maybe what really should be done is change all those arrays and
pointers to type unsigned char [] or unsigned char *, respectively;
but using plain char with those predicates is just wrong, so something
had to be done.
Submitted by:
Reviewed by:
PR:
1999-05-10 11:18:26 +00:00
Bodo Möller
93c5624f04
Moved some variable declarations inside blocks where they are needed
...
so that warnings about unused variables (for certain
-D... constellations) are avoided; this corresponds to the earlier
change for SHA1.
Submitted by:
Reviewed by:
PR:
1999-05-10 11:10:38 +00:00
Ralf S. Engelschall
397f703892
Fix various things to let OpenSSL even pass ``egcc -pipe -O2 -Wall -Wshadow
...
-Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations
-Wnested-externs -Winline'' with EGCS 1.1.2+
1999-05-10 08:33:56 +00:00
Dr. Stephen Henson
884e8ec615
Various PKCS#7 fixes to properly (maybe!) handle PKCS#7 enveloped data.
...
Containts elements of code by Sebastian Akerman <sak@parallelconsulting.com>
and made a bit less "naughty" by Steve.
1999-05-10 00:47:42 +00:00
Dr. Stephen Henson
c8b4185079
Kill evil casts, fix PKCS#7 and add new X509V3 Function.
1999-05-09 16:39:11 +00:00
Bodo Möller
1c10afc32a
Makefile.save was missing here.
...
Submitted by:
Reviewed by:
PR:
1999-05-09 15:47:35 +00:00
Bodo Möller
a0d0c6a61b
Move variable definitions into the blocks where they are really needed,
...
so that warnings about unused variables don't appear if those blocks
are removed by the C preprocessor.
Submitted by:
Reviewed by:
PR:
1999-05-09 10:16:46 +00:00
Bodo Möller
303c002898
Use "const char *" instead of "char *" for filenames passed to functions.
...
Submitted by:
Reviewed by:
PR:
1999-05-09 10:12:10 +00:00
Dr. Stephen Henson
a5ab0532ca
Various Win32 fixes. Win95 doesn't support MoveFileEx() (which was used for a
...
Win32 version of rename() ). There isn't a precise rename() equivalent under
Win95: the standard rename() complains if the destination already exists so
replaced with a combination of unlink() and MoveFile().
1999-05-08 22:46:51 +00:00
Dr. Stephen Henson
e40b7abeed
Allows PKCS#12 password to be placed on command line and add allow config
...
file name for 'ca' to come from the environment.
1999-05-08 12:59:50 +00:00
Dr. Stephen Henson
7e797a06c3
GeneralizedTime setting fixes.
1999-05-08 11:08:25 +00:00
Ulf Möller
5a9bab32b9
pass $PERL on make files.
1999-05-08 10:40:01 +00:00
Ulf Möller
0894315642
Superseded by sparcv8.S and sparcv8plus.s.
1999-05-08 10:39:15 +00:00
Ben Laurie
5b640028cb
Make -pedantic work again.
1999-05-07 15:42:23 +00:00
Bodo Möller
ce0d9f049a
Some comments.
...
Submitted by:
Reviewed by:
PR:
1999-05-06 23:36:54 +00:00
Ulf Möller
31a674d8c9
Support additional Win32 compilers.
...
Borland C submitted by: Janez Jere <jj@void.si>
1999-05-06 00:46:34 +00:00