Make sure the type accessed by the LONG and ZLONG ASN1 type
authorDr. Stephen Henson <steve@openssl.org>
Tue, 5 Mar 2002 13:48:51 +0000 (13:48 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Tue, 5 Mar 2002 13:48:51 +0000 (13:48 +0000)
is really a long, to avoid problems on platforms where
sizeof(int) != sizeof(long).

crypto/dh/dh.h
crypto/dsa/dsa.h

index 1152fbb..9bc1d31 100644 (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 */
 
index 377a767..1ddc37f 100644 (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 */