On Tue, Jul 10, 2001 at 11:38:10AM +0200, Martin Sj�gren wrote:
> Hi
>
> I have a question about passphrase callbacks. They should have the type
> pem_password_cb, which according to pem.h is
>
> typedef int pem_password_cb(char *buf, int size, int rwflag, void
> *userdata);
>
> What does the 'rwflag' argument stand for and how is it used in the
> callback? I DID try to RTFM this time, but I didn't find anything. I may
> just be stupid, in any case I'm grateful for pointers.
Of course you did read
man SSL_CTX_set_default_passwd_cb
.................................... B<rwflag> indicates whether the
callback is used for reading/decryption (rwflag=0) or writing/encryption
(rwflag=1).
Best regards,
Lutz
--
Lutz Jaenicke [EMAIL PROTECTED]
BTU Cottbus http://www.aet.TU-Cottbus.DE/personen/jaenicke/
Lehrstuhl Allgemeine Elektrotechnik Tel. +49 355 69-4129
Universitaetsplatz 3-4, D-03044 Cottbus Fax. +49 355 69-4153
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]