OSDN Git Service

ANRdaemon: move trace result from /sdcard to /data am: d93aa41807
[android-x86/system-extras.git] / verity / verify_boot_signature.c
index 55591aa..b706e3a 100644 (file)
@@ -19,6 +19,7 @@
 #include <endian.h>
 #include <stddef.h>
 #include <stdint.h>
+#include <stdlib.h>
 #include <string.h>
 #include <sys/stat.h>
 #include <sys/types.h>
@@ -28,6 +29,7 @@
 
 #include <openssl/asn1.h>
 #include <openssl/asn1t.h>
+#include <openssl/crypto.h>
 #include <openssl/err.h>
 #include <openssl/evp.h>
 #include <openssl/rsa.h>
@@ -70,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