SIZE_MAX doesn't exist everywhere, supply an alternative
authorRichard Levitte <levitte@openssl.org>
Wed, 30 Dec 2015 13:56:59 +0000 (14:56 +0100)
committerRichard Levitte <levitte@openssl.org>
Wed, 30 Dec 2015 13:56:59 +0000 (14:56 +0100)
commit36830ecac7a5ff1935e465d6e95f32d72e614a56
treee09f9c2b4aaaa289a44dccaa0321bf684086262b
parent3dc9589cc84735a8478b34a121e648d1cadfb715
SIZE_MAX doesn't exist everywhere, supply an alternative

SIZE_MAX is a great macro, and does unfortunately not exist everywhere.
Since we check against half of it, using bitwise shift to calculate the
value of half SIZE_MAX should be safe enough.

Reviewed-by: Tim Hudson <tjh@openssl.org>
ssl/packet_locl.h