From: Dr. Stephen Henson Date: Tue, 5 Mar 2002 13:48:51 +0000 (+0000) Subject: Make sure the type accessed by the LONG and ZLONG ASN1 type X-Git-Tag: OpenSSL_0_9_6d~20^2~102 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2c2f9e2cc32b8970f5839c51038572926b4a096f;p=oweals%2Fopenssl.git 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). --- diff --git a/crypto/dh/dh.h b/crypto/dh/dh.h index 1152fbb2d3..9bc1d319f9 100644 --- a/crypto/dh/dh.h +++ b/crypto/dh/dh.h @@ -101,7 +101,7 @@ struct dh_st int version; BIGNUM *p; BIGNUM *g; - int length; /* optional */ + long length; /* optional */ BIGNUM *pub_key; /* g^x */ BIGNUM *priv_key; /* x */ diff --git a/crypto/dsa/dsa.h b/crypto/dsa/dsa.h index 377a76799b..1ddc37f9fb 100644 --- a/crypto/dsa/dsa.h +++ b/crypto/dsa/dsa.h @@ -117,7 +117,7 @@ struct dsa_st /* This first variable is used to pick up errors where * a DSA is passed instead of of a EVP_PKEY */ int pad; - int version; + long version; int write_params; BIGNUM *p; BIGNUM *q; /* == 20 */