-#ifndef OPENSSL_EXPERIMENTAL_JPAKE
+#include <openssl/opensslconf.h>
+
+#ifdef OPENSSL_NO_JPAKE
#include <stdio.h>
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);