Skip to content
Snippets Groups Projects
Commit c0fc27f8 authored by Matt Caswell's avatar Matt Caswell
Browse files

Made it an error to define OPENSSL_USE_DEPRECATED if OpenSSL has been built

with OPENSSL_NO_DEPRECATED defined

Reviewed-by: default avatarRich Salz <rsalz@openssl.org>
parent bd2bd374
No related branches found
No related tags found
No related merge requests found
......@@ -1419,8 +1419,11 @@ if ($zlib)
}
}
#Always build the library with OPENSSL_USE_DEPRECATED. This is overridden by OPENSSL_NO_DEPRECATED
$cflags = "-DOPENSSL_USE_DEPRECATED $cflags";
#Build the library with OPENSSL_USE_DEPRECATED if deprecation is not disabled
if(!defined($disabled{"deprecated"}))
{
$cflags = "-DOPENSSL_USE_DEPRECATED $cflags";
}
# You will find shlib_mark1 and shlib_mark2 explained in Makefile.org
my $shared_mark = "";
......
......@@ -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 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment