X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=include%2Fopenssl%2Fopensslv.h;h=3de3776b7d39075dfb98b00d39490a966a31235a;hp=1abd522b7b5fb1a2dbe44896d7955a16cd268c3e;hb=6941960602658a52742786978fe8e677548f89bf;hpb=81dd99902869c666932ece1e5a39d3b18f2f4b04 diff --git a/include/openssl/opensslv.h b/include/openssl/opensslv.h index 1abd522b7b..3de3776b7d 100644 --- a/include/openssl/opensslv.h +++ b/include/openssl/opensslv.h @@ -1,5 +1,5 @@ /* - * Copyright 1999-2016 The OpenSSL Project Authors. All Rights Reserved. + * Copyright 1999-2018 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy @@ -39,12 +39,13 @@ extern "C" { * (Prior to 0.9.5a beta1, a different scheme was used: MMNNFFRBB for * major minor fix final patch/beta) */ -# define OPENSSL_VERSION_NUMBER 0x10100007L -# ifdef OPENSSL_FIPS -# define OPENSSL_VERSION_TEXT "OpenSSL 1.1.0-pre7-fips-dev xx XXX xxxx" -# else -# define OPENSSL_VERSION_TEXT "OpenSSL 1.1.0-pre7-dev xx XXX xxxx" -# endif +# define OPENSSL_VERSION_NUMBER 0x10101002L +# define OPENSSL_VERSION_TEXT "OpenSSL 1.1.1-pre2 (alpha) 27 Feb 2018" + +#define OPENSSL_MAKE_VERSION(maj,min,fix,patch) ((0x10000000L)+((maj&0xff)<<20)+((min&0xff)<<12)+((fix&0xff)<<4)+patch) + +/* use this for #if tests, should never depend upon fix/patch */ +#define OPENSSL_VERSION_AT_LEAST(maj,min) (OPENSSL_MAKE_VERSION(maj,min, 0, 0) >= OPENSSL_VERSION_NUMBER) /*- * The macros below are to be used for shared library (.so, .dll, ...)