]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
ripemd: fix preprocessor indentation
authorPauli <paul.dale@oracle.com>
Wed, 8 Jan 2020 22:20:30 +0000 (08:20 +1000)
committerPauli <paul.dale@oracle.com>
Sun, 12 Jan 2020 02:00:31 +0000 (12:00 +1000)
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/10789)

include/openssl/ripemd.h

index 3db616d186d83fb3151e8a815e1e87e06e5fa6df..27e977997bafeeb9e0981fb35e454b123b698855 100644 (file)
 
 # include <openssl/opensslconf.h>
 
-#ifndef OPENSSL_NO_RMD160
-# include <openssl/e_os2.h>
-# include <stddef.h>
-# ifdef  __cplusplus
+# ifndef OPENSSL_NO_RMD160
+#  include <openssl/e_os2.h>
+#  include <stddef.h>
+#  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