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);
...

By

Goetz

-- 
Goetz Babin-Ebell, TC TrustCenter GmbH, http://www.trustcenter.de
Sonninstr. 24-28, 20097 Hamburg, Germany
Tel.: +49-(0)40 80 80 26 -0,  Fax: +49-(0)40 80 80 26 -126
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to