Official deprecate compat-1.2.h and openssl.h
diff --git a/include/polarssl/openssl.h b/include/polarssl/openssl.h
index dc0eba4..96435a3 100644
--- a/include/polarssl/openssl.h
+++ b/include/polarssl/openssl.h
@@ -23,9 +23,17 @@
  *  with this program; if not, write to the Free Software Foundation, Inc.,
  *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
+
 /*
  * OpenSSL wrapper contributed by David Barett
  */
+
+#if ! defined(MBEDTLS_DEPRECATED_REMOVED)
+
+#if defined(MBEDTLS_DEPRECATED_WARNING)
+#warning "Including openssl.h is deprecated"
+#endif
+
 #ifndef POLARSSL_OPENSSL_H
 #define POLARSSL_OPENSSL_H
 
@@ -137,3 +145,4 @@
 #endif
 
 #endif /* openssl.h */
+#endif /* MBEDTLS_DEPRECATED_REMOVED */