Fix for VC++ 6 which chokes on the empty argument.
[oweals/openssl.git] / crypto / jpake / jpaketest.c
index 6bf7ee46d912522eb45e4beebb98d4bdda0eddc8..eaba75ed8abe1b8e51d6696a1f884a02576ffd30 100644 (file)
@@ -1,4 +1,6 @@
-#ifndef OPENSSL_EXPERIMENTAL_JPAKE
+#include <openssl/opensslconf.h>
+
+#ifdef OPENSSL_NO_JPAKE
 
 #include <stdio.h>
 
@@ -180,7 +182,7 @@ int main(int argc, char **argv)
     BN_free(p);
 
     CRYPTO_cleanup_all_ex_data();
-    ERR_remove_state(0);
+    ERR_remove_thread_state(NULL);
     ERR_free_strings();
     CRYPTO_mem_leaks(bio_err);