Fix SSL_CTX_get_{min,max}_proto_version integer conversion warning
authorSteffan Karger <steffan.karger@fox-it.com>
Wed, 17 Jan 2018 16:06:41 +0000 (17:06 +0100)
committerBen Kaduk <kaduk@mit.edu>
Wed, 24 Jan 2018 19:07:27 +0000 (13:07 -0600)
commitb52566f09bb21c00f85ebd6388a468bbff0c4a03
tree251ae833a64cb2ab0ba1bb7553afe73c96c11f42
parent9716b1234b40c5d36be46465567ea060e09d30d6
Fix SSL_CTX_get_{min,max}_proto_version integer conversion warning

When using the SSL_CTX_get_min_min_version macro while compiling with
-Wall, my compiler rightfully complains about this construction:

warning: passing argument 3 of ‘SSL_CTX_ctrl’ makes integer from
pointer without a cast [-Wint-conversion]

These macro's should use 0, instead of NULL, for the third argument,
like most other SSL_CTX_ctrl 'get' wrappers do.

CLA: trivial
Signed-off-by: Steffan Karger <steffan.karger@fox-it.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Kurt Roeckx <kurt@roeckx.be>
Reviewed-by: Ben Kaduk <kaduk@mit.edu>
(Merged from https://github.com/openssl/openssl/pull/5099)

(cherry picked from commit 78d0afaa69c2ec662f6c97b47473c2c6a69d636c)
include/openssl/ssl.h