osquery-1/osquery/remote
Jesse Kornblum 3ded8491b2 Fix osquery mode to skip TLS verification in debug builds (#5482)
Summary:
Pull Request resolved: https://github.com/facebook/osquery/pull/5482

We allow people using a debug build of osqueryd to skip verification of the server's TLS certificate. This allow people to connect to a devserver, for example, when testing the Graph API endpoints used by osquery.

This mode broke at some point when we stopped defining the `DEBUG` constant when building osqueryd in debug mode. This diff updates the code so that we use the constant `NDEBUG`, which is actually defined for release builds. For example, for OS X, see the build configs at https://fburl.com/ywr1tyuk and https://fburl.com/mte9ajvr.

We also update the code to ensure the command line option `--tls_allow_unsafe` allows a person to connect to a dev server.

Reviewed By: obelisk

Differential Revision: D14260226

fbshipit-source-id: c0f2f1c1f4c8dd5e3e1eaa6e1a52ab2a4ff765d4
2019-02-28 11:58:35 -08:00
..
enroll Move out to plugins/ registration of enroll:tls plugin in registry (#5473) 2019-02-27 08:32:19 -08:00
serializers Update osquery licensing wording (#5452) 2019-02-19 10:59:48 -08:00
tests remove thrift_impl from osquery plugin_sdk 2019-02-26 11:20:08 -08:00
transports Fix osquery mode to skip TLS verification in debug builds (#5482) 2019-02-28 11:58:35 -08:00
BUCK Fix LICENSE information on file headers (#5375) 2019-01-21 11:51:54 -08:00
http_client.cpp Update osquery licensing wording (#5452) 2019-02-19 10:59:48 -08:00
http_client.h Update osquery licensing wording (#5452) 2019-02-19 10:59:48 -08:00
requests.cpp Update osquery licensing wording (#5452) 2019-02-19 10:59:48 -08:00
requests.h Update osquery licensing wording (#5452) 2019-02-19 10:59:48 -08:00
uri.cpp Update osquery licensing wording (#5452) 2019-02-19 10:59:48 -08:00
uri.h Update osquery licensing wording (#5452) 2019-02-19 10:59:48 -08:00
utility.h Update osquery licensing wording (#5452) 2019-02-19 10:59:48 -08:00