header cleanup in apps/
diff --git a/apps/apps.c b/apps/apps.c
index fa2f8a2..5e44322 100644
--- a/apps/apps.c
+++ b/apps/apps.c
@@ -125,6 +125,7 @@
#ifndef OPENSSL_NO_ENGINE
#include <openssl/engine.h>
#endif
+#include <openssl/rsa.h>
#define NON_MAIN
#include "apps.h"
diff --git a/apps/rsautl.c b/apps/rsautl.c
index 5db6fe7..5961990 100644
--- a/apps/rsautl.c
+++ b/apps/rsautl.c
@@ -62,6 +62,7 @@
#include <string.h>
#include <openssl/err.h>
#include <openssl/pem.h>
+#include <openssl/rsa.h>
#define RSA_SIGN 1
#define RSA_VERIFY 2
diff --git a/apps/speed.c b/apps/speed.c
index 4c7cdcd..ccc074f 100644
--- a/apps/speed.c
+++ b/apps/speed.c
@@ -209,6 +209,7 @@
#endif
#include <openssl/x509.h>
#ifndef OPENSSL_NO_DSA
+#include <openssl/dsa.h>
#include "./testdsa.h"
#endif
#ifndef OPENSSL_NO_ECDSA
diff --git a/apps/x509.c b/apps/x509.c
index d30fbbe..58706be 100644
--- a/apps/x509.c
+++ b/apps/x509.c
@@ -73,6 +73,8 @@
#include <openssl/x509v3.h>
#include <openssl/objects.h>
#include <openssl/pem.h>
+#include <openssl/rsa.h>
+#include <openssl/dsa.h>
#undef PROG
#define PROG x509_main