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/dh/dh_lib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crypto/dh') diff --git a/crypto/dh/dh_lib.c b/crypto/dh/dh_lib.c index 56f9db6769..adf1771514 100644 --- a/crypto/dh/dh_lib.c +++ b/crypto/dh/dh_lib.c @@ -199,8 +199,8 @@ int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g) /* If the fields p and g in d are NULL, the corresponding input * parameters MUST be non-NULL. q may remain NULL. */ - if (dh->p == NULL && p == NULL - || dh->g == NULL && g == NULL) + if ((dh->p == NULL && p == NULL) + || (dh->g == NULL && g == NULL)) return 0; if (p != NULL) { -- cgit v1.2.3