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).
This commit is contained in:
Dr. Stephen Henson 2002-03-05 13:48:51 +00:00
parent 2d9b1b3ffa
commit 2c2f9e2cc3
2 changed files with 2 additions and 2 deletions

View file

@ -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 */

View file

@ -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 */