oweals/openssl.git
23 years agoFix to stop X509_time_adj() using GeneralizedTime.
Dr. Stephen Henson [Sat, 20 Jan 2001 13:38:45 +0000 (13:38 +0000)]
Fix to stop X509_time_adj() using GeneralizedTime.

23 years agoUpdate ocsp utility documentation.
Dr. Stephen Henson [Sat, 20 Jan 2001 01:26:28 +0000 (01:26 +0000)]
Update ocsp utility documentation.

23 years agoFixes to various ASN1_INTEGER routines for negative case.
Dr. Stephen Henson [Fri, 19 Jan 2001 14:21:48 +0000 (14:21 +0000)]
Fixes to various ASN1_INTEGER routines for negative case.

Enhance s2i_ASN1_INTEGER().

23 years agoFix openssl passwd -1
Bodo Möller [Fri, 19 Jan 2001 07:37:56 +0000 (07:37 +0000)]
Fix openssl passwd -1

23 years agoAdditional functionality in ocsp utility: print summary
Dr. Stephen Henson [Fri, 19 Jan 2001 01:32:23 +0000 (01:32 +0000)]
Additional functionality in ocsp utility: print summary
of status info. Check nonce values. Option to disable
verify. Update usage message.

Rename status to string functions and make them global.

23 years agoDon't shadow.
Dr. Stephen Henson [Thu, 18 Jan 2001 01:36:54 +0000 (01:36 +0000)]
Don't shadow.

23 years agoImplement remaining OCSP verify checks in
Dr. Stephen Henson [Thu, 18 Jan 2001 01:35:39 +0000 (01:35 +0000)]
Implement remaining OCSP verify checks in
accordance with RFC2560.

23 years agoMake the change log on the RAND_poll change a bit more explicit. Suggested by Bodo...
Richard Levitte [Wed, 17 Jan 2001 13:43:18 +0000 (13:43 +0000)]
Make the change log on the RAND_poll change a bit more explicit.  Suggested by Bodo Moeller.

23 years agoKeep up with Unix
Richard Levitte [Wed, 17 Jan 2001 01:35:35 +0000 (01:35 +0000)]
Keep up with Unix

23 years agoInitial OCSP certificate verify. Not complete,
Dr. Stephen Henson [Wed, 17 Jan 2001 01:31:34 +0000 (01:31 +0000)]
Initial OCSP certificate verify. Not complete,
it just supports a "trusted OCSP global root CA".

23 years agolink to the new manpage.
Ulf Möller [Mon, 15 Jan 2001 22:19:30 +0000 (22:19 +0000)]
link to the new manpage.

23 years agoNew '-extfile' option for 'openssl ca'.
Bodo Möller [Mon, 15 Jan 2001 11:35:24 +0000 (11:35 +0000)]
New '-extfile' option for 'openssl ca'.
This allows keeping extensions in a separate configuration file.

Submitted by: Massimiliano Pala <madwolf@comune.modena.it>

23 years agoUpdate the LHASH man page.
Geoff Thorpe [Sun, 14 Jan 2001 23:37:42 +0000 (23:37 +0000)]
Update the LHASH man page.

* Correct some prototypes and macros with respect to "const"ness.

* Add the extra macros and examples due to the lh_doall[_arg] modifications
  made recently. The existing example is also reworked for consistency.

* Rewrite, tweak, and supplement bits of the existing comments that seemed
  (IMHO) to be a little convoluted and misleading.

* Add a NOTE section that explains the use of macros and avoiding function
  casts (ie. generate a wrapper as with the macros, or prototype any
  callback functions exactly to not require casting). Also, explain the
  "const" approach taken in LHASH for the purposes of API comprehensibility
  and also application code auditing.

23 years agoChange PKCS#12 key derivation routines to cope with
Dr. Stephen Henson [Sun, 14 Jan 2001 14:07:10 +0000 (14:07 +0000)]
Change PKCS#12 key derivation routines to cope with
non null terminated passwords.

