From b0fc31b390b1e189e8b86a66f3e46b0de1bd3d58 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Tue, 19 Nov 2002 10:23:29 +0000 Subject: [PATCH] Recent changes from 0.9.6-stable. --- CHANGES | 6 ++++++ NEWS | 14 ++++++++++++++ crypto/mem_dbg.c | 18 +++++++++++++++--- crypto/x509/x509_vfy.c | 2 +- util/mkcerts.sh | 6 +++--- 5 files changed, 39 insertions(+), 7 deletions(-) diff --git a/CHANGES b/CHANGES index 7fca062af0..635262aff6 100644 --- a/CHANGES +++ b/CHANGES @@ -8,6 +8,12 @@ length of the REQUEST-CERTIFICATE message is 18 .. 34, not 17 .. 33. [Zeev Lieber ] + *) Undo an undocumented change introduced in 0.9.6e which caused + repeated calls to OpenSSL_add_all_ciphers() and + OpenSSL_add_all_digests() to be ignored, even after calling + EVP_cleanup(). + [Richard Levitte] + *) Change the default configuration reader to deal with last line not being properly terminated. [Richard Levitte] diff --git a/NEWS b/NEWS index 577db09cff..5a403be9f0 100644 --- a/NEWS +++ b/NEWS @@ -5,6 +5,20 @@ This file gives a brief overview of the major changes between each OpenSSL release. For more details please read the CHANGES file. + Major changes between OpenSSL 0.9.6g and OpenSSL 0.9.6h: + + o New configuration targets for Tandem OSS and A/UX. + o New OIDs for Microsoft attributes. + o Better handling of SSL session caching. + o Better comparison of distinguished names. + o Better handling of shared libraries in a mixed GNU/non-GNU environment. + o Support assembler code with Borland C. + o Fixes for length problems. + o Fixes for uninitialised variables. + o Fixes for memory leaks, some unusual crashes and some race conditions. + o Fixes for smaller building problems. + o Updates of manuals, FAQ and other instructive documents. + Major changes between OpenSSL 0.9.6f and OpenSSL 0.9.6g: o Important building fixes on Unix. diff --git a/crypto/mem_dbg.c b/crypto/mem_dbg.c index ef19d8f844..5d3547790f 100644 --- a/crypto/mem_dbg.c +++ b/crypto/mem_dbg.c @@ -102,6 +102,8 @@ typedef struct app_mem_info_st int references; } APP_INFO; +static void app_info_free(APP_INFO *); + static LHASH *amih=NULL; /* hash-table with those app_mem_info_st's * that are at the top of their thread's stack * (with `thread' as key); @@ -140,6 +142,18 @@ static unsigned long disabling_thread = 0; /* Valid iff num_disable > 0. * thread named in disabling_thread). */ +static void app_info_free(APP_INFO *inf) + { + if (--(inf->references) <= 0) + { + if (inf->next != NULL) + { + app_info_free(inf->next); + } + OPENSSL_free(inf); + } + } + int CRYPTO_mem_ctrl(int mode) { int ret=mh_mode; @@ -496,9 +510,7 @@ void CRYPTO_dbg_free(void *addr, int before_p) mp->order, mp->addr, mp->num); #endif if (mp->app_info != NULL) - { - mp->app_info->references--; - } + app_info_free(mp->app_info); OPENSSL_free(mp); } diff --git a/crypto/x509/x509_vfy.c b/crypto/x509/x509_vfy.c index 7a30092247..9ad9276ff7 100644 --- a/crypto/x509/x509_vfy.c +++ b/crypto/x509/x509_vfy.c @@ -567,7 +567,7 @@ int X509_cmp_time(ASN1_TIME *ctm, time_t *cmp_time) { char *str; ASN1_TIME atm; - time_t offset; + long offset; char buff1[24],buff2[24],*p; int i,j; diff --git a/util/mkcerts.sh b/util/mkcerts.sh index 5f8a1dae73..0184fcb70e 100755 --- a/util/mkcerts.sh +++ b/util/mkcerts.sh @@ -1,4 +1,4 @@ -#!bin/sh +#!/bin/sh # This script will re-make all the required certs. # cd apps @@ -12,8 +12,8 @@ # CAbits=1024 -SSLEAY="../apps/ssleay" -CONF="-config ../apps/ssleay.cnf" +SSLEAY="../apps/openssl" +CONF="-config ../apps/openssl.cnf" # create pca request. echo creating $CAbits bit PCA cert request -- 2.25.1