diff options
author | Adam Langley <agl@google.com> | 2015-04-28 13:20:26 -0700 |
---|---|---|
committer | Adam Langley <agl@google.com> | 2015-05-05 18:17:58 -0700 |
commit | aa24bc89b78a5981df7618bdef78b7b49ffad14d (patch) | |
tree | 79c1afd9590124d34ac3c3b5024d587776469eb2 /verity | |
parent | 2adbe38fada256e0fae039c3a6e869441266597e (diff) | |
download | extras-aa24bc89b78a5981df7618bdef78b7b49ffad14d.tar.gz |
system/extra: include more of what you use.
Historically, the OpenSSL/BoringSSL headers have been quite sloppy:
including many system headers. Over time, code has grown to depend on
this.
BoringSSL has cleaned things up a bit, but that requires code like this
to include what it uses.
Change-Id: Id456a598151d4c58a73cf05cef46f3db296e1f39
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> |