From 53a3226a2d6073ad51987356f9dae150dcb3e265 Mon Sep 17 00:00:00 2001 From: Andres Amaya Garcia Date: Wed, 7 Mar 2018 10:52:04 +0000 Subject: [PATCH] Remove uneccessary bracketing --- library/x509_ocsp.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/library/x509_ocsp.c b/library/x509_ocsp.c index fc25f9bab8..866244f668 100644 --- a/library/x509_ocsp.c +++ b/library/x509_ocsp.c @@ -1457,15 +1457,11 @@ static int x509_ocsp_is_parent_crt( /* Basic parenting skills (name, CA bit, key usage) */ if( x509_ocsp_crt_check_parent( child, parent, is_trust_ca ) != 0 ) - { return( 0 ); - } /* Signature */ if( x509_ocsp_crt_check_signature( child, parent ) != 0 ) - { return( 0 ); - } /* * Optional time check. @@ -1474,9 +1470,7 @@ static int x509_ocsp_is_parent_crt( */ if( mbedtls_x509_time_is_past( &parent->valid_to ) || mbedtls_x509_time_is_future( &parent->valid_from ) ) - { return( 0 ); - } /* Found parent of the requested certificate's status */ *is_parent = 1;