> > Hello,
> > I've problems with:
> >       int pem_password_cb(char *buf, int size, int rwflag)
> > none of arguments allow examine for which certificate is need this
> > password.
> ..
> > Is here any way how solving this?
> 
> You might want to use global variables to guess which private key's
> password to supply
Yes, before calling PEM_read_*() I can set global variable to point
to class which is calling it, but at time when user is entering
password, can arive new conection ... and my program should need
to prompt for other password. 

What to do in this case? Wait until global variable is NULL?

This solution is posible, of course, but isn't elegant. And should
cause problems - dead lock. 

Vadim thanks for response 
-- 
                            Jan Tomasek,          student FEL-CVUT
                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                            e-mail: [EMAIL PROTECTED]
                            www: http://mujweb.cz/web/tomasek/   
                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~H~

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

Reply via email to