diff options
author | Brian Smith <brian@briansmith.org> | 2015-03-28 10:12:01 +0300 |
---|---|---|
committer | Adam Langley <agl@google.com> | 2015-04-13 23:49:18 +0300 |
commit | 054e68267553e0b64975444741efa8099688d960 (patch) | |
tree | 48ad376df5dd4e09a2406784020f10626149a66a /crypto/asn1/tasn_utl.c | |
parent | ef24ac396ac61872c95f277732dcf8dd669f6f75 (diff) |
Eliminate unnecessary includes from low-level crypto modules.
Beyond generally eliminating unnecessary includes, eliminate as many
includes of headers that declare/define particularly error-prone
functionality like strlen, malloc, and free. crypto/err/internal.h was
added to remove the dependency on openssl/thread.h from the public
openssl/err.h header. The include of <stdlib.h> in openssl/mem.h was
retained since it defines OPENSSL_malloc and friends as macros around
the stdlib.h functions. The public x509.h, x509v3.h, and ssl.h headers
were not changed in order to minimize breakage of source compatibility
with external code.
Change-Id: I0d264b73ad0a720587774430b2ab8f8275960329
Reviewed-on: https://boringssl-review.googlesource.com/4220
Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'crypto/asn1/tasn_utl.c')
-rw-r--r-- | crypto/asn1/tasn_utl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/asn1/tasn_utl.c b/crypto/asn1/tasn_utl.c index f6045e40..1b9de942 100644 --- a/crypto/asn1/tasn_utl.c +++ b/crypto/asn1/tasn_utl.c @@ -62,6 +62,7 @@ #include <openssl/mem.h> #include <openssl/obj.h> #include <openssl/err.h> +#include <openssl/thread.h> /* Utility functions for manipulating fields and offsets */ |