Fix OPENSSL_INIT flags to avoid a clash.
authorMatt Caswell <matt@openssl.org>
Mon, 29 Feb 2016 16:14:00 +0000 (16:14 +0000)
committerMatt Caswell <matt@openssl.org>
Mon, 7 Mar 2016 13:36:17 +0000 (13:36 +0000)
The 0x00010000L OPENSSL_INIT flag appeared twice.

Reviewed-by: Richard Levitte <levitte@openssl.org>
crypto/include/internal/cryptlib_int.h
include/openssl/crypto.h

index 0e457623ff60147be1817f2646dbc484979156fd..ae30842d6de132ff2041b8da66fbd8b46279d204 100644 (file)
@@ -70,7 +70,7 @@ int ossl_init_thread_start(uint64_t opts);
  * are those ommitted from crypto.h because they are "reserverd for internal
  * use".
  */
-# define OPENSSL_INIT_ZLIB                   0x010000
+# define OPENSSL_INIT_ZLIB                   0x00010000L
 
 /* OPENSSL_INIT_THREAD flags */
 # define OPENSSL_INIT_THREAD_ASYNC           0x01
index 24e924566339258c129bb122d5b84df9b510e2da..d52c14c379b66fa81e05a4930348bf4bb0f6af2c 100644 (file)
@@ -546,8 +546,8 @@ int CRYPTO_memcmp(const volatile void * volatile in_a,
 # define OPENSSL_INIT_ENGINE_CAPI            0x00002000L
 # define OPENSSL_INIT_ENGINE_PADLOCK         0x00004000L
 # define OPENSSL_INIT_ENGINE_DASYNC          0x00008000L
-# define OPENSSL_INIT_ENGINE_AFALG           0x00010000L
 /* OPENSSL_INIT flag 0x00010000 reserved for internal use */
+# define OPENSSL_INIT_ENGINE_AFALG           0x00020000L
 /* OPENSSL_INIT flag range 0xfff00000 reserved for OPENSSL_init_ssl() */
 /* Max OPENSSL_INIT flag value is 0x80000000 */