Constification, add config to /dev/crypto.
[openssl.git] / crypto / evp / evp_test.c
index e312672ba2d66d7239969396d4784a135687a149..ae14356dfeabefffb8f7463177ccd927650dd3cf 100644 (file)
@@ -51,6 +51,7 @@
 #include <string.h>
 #include <openssl/evp.h>
 #include <openssl/engine.h>
+#include <openssl/conf.h>
 
 static void hexdump(FILE *f,const char *title,const unsigned char *s,int l)
     {
@@ -229,7 +230,7 @@ static int test_cipher(const char *cipher,const unsigned char *key,int kn,
 
 static int test_digest(const char *digest,
                       const unsigned char *plaintext,int pn,
-                      const unsigned char *ciphertext, int cn)
+                      const unsigned char *ciphertext, unsigned int cn)
     {
     const EVP_MD *d;
     EVP_MD_CTX ctx;
@@ -309,6 +310,7 @@ int main(int argc,char **argv)
     OpenSSL_add_all_digests();
     /* Load all compiled-in ENGINEs */
     ENGINE_load_builtin_engines();
+    OPENSSL_config();
     /* Register all available ENGINE implementations of ciphers and digests.
      * This could perhaps be changed to "ENGINE_register_all_complete()"? */
     ENGINE_register_all_ciphers();