On Thu, 2009-04-23 at 14:20 +0200, David Woodhouse via RT wrote: > I use the OpenSSL 'UI' abstraction to call back into a GTK+ program and > handle user interaction that way. > > When asked for a passphrase for a certificate, there is a minimum length > of 4 characters (MIN_LENGTH). But although that information ought to be > conveyed to the UI code through UI_get_result_minsize(), that doesn't > seem to be done correctly. > > So when I enter a passphrase which is too short, we just get a line of > output to stderr (of our GUI program) followed by another request for > the passphrase. This is suboptimal, so this patch provides > EVP_read_pw_string_min() and makes PEM_default_callback() use it. I > didn't just add the extra argument to EVP_read_pw_string() because that > has quite far-reaching effects. > > Now my GUI program doesn't show me the 'OK' button until I've managed to > bash out enough characters on the keyboard. > > Patch applies to both 0.9.8 branch and HEAD/1.0.0.
Ping? -- dwmw2 ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [email protected] Automated List Manager [email protected]
