From 65167dba890b2e92821ee3b90e8f7f46fa30f9c1 Mon Sep 17 00:00:00 2001 From: Pauli Date: Thu, 9 Jan 2020 08:20:30 +1000 Subject: [PATCH] ripemd: fix preprocessor indentation Reviewed-by: Matt Caswell Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/10789) --- include/openssl/ripemd.h | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/include/openssl/ripemd.h b/include/openssl/ripemd.h index 3db616d186..27e977997b 100644 --- a/include/openssl/ripemd.h +++ b/include/openssl/ripemd.h @@ -18,18 +18,18 @@ # include -#ifndef OPENSSL_NO_RMD160 -# include -# include -# ifdef __cplusplus +# ifndef OPENSSL_NO_RMD160 +# include +# include +# ifdef __cplusplus extern "C" { -# endif +# endif -# define RIPEMD160_LONG unsigned int +# define RIPEMD160_LONG unsigned int -# define RIPEMD160_CBLOCK 64 -# define RIPEMD160_LBLOCK (RIPEMD160_CBLOCK/4) -# define RIPEMD160_DIGEST_LENGTH 20 +# define RIPEMD160_CBLOCK 64 +# define RIPEMD160_LBLOCK (RIPEMD160_CBLOCK/4) +# define RIPEMD160_DIGEST_LENGTH 20 typedef struct RIPEMD160state_st { RIPEMD160_LONG A, B, C, D, E; @@ -44,10 +44,8 @@ int RIPEMD160_Final(unsigned char *md, RIPEMD160_CTX *c); unsigned char *RIPEMD160(const unsigned char *d, size_t n, unsigned char *md); void RIPEMD160_Transform(RIPEMD160_CTX *c, const unsigned char *b); -# ifdef __cplusplus +# ifdef __cplusplus } +# endif # endif -# endif - - #endif -- 2.25.1