X-Git-Url: https://git.openssl.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Fopenssl%2Fmdc2.h;h=229b1227192dec3e0e9a50ef5f7c53d9d762e74b;hb=3c27208fab1dc29f47f088490404df5abfcdfb05;hp=c2438c885deaa69aeb20b603897195d3af44d24a;hpb=dee502be89e78e2979e3bd1d7724cf79daa6ef61;p=openssl.git diff --git a/include/openssl/mdc2.h b/include/openssl/mdc2.h index c2438c885d..229b122719 100644 --- a/include/openssl/mdc2.h +++ b/include/openssl/mdc2.h @@ -1,4 +1,3 @@ -/* crypto/mdc2/mdc2.h */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -59,14 +58,12 @@ #ifndef HEADER_MDC2_H # define HEADER_MDC2_H -# include +# include -#ifdef __cplusplus +#ifndef OPENSSL_NO_MDC2 +# include +# ifdef __cplusplus extern "C" { -#endif - -# ifdef OPENSSL_NO_MDC2 -# error MDC2 is disabled. # endif # define MDC2_BLOCK 8 @@ -84,8 +81,9 @@ int MDC2_Update(MDC2_CTX *c, const unsigned char *data, size_t len); int MDC2_Final(unsigned char *md, MDC2_CTX *c); unsigned char *MDC2(const unsigned char *d, size_t n, unsigned char *md); -#ifdef __cplusplus +# ifdef __cplusplus } -#endif +# endif +# endif #endif