BIO_C_GET_SOCK_TYPE
case BIO_C_GET_SOCK_TYPE:
#define BIO_get_sock_type(b) BIO_ctrl(b, BIO_C_GET_SOCK_TYPE, 0, NULL)