Goetz Babin-Ebell wrote:
> 
> Ben Laurie wrote:
> >
> > Geoff Thorpe wrote:
> > >
> > > On Tue, 31 Oct 2000, Libor Krystek wrote:
> > >
> > > > I'am creating new engine for other hardware. This hardware must be
> > > > initialized before using but for its initialization I need input some
> > > > parameters (e.g. hostname, username, password).
> > > > Function ENGINE_init(ENGINE *e) call engine function init() and it have
> > > > no input parameters.
> > > > How can I do it? Do you have any conception?
> > >
> > > ENGINE_ctrl();
> > >
> > > make your "init()" handler fail (setting an explanatory error) unless
> > > ENGINE_ctrl() has already been called to pass in everything you need.
> [...]
> > Leaves me with one - if specific engines have to be initialised "by
> > hand", then we haven't got much in the way of abstraction, have we? Is
> > there a better way? Config files? External programs?
> 
> something like
> [ENGINE_ENTRY_xyz]
> ctrl_0  =       1234,LONG:42
> ctrl_1  =       0xff,DATA:<hex_data>
> [...]
> 
> resulting in something like:
> 
> ...
> ENGINE_ctrl(engine,1234,42,0,0);
> ENGINE_ctrl(engine,0xff,0,data,0);
> ...

That's the kind of thing I had in mind - or, better, engines could
define their own config fields.

Cheers,

Ben.

--
http://www.apache-ssl.org/ben.html

"There is no limit to what a man can do or how far he can go if he
doesn't mind who gets the credit."

Robert Woodruff
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to