Have BIO_get_conn_int_port use BIO_ctrl instead BIO_int_ctrl
authorRichard Levitte <levitte@openssl.org>
Sun, 1 Nov 2015 14:42:04 +0000 (15:42 +0100)
committerRichard Levitte <levitte@openssl.org>
Sat, 19 Dec 2015 21:10:32 +0000 (22:10 +0100)
commitf08360a16072e8bf58fd273eba41cdbc35448cbc
treebb45c0204443f86c7781a2ccecc95383ea512489
parent583f4bf7e8e83e503046b7e5a1e01b48e64bce54
Have BIO_get_conn_int_port use BIO_ctrl instead BIO_int_ctrl

BIO_int_ctrl isn't made for the purpose BIO_get_conn_int_port used it
for.

This also changes BIO_C_GET_CONNECT to actually return the port
instead of assigning it to a pointer that was never returned back to
the caller.

Reviewed-by: Rich Salz <rsalz@openssl.org>
(cherry picked from commit 2a60fccdd9b696e01fddaa268e92ea210beb0e8f)
crypto/bio/bio.h
crypto/bio/bss_conn.c