23 years agoFix warning in apps/ca.c
Dr. Stephen Henson [Sun, 14 Jan 2001 13:58:49 +0000 (13:58 +0000)]
Fix warning in apps/ca.c

23 years agoPreliminary ocsp utility documentation.
Dr. Stephen Henson [Sun, 14 Jan 2001 00:52:19 +0000 (00:52 +0000)]
Preliminary ocsp utility documentation.

Fix ocsp usage message.

23 years agoNew OCSP utility. This can generate, parse and print
Dr. Stephen Henson [Sat, 13 Jan 2001 01:48:38 +0000 (01:48 +0000)]
New OCSP utility. This can generate, parse and print
OCSP requests. It can also query reponders and parse or
print out responses.

Still needs some more work: OCSP response checks and
of course documentation.

23 years agoDisable RegQueryValueEx() call.
Bodo Möller [Fri, 12 Jan 2001 15:16:21 +0000 (15:16 +0000)]
Disable RegQueryValueEx() call.
Problem reported by "Wolfgang Marczy" <WMarczy@topcall.co.at>
in a message to openssl-dev (19 Dec 2000 13:40:51 +0100).

23 years agoNew 'openssl ca -status <serial>' and 'openssl ca -updatedb'
Bodo Möller [Fri, 12 Jan 2001 14:50:44 +0000 (14:50 +0000)]
New 'openssl ca -status <serial>' and 'openssl ca -updatedb'
commands.

Submitted by: Massimiliano Pala <madwolf@comune.modena.it>

23 years agoisspace must be used only on *unsigned* chars
Bodo Möller [Fri, 12 Jan 2001 14:45:12 +0000 (14:45 +0000)]
isspace must be used only on *unsigned* chars

23 years agonote strncpy problem
Bodo Möller [Fri, 12 Jan 2001 14:06:26 +0000 (14:06 +0000)]
note strncpy problem

23 years agoWhen we are waiting for user action, we should say this explicitly.
Bodo Möller [Fri, 12 Jan 2001 10:34:58 +0000 (10:34 +0000)]
When we are waiting for user action, we should say this explicitly.

23 years agoFix typo in OCSP ASN1 module, this caused
Dr. Stephen Henson [Thu, 11 Jan 2001 23:24:28 +0000 (23:24 +0000)]
Fix typo in OCSP ASN1 module, this caused
invalid format in OCSP request signatures.

Add spaces to OCSP HTTP header.

Change X509_NAME_set() there's no reason
why it should return an error if the
destination points to NULL... though it
should if the destination is NULL.

23 years agoRemove "AVAILABLE PATCH" that has now been applied.
Bodo Möller [Thu, 11 Jan 2001 13:33:10 +0000 (13:33 +0000)]
Remove "AVAILABLE PATCH" that has now been applied.

Move ex_data.c entry from "NEEDS PATCH" to "OPEN ISSUES".

23 years agoNew -newreq-nodes option to CA.pl.
Bodo Möller [Thu, 11 Jan 2001 13:23:19 +0000 (13:23 +0000)]
New -newreq-nodes option to CA.pl.

Submitted by: Damien Miller <djm@mindrot.org>

23 years agoAdd configuration for GNU Hurd.
Richard Levitte [Thu, 11 Jan 2001 12:58:37 +0000 (12:58 +0000)]
Add configuration for GNU Hurd.

23 years agoOCSP basic response verify. Very incomplete
Dr. Stephen Henson [Thu, 11 Jan 2001 00:52:50 +0000 (00:52 +0000)]
OCSP basic response verify. Very incomplete
but will verify the signatures on a response
and locate the signers certifcate.

Still needs to implement a proper OCSP certificate
verify.

Fix warning in RAND_egd().

23 years agoNo functional change, but slightly improved code clarity.
Bodo Möller [Wed, 10 Jan 2001 19:26:34 +0000 (19:26 +0000)]
No functional change, but slightly improved code clarity.

