diff options
author | Kenny Root <kroot@google.com> | 2015-05-13 16:32:09 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-05-13 16:32:09 +0000 |
commit | c3f464c37f41bba3f34c5cb5516ec010acd8ffcb (patch) | |
tree | 23b6be9286f8427c58bc27faa3f5f32dde546ba8 /verity | |
parent | aabb873a686c4b4fa5c5d7ca3039a552a620279b (diff) | |
parent | d30f68d1d436f2669084315324bc1f64a581b3aa (diff) | |
download | extras-c3f464c37f41bba3f34c5cb5516ec010acd8ffcb.tar.gz |
am d30f68d1: Merge "system/extra: include more of what you use."
* commit 'd30f68d1d436f2669084315324bc1f64a581b3aa':
system/extra: include more of what you use.
Diffstat (limited to 'verity')
-rw-r--r-- | verity/generate_verity_key.c | 5 | ||||
-rw-r--r-- | verity/verify_boot_signature.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/verity/generate_verity_key.c b/verity/generate_verity_key.c index a55600cd..0da978fc 100644 --- a/verity/generate_verity_key.c +++ b/verity/generate_verity_key.c @@ -14,10 +14,13 @@ * limitations under the License. */ +#define _GNU_SOURCE /* needed for asprintf */ + #include <stdio.h> +#include <stdlib.h> #include <string.h> -#include <sys/types.h> #include <sys/stat.h> +#include <sys/types.h> #include <unistd.h> /* HACK: we need the RSAPublicKey struct diff --git a/verity/verify_boot_signature.c b/verity/verify_boot_signature.c index 55591aaf..58b7a194 100644 --- a/verity/verify_boot_signature.c +++ b/verity/verify_boot_signature.c @@ -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> |