Fix signature of min/max proto getter
authorChristian Heimes <christian@python.org>
Sun, 21 Jan 2018 09:37:59 +0000 (10:37 +0100)
committerBen Kaduk <kaduk@mit.edu>
Wed, 24 Jan 2018 19:07:27 +0000 (13:07 -0600)
commit77882a94ee69a613c3b62ae9b5d0de0ed53799e8
tree0b0b03df0c82e4f1410158df2ffcd084f375cae5
parentb52566f09bb21c00f85ebd6388a468bbff0c4a03
Fix signature of min/max proto getter

The getters for min and max proto version wrongly passed NULL instead of
0 as third argument to SSL_ctrl() and SSL_CTX_ctrl(). The third argument
is not used, but the error results in a compiler warning:

warning: passing argument 3 of ‘SSL_CTX_ctrl’ makes integer from pointer without a cast [-Wint-conversion]
int v = SSL_CTX_get_max_proto_version(self->ctx);

See https://github.com/openssl/openssl/pull/4364

Signed-off-by: Christian Heimes <christian@python.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Kurt Roeckx <kurt@roeckx.be>
Reviewed-by: Ben Kaduk <kaduk@mit.edu>
(Merged from https://github.com/openssl/openssl/pull/5128)

(cherry picked from commit 1f82eba718f758757a439e717ea7a5aa8be55f8d)
include/openssl/ssl.h