23 years agoAfter discussion with Richard, change the new API for extended memory
Bodo Möller [Wed, 10 Jan 2001 18:09:57 +0000 (18:09 +0000)]
After discussion with Richard, change the new API for extended memory
allocation callbacks so that it is no longer visible to applications
that these live at a different call level than conventional memory
allocation callbacks.

23 years agoIt's silly to use a different default for PERL than in the top
Bodo Möller [Wed, 10 Jan 2001 16:46:00 +0000 (16:46 +0000)]
It's silly to use a different default for PERL than in the top
Makefile.  (The default is never actually used though because
the top Makefile passes its value of PERL down to sub-Makefiles.)

23 years agoPass ${PERL} down to the Makefile in sub-directory "test" in
Bodo Möller [Wed, 10 Jan 2001 16:43:52 +0000 (16:43 +0000)]
Pass ${PERL} down to the Makefile in sub-directory "test" in
"make tests"

23 years agoUse $(PERL) in place of hard-coded perl
Bodo Möller [Wed, 10 Jan 2001 16:40:30 +0000 (16:40 +0000)]
Use $(PERL) in place of hard-coded perl

23 years agoAdd new items:
Bodo Möller [Wed, 10 Jan 2001 16:37:35 +0000 (16:37 +0000)]
Add new items:
- 0.9.6a is under development
- a couple of illegal includes of <openssl/e_os.h> should be purged
- ex_data sucks

23 years agoLast time I asked, no-one appeared to remember if these "NEEDS PATCH"
Bodo Möller [Wed, 10 Jan 2001 16:25:12 +0000 (16:25 +0000)]
Last time I asked, no-one appeared to remember if these "NEEDS PATCH"
entries are still current or what they are about:

    o  non-blocking socket on AIX
    o  $(PERL) in */Makefile.ssl

So I'll remove them for now.

23 years agomake indentation consistent
Bodo Möller [Wed, 10 Jan 2001 15:31:04 +0000 (15:31 +0000)]
make indentation consistent

23 years agoAdd SSLEAY_DIR argument code for SSLeay_version.
Bodo Möller [Wed, 10 Jan 2001 15:15:36 +0000 (15:15 +0000)]
Add SSLEAY_DIR argument code for SSLeay_version.
Add '-d' option for 'openssl version' (included in '-a').

23 years ago'char' argument to islower must be converted to 'unsigned char'
Bodo Möller [Wed, 10 Jan 2001 14:58:22 +0000 (14:58 +0000)]
'char' argument to islower must be converted to 'unsigned char'

23 years agoAdd a pointer to digest options in the description of -fingerprint.
Bodo Möller [Wed, 10 Jan 2001 14:35:20 +0000 (14:35 +0000)]
Add a pointer to digest options in the description of -fingerprint.

23 years agoFix C code generate by 'openssl dsaparam -C'.
Bodo Möller [Wed, 10 Jan 2001 14:26:32 +0000 (14:26 +0000)]
Fix C code generate by 'openssl dsaparam -C'.

23 years agoChange prototypes for new CRYPTO_..._mem_ex_functions functions so
Bodo Möller [Wed, 10 Jan 2001 14:10:17 +0000 (14:10 +0000)]
Change prototypes for new CRYPTO_..._mem_ex_functions functions so
that they match the function definitions (namely, remove file/line
parameters from free_func).

23 years agoAs response to a user request to be able to use external memory
Richard Levitte [Wed, 10 Jan 2001 13:14:58 +0000 (13:14 +0000)]
As response to a user request to be able to use external memory
handling routines that need file name and line number information,
I've added a call level to our memory handling routines to allow that
kind of hooking.

23 years agoFix uni2asc() so it can properly convert zero length
Dr. Stephen Henson [Wed, 10 Jan 2001 01:06:31 +0000 (01:06 +0000)]
Fix uni2asc() so it can properly convert zero length
unicode strings. Certain PKCS#12 files contain these
in BMPStrings and it used to crash on them.

23 years agorsa_num is not used with NO_RSA
Ulf Möller [Tue, 9 Jan 2001 21:39:16 +0000 (21:39 +0000)]
rsa_num is not used with NO_RSA

