#include <stdio.h>
#include <time.h>
#include "cryptlib.h"
-#include <openssl/bn.h>
-#include <openssl/rsa.h>
+#include <openssl/bn_legacy.h>
+#include <openssl/rsa_legacy.h>
RSA *RSA_generate_key(int bits, unsigned long e_value,
void (*callback)(int,int,void *), void *cb_arg)