From: Martin Sj�gren <[EMAIL PROTECTED]>
martin> typedef int pem_password_cb(char *buf, int size, int rwflag, void
martin> *userdata);
martin>
martin> What does the 'rwflag' argument stand for and how is it used
martin> in the callback? I DID try to RTFM this time, but I didn't
martin> find anything. I may just be stupid, in any case I'm grateful
martin> for pointers.
To begin with, "rwflag" is incorrect as a name. It should really be
called "verify" or something like that.. The semantics are the following:
0 Means the callback should only prompt for the password
once.
1 Means the callback should prompt for the password
twice and verify that both answers are the same.
Any value other than 0 or 1 is undefined, but *currently* behaves like
1 in the default password callback.
--
Richard Levitte \ Spannv�gen 38, II \ [EMAIL PROTECTED]
Redakteur@Stacken \ S-168 35 BROMMA \ T: +46-8-26 52 47
\ SWEDEN \ or +46-709-50 36 10
Procurator Odiosus Ex Infernis -- [EMAIL PROTECTED]
Member of the OpenSSL development team: http://www.openssl.org/
Software Engineer, GemPlus: http://www.gemplus.com/
Unsolicited commercial email is subject to an archival fee of $400.
See <http://www.stacken.kth.se/~levitte/mail/> for more info.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]