From: Lutz Jänicke Date: Thu, 26 Jul 2001 09:03:42 +0000 (+0000) Subject: Fix problem occuring when used from OpenSSH on Solaris 8. X-Git-Tag: OpenSSL_0_9_6c~169 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=44d4b684f9c686d13cd63623317a222b4057218f;p=oweals%2Fopenssl.git Fix problem occuring when used from OpenSSH on Solaris 8. --- diff --git a/CHANGES b/CHANGES index f852e6f205..a7fa70ee56 100644 --- a/CHANGES +++ b/CHANGES @@ -4,6 +4,12 @@ Changes between 0.9.6b and 0.9.6c [XX xxx XXXX] + *) Initialize static variable in crypto/dsa/dsa_lib.c explicitely to + NULL, as at least on Solaris 8 this seems not to be done automatically + (in contradiction to the requirements of the C standard). + This made problems when used from OpenSSH. + [Lutz Jaenicke] + *) In crypto/dh/dh_key.c, change generate_key() (the default implementation of DH_generate_key()) so that a new key is generated each time DH_generate_key() is used on a DH object. diff --git a/crypto/dsa/dsa_lib.c b/crypto/dsa/dsa_lib.c index 5dfc0eea43..8920c3f75f 100644 --- a/crypto/dsa/dsa_lib.c +++ b/crypto/dsa/dsa_lib.c @@ -66,7 +66,7 @@ const char *DSA_version="DSA" OPENSSL_VERSION_PTEXT; -static DSA_METHOD *default_DSA_method; +static DSA_METHOD *default_DSA_method = NULL; static int dsa_meth_num = 0; static STACK_OF(CRYPTO_EX_DATA_FUNCS) *dsa_meth = NULL;