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

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

index 1152fbb2d3c6390bef681b628d081c72da2bd10f..9bc1d319f9018f84c5db0c76c8779515541425fa 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 377a76799be18648bfc4210e575e0f5f7094fbae..1ddc37f9fb9737198b013e69933a44176c9afc95 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 */