> Can we set additional parameters into SSL_set_info_callback?

No.  But you can add your own "exdata" to the SSL structure.
Many major SSL objects have an exdata (extra data) field, that is
an array of void*'s.  First, you write a function to get your own
unique index:

        int get_my_index(void)
        {
            static int i = -1;

            if (i < 0)
              i = SSL_get_ex_new_index(0,
                          (void*)"Description of this index",
                          NULL, NULL, NULL);
            return i;
        }

Then you can do
        SSL_set_ex_data(ssl, get_my_index(), (void*)fdlist);
and
        int *fdlist = (int*)SSL_get_ex_data(ssl, get_my_index());

Make sure you keep track of ownership, etc.
        /r$

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to