diff options
author | Kenny Root <kroot@google.com> | 2015-05-09 15:15:57 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-05-09 15:15:57 +0000 |
commit | ce1c0be20038f160ae922a768444413c2f1423e3 (patch) | |
tree | 5d36950f225bc8ca99b04036206cf24ac9aeccf1 /verity | |
parent | 36c5d21a85ee21fe2dda7457eefea3186477a975 (diff) | |
parent | 18b671d7d3375be639118aa74dd6a88955bf8779 (diff) | |
download | extras-ce1c0be20038f160ae922a768444413c2f1423e3.tar.gz |
am 18b671d7: Merge "system/extra: include more of what you use."
* commit '18b671d7d3375be639118aa74dd6a88955bf8779':
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..cf4cfac6 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> @@ -30,6 +31,7 @@ #include <openssl/asn1t.h> #include <openssl/err.h> #include <openssl/evp.h> +#include <openssl/mem.h> #include <openssl/rsa.h> #include <openssl/x509.h> |