From b84e12266f85156f58804ff94ea110890f13b52d Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Thu, 16 Jun 2016 10:07:32 +0100 Subject: Fix the build and tests following constification of DH, DSA, RSA Misc fixes following the constification of the DH, DSA and RSA getters. Reviewed-by: Stephen Henson --- crypto/dsa/dsa_lib.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crypto/dsa/dsa_lib.c') diff --git a/crypto/dsa/dsa_lib.c b/crypto/dsa/dsa_lib.c index 8146330a54..9c001d7b1b 100644 --- a/crypto/dsa/dsa_lib.c +++ b/crypto/dsa/dsa_lib.c @@ -269,9 +269,9 @@ int DSA_set0_pqg(DSA *d, BIGNUM *p, BIGNUM *q, BIGNUM *g) /* If the fields p, q and g in d are NULL, the corresponding input * parameters MUST be non-NULL. */ - if (d->p == NULL && p == NULL - || d->q == NULL && q == NULL - || d->g == NULL && g == NULL) + if ((d->p == NULL && p == NULL) + || (d->q == NULL && q == NULL) + || (d->g == NULL && g == NULL)) return 0; if (p != NULL) { -- cgit v1.2.3