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 /tool/transport_common.cc | |
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 'tool/transport_common.cc')
-rw-r--r-- | tool/transport_common.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/transport_common.cc b/tool/transport_common.cc index 8d6013b6..ac4dfe1f 100644 --- a/tool/transport_common.cc +++ b/tool/transport_common.cc @@ -18,7 +18,7 @@ #include <vector> #include <errno.h> -#include <stdlib.h> +#include <stddef.h> #include <string.h> #include <sys/types.h> |