diff options
author | Richard Levitte <levitte@openssl.org> | 2017-04-05 13:24:14 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2017-04-10 12:11:00 +0200 |
commit | 6a32a3c058dbd9fa7cec5b020e4f027808972e4a (patch) | |
tree | 3b6866f56415b00da3c056243607c29b32965568 /crypto/dh | |
parent | 31ae516116343defd39d5b5ee800fa25eeab7638 (diff) |
Act on deprecation of LONG and ZLONG, step 2
Replace all remaining uses of LONG and ZLONG with INT32 / ZINT32.
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3126)
Diffstat (limited to 'crypto/dh')
-rw-r--r-- | crypto/dh/dh_asn1.c | 2 | ||||
-rw-r--r-- | crypto/dh/dh_locl.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/crypto/dh/dh_asn1.c b/crypto/dh/dh_asn1.c index 7c72fd64e5..f65d065585 100644 --- a/crypto/dh/dh_asn1.c +++ b/crypto/dh/dh_asn1.c @@ -34,7 +34,7 @@ static int dh_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, ASN1_SEQUENCE_cb(DHparams, dh_cb) = { ASN1_SIMPLE(DH, p, BIGNUM), ASN1_SIMPLE(DH, g, BIGNUM), - ASN1_OPT(DH, length, ZLONG), + ASN1_OPT(DH, length, ZINT32), } ASN1_SEQUENCE_END_cb(DH, DHparams) IMPLEMENT_ASN1_ENCODE_FUNCTIONS_const_fname(DH, DHparams, DHparams) diff --git a/crypto/dh/dh_locl.h b/crypto/dh/dh_locl.h index 6867555c4a..0a8391a6c0 100644 --- a/crypto/dh/dh_locl.h +++ b/crypto/dh/dh_locl.h @@ -19,7 +19,7 @@ struct dh_st { int version; BIGNUM *p; BIGNUM *g; - long length; /* optional */ + int32_t length; /* optional */ BIGNUM *pub_key; /* g^x % p */ BIGNUM *priv_key; /* x */ int flags; |