Made it an error to define OPENSSL_USE_DEPRECATED if OpenSSL has been built
[openssl.git] / crypto / opensslconf.h.in
index 31a01c1c8bd0a2b5c902130d0e7d8ffd717f820f..faa33a496d3b4c557c3163848c68716204e54828 100644 (file)
@@ -6,7 +6,7 @@
  * deprecated functions then this will not work
  */
 #if defined(OPENSSL_NO_DEPRECATED) && defined(OPENSSL_USE_DEPRECATED)
-#undef 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 */