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)
committerBenjamin Kaduk <kaduk@mit.edu>
Wed, 24 Jan 2018 18:45:36 +0000 (12:45 -0600)
commit78d0afaa69c2ec662f6c97b47473c2c6a69d636c
treeafc63e9991558054b1154feb95dfe108f8cda0e2
parente23ac62594e85296cb90f70480d156f73207218e
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)
include/openssl/ssl.h