I have also defined an object model and the workaround to this problem is like this.
I made a static list of class pointers, thus whenever an object is formed it is put into that list.
Now in the callback i had the ssl pointe (SSL*) with me and every class had the ssl pointer. I simply compared and found the exact class. you can also define a map(std::map<SSL*, CSSLClass>).
Regards, Ahmad.
From: Tyler Durden <[EMAIL PROTECTED]> Reply-To: openssl-users@openssl.org To: openssl-users@openssl.org Subject: Callback function in c++ methods Date: Wed, 11 May 2005 13:23:04 +0200
Hello,
I am implementing an object model for secure communications and secure sessions gestor. I am using the openSSL library for this task. My problem is when I define the callback functions for external SSL sessions, the callback functions cannot methods of a class if these are not static, but I cannot define these static because some attributs of the class are not static and either know how I can pass the "this" if I define the callback function static.
Somebody has some idea?
Thank you very much! ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]
_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar - get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]