]> granicus.if.org Git - openssl/commit
Move definition of INTxx_MIN et al to internal header
authorRichard Levitte <levitte@openssl.org>
Thu, 14 May 2015 06:44:06 +0000 (08:44 +0200)
committerRichard Levitte <levitte@openssl.org>
Thu, 14 May 2015 10:22:18 +0000 (12:22 +0200)
commit167f6c93b00e1184b89d6a5c7a1ed22dbab03c68
treeb56b466028fd9516556020f3095f7f848707eb4f
parent1c7b2c0ed5d02d0d60179e0df0c49ef3f659fa77
Move definition of INTxx_MIN et al to internal header

Having the INTxx_MIN et al macros defined in a public header is
unnecessary and risky.  Also, it wasn't done for all platforms that
might need it.

So we move those numbers to an internal header file, do the math
ourselves and make sure to account for the integer representations we
know of.

This introduces include/internal, which is unproblematic since we
already use -I$(TOP)/include everywhere.  This directory is different
from crypto/include/internal, as the former is more general internal
headers for all of OpenSSL, while the latter is for libcrypto only.

Reviewed-by: Matt Caswell <matt@openssl.org>
include/internal/numbers.h [new file with mode: 0644]
include/openssl/e_os2.h