On Thursday 24 June 2004 11:03 am, Richard Levitte - VMS Whacker wrote: > In message <[EMAIL PROTECTED]> on Thu, 24 Jun 2004 > 09:43:48 -0400, Kevin Stefanik <[EMAIL PROTECTED]> said: > > kstef> On Wednesday 16 June 2004 12:46 pm, Richard Levitte - VMS Whacker > wrote: kstef> > In message <[EMAIL PROTECTED]> on Wed, 16 > Jun 2004 kstef> > 12:30:28 -0400, Kevin Stefanik <[EMAIL PROTECTED]> said: > kstef> > > kstef> > kstef> I think we can make do with a less involved fix, actually, > by kstef> > kstef> just backing out the conditional if the engine still > _requires_ kstef> > kstef> its own copy of the libcrypto code, or, > preferably, just kstef> > kstef> linking to libcrypto dynamically if the > earlier requirement no kstef> > kstef> longer holds. I just need an > expert's best guess and I'll be kstef> > kstef> out of your hair. > kstef> > > kstef> > Backing out is not an option. The ENGINE_get_static_state() check > is kstef> > there for a very specific reason that hits most Unixly users, > at least kstef> > if the engine is linked with the exact dynamic library > that loads it. kstef> > Since that's a fairly plausible scenario, I think > it would be a bad kstef> > move not to make any checks of the sort. > kstef> > > kstef> > kstef> When I try to link the opensc engine to libcrypto (0.9.8) > kstef> dynamically and then load the engine in openssl, it loads the > kstef> engine successfully but the UI method to get the pin fails. Is > kstef> that expected? > > Depends on *how* it fails. When is it trying to get a PIN? When > loading a key or at some other time? And exactly what UI_METHOD was > used? If it's the default one (which reads character from the > terminal you start the program in) and there is no terminal to read > characters from, it will (correctly) fail. >
It was the default UI_method, while loading a key, and I was running from a script that worked fine with libcrypto statically linked to the engine, but after changing the engine to use a shared libcrypto, the script failed. But I must have messed something else up, because I rebuilt from scratch and both static and dynamic linking work now with a 0.9.8 snapshot. Thanks, Kevin ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
