Hi all,
I'm currently working on an implementation of a program using openssl. In
this program it would be extremely usefull if I could pass data to the
callback-functions in the way, for example, the thread call-back method is
done (or x-event-methods, ...). The password method would look like:
struct myData {
// ...
};
static int __supply_passwd(char *buf, int len, int WhatIsThis, void *data) {
struct myData *md = (myData *) data;
// ...
}
int main() {
myData *d = new myData;
SSL_CTX_set_default_passwd_cb(m_ctx, &__supply_passwd, (void *) d);
// ...
return 0;
}
With the current situation it is, according to me, impossible to do this. Or
am I wrong? If not is it an option for future releases ??
Thanx ahead,
Richard.
Richard Scheltema
Office: Pav B140
Phone: 050 58 22627
E-Mail: [EMAIL PROTECTED]
ICQ: 33536971 (Daryll-Ann)
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]