Keep SHA-1 in crypto.h
85730f21f9 added sha2.h to split out SHA-1. It also updated a number of
files to use sha2.h rather than sha.h. But some external users are
assuming that they get SHA-1 transitively from other headers. Rather
than break them, back off on this on crypto.h. We'll see if x509.h
survives for now.
Change-Id: Iddbb2096c76cd608e3ada0942f87b8b54786d7ca
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/80387
Commit-Queue: Adam Langley <agl@google.com>
Reviewed-by: David Benjamin <davidben@google.com>
diff --git a/include/openssl/crypto.h b/include/openssl/crypto.h
index ffae26b..aed4326 100644
--- a/include/openssl/crypto.h
+++ b/include/openssl/crypto.h
@@ -15,8 +15,8 @@
#ifndef OPENSSL_HEADER_CRYPTO_H
#define OPENSSL_HEADER_CRYPTO_H
-#include <openssl/base.h> // IWYU pragma: export
-#include <openssl/sha2.h>
+#include <openssl/base.h> // IWYU pragma: export
+#include <openssl/sha.h>
// Upstream OpenSSL defines |OPENSSL_malloc|, etc., in crypto.h rather than
// mem.h.