Hi,

  I've been playing with 0.9.8 and have gotten my engine to load as a
.so from the engines directory, which is excellent.

  Now I'm trying to use the config feature to find and load this
engine and I'm not having much luck.  Here's my config file:

---- openssl.cnf ----
openssl_init = init_section

[ init_section ]

engines = engines_section

[ engines_section ]

tpm = tpm_engine_section

[ tpm_engine_section ]

engine_id = tpm
dynamic_path = /usr/local/ssl/lib/engines/libtpm.so
default_algorithms = ALL
init = 1
----

and test program:

---- test.c ----
#define OPENSSL_LOAD_CONF 1

#include <stdio.h>

#include <openssl/engine.h>
#include <openssl/conf.h>

int main(void)
{
        RSA *rsa = NULL;

        OpenSSL_add_all_algorithms();

        rsa = RSA_new();
        RSA_free(rsa);

        return 0;
}
----

  In tracing through, I can see that the engine pointer isn't getting
assigned in the new RSA object.  Is there anything I'm missing here?

Thanks,
Kent
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to