23 years agooops, void functions shouldn't try and return a value. Strangely, gcc
Geoff Thorpe [Tue, 9 Jan 2001 16:59:56 +0000 (16:59 +0000)]
oops, void functions shouldn't try and return a value. Strangely, gcc
didn't even give a warning for this yet HPUX cc considered it an error.
Reported by Lutz(@openssl.org).

23 years agoAdd automatic query of EGD sockets to RAND_poll(). The EGD sockets are
Lutz Jänicke [Tue, 9 Jan 2001 16:44:59 +0000 (16:44 +0000)]
Add automatic query of EGD sockets to RAND_poll(). The EGD sockets are
only queried when the /dev/[u]random devices did not return enough
entropy. Only the amount of entropy missing to reach the required minimum
is queried, as EGD may be drained.
Queried locations are: /etc/entropy, /var/run/egd-pool

23 years agoIt was correctly pointed out to me that my CHANGES entry was a little thin
Geoff Thorpe [Tue, 9 Jan 2001 16:39:04 +0000 (16:39 +0000)]
It was correctly pointed out to me that my CHANGES entry was a little thin
on details. :-)

23 years agoDon't cheat: when only getting several bytes from each source, n is incremented
Lutz Jänicke [Tue, 9 Jan 2001 10:58:36 +0000 (10:58 +0000)]
Don't cheat: when only getting several bytes from each source, n is incremented
correctly, but RAND_add(..,n) counts the increasing n several times.
Only RAND_add(..,n) once entropy collection is finished.

23 years agoMove all the existing function pointer casts associated with LHASH's two
Geoff Thorpe [Tue, 9 Jan 2001 00:24:38 +0000 (00:24 +0000)]
Move all the existing function pointer casts associated with LHASH's two
"doall" functions to using type-safe wrappers. As and where required, this
can be replaced by redeclaring the underlying callbacks to use the
underlying "void"-based prototypes (eg. if performance suffers from an
extra level of function invocation).

23 years agoGet rid of the function pointer casting in the debugging memory code due
Geoff Thorpe [Tue, 9 Jan 2001 00:13:25 +0000 (00:13 +0000)]
Get rid of the function pointer casting in the debugging memory code due
to LHASH usage. NB: The callback type used as been suctioned off into
crypto.h as CRYPTO_MEM_LEAK_CB to improve clarity.

23 years agoThis adds macros to implement (and/or declare) type-safe wrapper functions
Geoff Thorpe [Tue, 9 Jan 2001 00:02:09 +0000 (00:02 +0000)]
This adds macros to implement (and/or declare) type-safe wrapper functions
around the callbacks required in the LHASH code for the "doall" functions.

Also - fix the evil function pointer casting in the two lh_doall functions
by deferring to a static utility function. Previously lh_doall() was
invoking lh_doall_arg() by casting the callback to the 2-parameter
prototype and passing in a NULL argument. This appears to have been working
thus far but it's not a hot idea. If the extra level of indirection becomes
a performance hit, we can just provide two virtually identical
implementations for each variant later on.

23 years agoWhilst in the process of fixing outstanding function-pointer casts in the
Geoff Thorpe [Mon, 8 Jan 2001 22:03:27 +0000 (22:03 +0000)]
Whilst in the process of fixing outstanding function-pointer casts in the
LHASH code, this evil was uncovered. The cast was obscuring the fact that
the function was prototyped to take 2 parameters when in fact it is being
used as a callback that should take only one. Anyway, the function itself
ignores the second parameter (thankfully). A proper cure is on the way but
for now this corrects the inconsistency.

23 years agoKeep up with Unix code. It's beginning to be time to rethink the VMS
Richard Levitte [Mon, 8 Jan 2001 21:32:46 +0000 (21:32 +0000)]
Keep up with Unix code.  It's beginning to be  time to rethink the VMS
build system...

