Have all tests use EXIT() to exit rather than exit(), since the latter doesn't
[openssl.git] / crypto / idea / ideatest.c
index 4593d9e..98f805d 100644 (file)
 #include <stdio.h>
 #include <string.h>
 #include <stdlib.h>
+
+#include "../e_os.h"
+
+#ifdef OPENSSL_NO_IDEA
+int main(int argc, char *argv[])
+{
+    printf("No IDEA support\n");
+    return(0);
+}
+#else
 #include <openssl/idea.h>
 
 unsigned char k[16]={
@@ -159,7 +169,7 @@ int main(int argc, char *argv[])
        else
                printf("ok\n");
 
-       exit(err);
+       EXIT(err);
        return(err);
        }
 
@@ -219,4 +229,4 @@ static char *pt(unsigned char *p)
        ret[16]='\0';
        return(ret);
        }
-       
+#endif