OSDN Git Service

DO NOT MERGE: fec: remove unneeded target executable
[android-x86/system-extras.git] / verity / verify_boot_signature.c
index cf4cfac..b706e3a 100644 (file)
@@ -29,9 +29,9 @@
 
 #include <openssl/asn1.h>
 #include <openssl/asn1t.h>
+#include <openssl/crypto.h>
 #include <openssl/err.h>
 #include <openssl/evp.h>
-#include <openssl/mem.h>
 #include <openssl/rsa.h>
 #include <openssl/x509.h>
 
@@ -72,14 +72,6 @@ IMPLEMENT_ASN1_FUNCTIONS(BootSignature)
 
 static BIO *g_error = NULL;
 
-#if defined(OPENSSL_IS_BORINGSSL)
-/* In BoringSSL, ERR_print_errors has been moved to the BIO functions in order
- * to avoid the incorrect dependency of ERR on BIO. */
-static void ERR_print_errors(BIO *bio) {
-    BIO_print_errors(bio);
-}
-#endif
-
 /**
  * Rounds n up to the nearest multiple of page_size
  * @param n The value to round