First step in tidying up the LHASH code. The callback prototypes (and
[openssl.git] / apps / openssl.c
index 4f61006b73bf95bf0bbb11f4709980fd44d044c6..40bcb76341ce4d46f5d1d91176c8a2b7bca94723 100644 (file)
@@ -112,6 +112,7 @@ int main(int Argc, char *Argv[])
                        BIO_set_fp(bio_err,stderr,BIO_NOCLOSE|BIO_FP_TEXT);
 
        ERR_load_crypto_strings();
+       ENGINE_load_builtin_engines();
 
        /* Lets load up our environment a little */
        p=getenv("OPENSSL_CONF");
@@ -350,7 +351,9 @@ static LHASH *prog_init(void)
            ;
        qsort(functions,i,sizeof *functions,SortFnByName);
 
-       if ((ret=lh_new(hash,cmp)) == NULL) return(NULL);
+       if ((ret=lh_new((LHASH_HASH_FN_TYPE)hash,
+                       (LHASH_COMP_FN_TYPE)cmp)) == NULL)
+               return(NULL);
 
        for (f=functions; f->name != NULL; f++)
                lh_insert(ret,f);