I am just wondering about the steps to use a dynamic engine. Can somebody verify this:
    e = ENGINE_by_id("dynamic");
    if (!e) {
        return RC_ERROR;
    }
    if ((!ENGINE_ctrl_cmd_string(e, "SO_PATH", so_path, 0)) ||
        (!ENGINE_ctrl_cmd_string(e, "ID", "ATHENA", 0)) ||
        (!ENGINE_ctrl_cmd_string(e, "LOAD", NULL, 0)))
    {
        ENGINE_free(e);
        return RC_ERROR;
    }
 
    if (!ENGINE_init(e)) {
        ENGINE_free(e);
        return RC_ERROR;
    }
   
    ENGINE_set_default_RSA(e);
 
Also, when do I need to call ENGINE_finish() and ENGINE_free()?
Thanks,
-Anil


Yahoo! Music Unlimited - Access over 1 million songs. Try it free.

Reply via email to