I forgot to include the aep and sureware vendor header files.
[openssl.git] / crypto / engine / enginetest.c
index befaef8c2985d86b3325b3c2ac4610cf5c66faaa..598cb31a6f60683cf6ca69a2c58d810696aaf285 100644 (file)
@@ -3,7 +3,7 @@
  * project 2000.
  */
 /* ====================================================================
- * Copyright (c) 1999 The OpenSSL Project.  All rights reserved.
+ * Copyright (c) 1999-2001 The OpenSSL Project.  All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -58,6 +58,7 @@
 
 #include <openssl/e_os2.h>
 #include <stdio.h>
+#include <string.h>
 #include <openssl/buffer.h>
 #include <openssl/crypto.h>
 #include <openssl/engine.h>
@@ -160,12 +161,7 @@ int main(int argc, char *argv[])
                }
        else
                printf("Remove that should fail did.\n");
-       if(!ENGINE_remove(new_h1))
-               {
-               printf("Remove failed!\n");
-               goto end;
-               }
-       display_engine_list();
+       ERR_clear_error();
        if(!ENGINE_remove(new_h3))
                {
                printf("Remove failed!\n");
@@ -234,8 +230,8 @@ cleanup_loop:
                }
        for(loop = 0; loop < 512; loop++)
                {
-               OPENSSL_free((char *)(ENGINE_get_id(block[loop])));
-               OPENSSL_free((char *)(ENGINE_get_name(block[loop])));
+               OPENSSL_free((void *)ENGINE_get_id(block[loop]));
+               OPENSSL_free((void *)ENGINE_get_name(block[loop]));
                }
        printf("\nTests completed happily\n");
        to_return = 0;