X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=crypto%2Fopensslconf.h.in;h=4429c911aff936ad4b95975bf7c6da5877fe9856;hp=97e37455634df6559483b37601fff2f4bd9aa3bf;hb=bc3686dfb031445c5af9a256a46a57dc1277a190;hpb=4a47f5563990ceb30248d449bbac2c125980bdda diff --git a/crypto/opensslconf.h.in b/crypto/opensslconf.h.in index 97e3745563..4429c911af 100644 --- a/crypto/opensslconf.h.in +++ b/crypto/opensslconf.h.in @@ -1,5 +1,22 @@ /* crypto/opensslconf.h.in */ +/* + * Applications should use -DOPENSSL_USE_DEPRECATED to enable access to + * deprecated functions. But if the library has been built to disable + * deprecated functions then this will not work + */ +#if defined(OPENSSL_NO_DEPRECATED) && defined(OPENSSL_USE_DEPRECATED) +#error "OPENSSL_USE_DEPRECATED has been defined, but OpenSSL has been built without support for deprecated functions" +#endif + +/* Test for support for deprecated attribute */ +#if __GNUC__ > 3 || \ + (__GNUC__ == 3 && __GNUC_MINOR__ > 0) +#define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated)) +#else +#define DECLARE_DEPRECATED(f) f +#endif + /* Generate 80386 code? */ #undef I386_ONLY @@ -101,7 +118,7 @@ #endif #if defined(DES_RISC1) && defined(DES_RISC2) -YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!! +#error YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!! #endif /* Unroll the inner loop, this sometimes helps, sometimes hinders. @@ -137,8 +154,6 @@ YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!! /* Unknown */ #elif defined( __aux ) /* 68K */ /* Unknown */ -#elif defined( __dgux ) /* 88K (but P6 in latest boxes) */ -# define DES_UNROLL #elif defined( __sgi ) /* Newer MIPS */ # define DES_PTR # define DES_RISC2