23 years agoBecause /dev/urandom has a better chance of giving us a good and
Richard Levitte [Mon, 8 Jan 2001 21:27:53 +0000 (21:27 +0000)]
Because /dev/urandom has a better chance of giving us a good and
quick answer, take that one first.

23 years agoAdd prototypes for new OCSP functions.
Dr. Stephen Henson [Mon, 8 Jan 2001 13:39:06 +0000 (13:39 +0000)]
Add prototypes for new OCSP functions.

Fix bug in OCSP_find_status().

23 years agoChange RAND_poll for Unix to try a number of devices and only read
Richard Levitte [Mon, 8 Jan 2001 10:59:26 +0000 (10:59 +0000)]
Change RAND_poll for Unix to try a number of devices and only read
them for a short period of time (actually, poll them with select(),
then read() whatever is there), which is about 10ms (hard-coded value)
each.

Separate Windows and Unixly code, and start on a VMS variant that
currently just returns 0.

23 years agoAdd set of OCSP client functions. All experimental
Dr. Stephen Henson [Mon, 8 Jan 2001 01:21:55 +0000 (01:21 +0000)]
Add set of OCSP client functions. All experimental
and subject to addition, modifcation or deletion.

Add two OCSP nonce utility functions.

Fix typo in status code name.

23 years agoKeep up with the Unixly changes.
Richard Levitte [Sun, 7 Jan 2001 18:51:28 +0000 (18:51 +0000)]
Keep up with the Unixly changes.

23 years agoModify OCSP API to more closely reflect
Dr. Stephen Henson [Fri, 5 Jan 2001 03:31:51 +0000 (03:31 +0000)]
Modify OCSP API to more closely reflect
application needs.

Add OCSP library name to error code.

23 years agoFix typo in OCSP nonce extension.
Dr. Stephen Henson [Thu, 4 Jan 2001 19:53:48 +0000 (19:53 +0000)]
Fix typo in OCSP nonce extension.

Set correct type in ASN1_STRING for
INTEGER and ENUMERATED types.

Make ASN1_INTEGER_get() and ASN1_ENUMERATED_get()
return -1 for invalid type rather than 0 (which is
often valid). -1 may also be valid but this is less
likely.

Load OCSP error strings in ERR_load_crypto_strings().

23 years agoUpdate OCSP API.
Dr. Stephen Henson [Thu, 4 Jan 2001 01:46:36 +0000 (01:46 +0000)]
Update OCSP API.

Remove extensions argument from various functions
because it is not needed with the new extension
code.

New function OCSP_cert_to_id() to convert a pair
of certificates into an OCSP_CERTID.

New simple OCSP HTTP function. This is rather primitive
but just about adequate to send OCSP requests and
parse the response.

Fix typo in CRL distribution points extension.

Fix ASN1 code so it adds a final null to constructed
strings.

23 years agoFix the S/MIME code so it now works again and
Dr. Stephen Henson [Sun, 31 Dec 2000 17:31:57 +0000 (17:31 +0000)]
Fix the S/MIME code so it now works again and
uses the new ASN1 code.

23 years agoMake the DSO code for VMS work again. First attempt.
Richard Levitte [Sun, 31 Dec 2000 01:55:46 +0000 (01:55 +0000)]
Make the DSO code for VMS work again.  First attempt.

23 years agoThe option line may start with a space, which gives an empty option.
Richard Levitte [Sun, 31 Dec 2000 01:54:18 +0000 (01:54 +0000)]
The option line may start with a space, which gives an empty option.
Make sure those are purged...

23 years agoLook for no-krb5 and add the definition of NO_KRB5 if it's there.
Richard Levitte [Sun, 31 Dec 2000 01:43:11 +0000 (01:43 +0000)]
Look for no-krb5 and add the definition of NO_KRB5 if it's there.
I've no idea were the KRB5 header files and libraries are placed on
Win32.  When there's better knowledge, we might be able to process the
other KRB5-related arguments as well...

23 years agoTemporary measure: if no KRB5 is defined, add "no-krb5" to the
Richard Levitte [Sun, 31 Dec 2000 01:41:01 +0000 (01:41 +0000)]
Temporary measure: if no KRB5 is defined, add "no-krb5" to the
options.  This is so mk1mf.pl can pick it up from Makefile.

