Compatibility changes for wpa_supplicant and OpenSSH.

OpenSSH, especially, does some terrible things that mean that it needs
the EVP_CIPHER structure to be exposed ☹. Damian is open to a better API
to replace this, but only if OpenSSL agree too. Either way, it won't be
happening soon.

Change-Id: I393b7a6af6694d4d2fe9ebcccd40286eff4029bd
Reviewed-on: https://boringssl-review.googlesource.com/4330
Reviewed-by: Adam Langley <agl@google.com>
diff --git a/include/openssl/crypto.h b/include/openssl/crypto.h
index 1dc8346..20c850e 100644
--- a/include/openssl/crypto.h
+++ b/include/openssl/crypto.h
@@ -32,6 +32,20 @@
 OPENSSL_EXPORT void CRYPTO_library_init(void);
 
 
+/* Deprecated functions. */
+
+#define OPENSSL_VERSION_TEXT "BoringSSL"
+
+#define SSLEAY_VERSION 0
+
+/* SSLeay_version is a compatibility function that returns the string
+ * "BoringSSL". */
+OPENSSL_EXPORT const char *SSLeay_version(int unused);
+
+/* SSLeay is a compatibility function that returns the string "BoringSSL". */
+OPENSSL_EXPORT const char *SSLeay(void);
+
+
 #if defined(__cplusplus)
 }  /* extern C */
 #endif