23 years agoSince asn1.h gets included recursively from many places, the easiest
Richard Levitte [Sun, 31 Dec 2000 01:18:50 +0000 (01:18 +0000)]
Since asn1.h gets included recursively from many places, the easiest
is to have asn1.h include e_os.h and e_os2.h.  Of course, this makes
the unofficial "non-export" status of e_os.h a bit delicate...

23 years agoRewrite PKCS#12 code and remove some of the old
Dr. Stephen Henson [Sun, 31 Dec 2000 01:13:04 +0000 (01:13 +0000)]
Rewrite PKCS#12 code and remove some of the old
horrible macros.

Fix two evil ASN1 bugs. Attempt to use 'ctx' when
NULL if input is indefinite length constructed
in asn1_check_tlen() and invalid pointer to ASN1_TYPE
when reusing existing structure (this took *ages* to
find because the new PKCS#12 code triggered it).

23 years agoRemove RSAref-related things.
Richard Levitte [Sun, 31 Dec 2000 00:48:58 +0000 (00:48 +0000)]
Remove RSAref-related things.

23 years agoDocument.
Richard Levitte [Sun, 31 Dec 2000 00:26:18 +0000 (00:26 +0000)]
Document.

23 years agoIf OPENSSL_BUILD_SHLIBCRYPTO (for files that end up as libcrypto
Richard Levitte [Sun, 31 Dec 2000 00:23:17 +0000 (00:23 +0000)]
If OPENSSL_BUILD_SHLIBCRYPTO (for files that end up as libcrypto
objects) or OPENSSL_BUILD_SHLIBSSL (for files that end up as libssl
objects) is defined, redefine OPENSSL_EXTERN to be OPENSSL_EXPORT.
This is actually only important on Win32, and can safely be ignored in
all other cases, at least for now.

23 years agoDefine OPENSSL_EXPORT and OPENSSL_IMPORT and give OPENSSL_EXTERN the
Richard Levitte [Sun, 31 Dec 2000 00:15:57 +0000 (00:15 +0000)]
Define OPENSSL_EXPORT and OPENSSL_IMPORT and give OPENSSL_EXTERN the
default value OPENSSL_IMPORT.  Explain the use of all those macros.

23 years agoRemove anything connected to RSAref, since that's gone by now.
Richard Levitte [Sun, 31 Dec 2000 00:06:47 +0000 (00:06 +0000)]
Remove anything connected to RSAref, since that's gone by now.
Add the C macros OPENSSL_BUILD_SHLIBCRYPTO and OPENSSL_BUILD_SHLIBSSL
to the build of the object files as appropriate for each library.

23 years agoUhmm, the keyword TRUE does not exist of course...
Richard Levitte [Sun, 31 Dec 2000 00:00:02 +0000 (00:00 +0000)]
Uhmm, the keyword TRUE does not exist of course...

23 years agoDelete PKCS#12 redundant files.
Dr. Stephen Henson [Sat, 30 Dec 2000 12:26:33 +0000 (12:26 +0000)]
Delete PKCS#12 redundant files.

23 years agoASN1_ITEM versions of ASN1_d2i_{fp, bio} and replacement of
Dr. Stephen Henson [Sat, 30 Dec 2000 02:40:26 +0000 (02:40 +0000)]
ASN1_ITEM versions of ASN1_d2i_{fp, bio} and replacement of
most of the old wrappers. A few of the old versions remain
because they are non standard and the corresponding ASN1
code has not been reimplemented yet.

23 years agoReplace the old ASN1_dup() with ASN1_item_dup() and
Dr. Stephen Henson [Fri, 29 Dec 2000 18:23:55 +0000 (18:23 +0000)]
Replace the old ASN1_dup() with ASN1_item_dup() and
zap some evil function pointers casts along the way...

23 years agoCheck for deselection of KRB5. In fact, skip it completely on VMS for now...
Richard Levitte [Fri, 29 Dec 2000 01:54:14 +0000 (01:54 +0000)]
Check for deselection of KRB5.  In fact, skip it completely on VMS for now...

23 years agoCorrect a typo.
Richard Levitte [Fri, 29 Dec 2000 01:41:37 +0000 (01:41 +0000)]
Correct a typo.

23 years ago"make update" plus a rewrite of both .num files.
Richard Levitte [Fri, 29 Dec 2000 00:19:12 +0000 (00:19 +0000)]
"make update" plus a rewrite of both .num files.

23 years agoEnhancements to mkdef.pl:
Richard Levitte [Fri, 29 Dec 2000 00:05:14 +0000 (00:05 +0000)]
Enhancements to mkdef.pl:

* detect "unknown" algorithms (any C macro starting with NO_ that is
  not explicitely mentioned in mkdef.pl as a known algorithm) and
  report.
* add a number of algorithms that can be deselected.
* look in ssl/kssl.h as well.
* accept multiple whitespace (not just one SPC) in preprocessor lines.

23 years agoASN1_ITEM version of ASN1_dup(). Might want
Dr. Stephen Henson [Thu, 28 Dec 2000 22:41:46 +0000 (22:41 +0000)]
ASN1_ITEM version of ASN1_dup(). Might want
something more efficient later...

23 years agoUpdate VMS build procedures to match the current status.
Richard Levitte [Thu, 28 Dec 2000 22:26:11 +0000 (22:26 +0000)]
Update VMS build procedures to match the current status.

23 years agoAdd NO_ASN1_OLD to remove some old style functions:
Dr. Stephen Henson [Thu, 28 Dec 2000 22:24:50 +0000 (22:24 +0000)]
Add NO_ASN1_OLD to remove some old style functions:
currently OpenSSL itself wont compile with this set
because some old style stuff remains.

Change old functions X509_sign(), X509_verify() etc
to use new item based functions.

Replace OCSP function declarations with DECLARE macros.

23 years agoASN1_ITEM versions of sign, verify, pack and unpack.
Dr. Stephen Henson [Thu, 28 Dec 2000 19:18:48 +0000 (19:18 +0000)]
ASN1_ITEM versions of sign, verify, pack and unpack.

The old function pointer versions will eventually go
away.

23 years agoNew OCSP extension functions.
Dr. Stephen Henson [Thu, 28 Dec 2000 01:05:05 +0000 (01:05 +0000)]
New OCSP extension functions.

23 years agoGet rid of unused error code.
Bodo Möller [Wed, 27 Dec 2000 23:42:20 +0000 (23:42 +0000)]
Get rid of unused error code.

23 years agoAvoid compiler warnings in hw_ubsec.c: unused static
Dr. Stephen Henson [Wed, 27 Dec 2000 19:20:14 +0000 (19:20 +0000)]
Avoid compiler warnings in hw_ubsec.c: unused static
functions and signed/unsigned mismatch.

This will of course change if some of the unused functions
suddenly get used...

23 years agoX509V3_add_i2d() needs to be able to allocate a
Dr. Stephen Henson [Wed, 27 Dec 2000 13:42:43 +0000 (13:42 +0000)]
X509V3_add_i2d() needs to be able to allocate a
STACK_OF(X509_EXTENSION) so it should be passed
STACK_OF(X509_EXTENSION) ** in the first argument.

Modify wrappers appropriately.

23 years agoFinish SSL_peek/SSL_pending fixes.
Bodo Möller [Tue, 26 Dec 2000 12:07:23 +0000 (12:07 +0000)]
Finish SSL_peek/SSL_pending fixes.

23 years agoFix SSL_peek and SSL_pending.
Bodo Möller [Mon, 25 Dec 2000 18:40:46 +0000 (18:40 +0000)]
Fix SSL_peek and SSL_pending.

23 years agoNew function X509V3_add_i2d() this is used for
Dr. Stephen Henson [Sun, 24 Dec 2000 18:02:33 +0000 (18:02 +0000)]
New function X509V3_add_i2d() this is used for
encoding, replacing and deleting extensions.

Fix X509V3_get_d2i() so it uses takes note of
new critical behaviour.

23 years agoRe-order the options in tunala and add command switches like s_server for
Geoff Thorpe [Thu, 21 Dec 2000 02:49:13 +0000 (02:49 +0000)]
Re-order the options in tunala and add command switches like s_server for
disabling different SSL/TLS protocol versions.

23 years agoVarious Win32 related fixes. Doesn't compile yet on
Dr. Stephen Henson [Thu, 21 Dec 2000 01:38:55 +0000 (01:38 +0000)]
Various Win32 related fixes. Doesn't compile yet on
Win32 but it is getting there...

Update mkdef.pl to handle ASN1_ANY and fix headers.

Stop various VC++ warnings.

Include some fixes from "Peter 'Luna' Runestig"
<peter@runestig.com>

Remove external declaration for des_set_weak_key_flag:
it doesn't exist.

23 years agoThis adds support to 'tunala' for supplying DH parameters (without which it
Geoff Thorpe [Wed, 20 Dec 2000 22:14:23 +0000 (22:14 +0000)]
This adds support to 'tunala' for supplying DH parameters (without which it
will not support EDH cipher suites). The parameters can either be loaded
from a file (via "-dh_file"), generated by the application on start-up
("-dh_special generate"), or be standard DH parameters (as used in
s_server, etc).

23 years agoSome minor changes to the "tunala" demo.
Geoff Thorpe [Wed, 20 Dec 2000 19:30:19 +0000 (19:30 +0000)]
Some minor changes to the "tunala" demo.

* Seal off some buffer functions so that only the higher-level IO functions
  are exposed.

* Using the above change to buffer, add support to tunala for displaying
  traffic totals when a tunnel closes. Useful in debugging and analysis -
  you get to see the total encrypted traffic versus the total tunneled
  traffic. This shows not only how much expansion your data suffers from
  SSL (a lot if you send/receive a few bytes at a time), but also the
  overhead of SSL handshaking relative to the payload sent through the
  tunnel. This is controlled by the "-out_totals" switch to tunala.

* Fix and tweak some bits in the README.

Eg. sample output of "-out_totals" from a tunnel client when tunneling a brief
"telnet" session.

Tunnel closing, traffic stats follow
    SSL (network) traffic to/from server;     7305 bytes in,     3475 bytes out
    tunnelled data to/from server;            4295 bytes in,      186 bytes out

23 years agobranches have been merged.
Ulf Möller [Wed, 20 Dec 2000 15:42:01 +0000 (15:42 +0000)]
branches have been merged.

23 years agoStop build when an error occurs.
Ulf Möller [Wed, 20 Dec 2000 15:23:31 +0000 (15:23 +0000)]
Stop build when an error occurs.
"Peter 'Luna' Runestig" <peter+openssl-dev@runestig.com>

23 years agoDon't access non-existing element buf[256], use buf[255] instead.
Bodo Möller [Wed, 20 Dec 2000 10:11:06 +0000 (10:11 +0000)]
Don't access non-existing element buf[256], use buf[255] instead.

Submitted by: draslar <draslar@elray.ch>

23 years agoSplit a CHANGES entry so that one of the halves matches the
Bodo Möller [Wed, 20 Dec 2000 10:09:08 +0000 (10:09 +0000)]
Split a CHANGES entry so that one of the halves matches the
corresponding new entry in the OpenSSL_0_9_6-stable branch.

23 years agoFixes to OCSP print code.
Dr. Stephen Henson [Wed, 20 Dec 2000 00:46:44 +0000 (00:46 +0000)]
Fixes to OCSP print code.

Don't try to print request certificates if signature is not present.

Remove unnecessary test for certificates being NULL.

Fix typos in printed output.

Tidy up output.

Fix for typo in OCSP_SERVICELOC ASN1 template.

Also give a bit more info in CHANGES about the ASN1 revision.