osquery-1/plugins/config/tls_config.h
Filipe Manco be07c2938a Move plugins to a separate directory [1/?]
Summary:
Initial steps to separate plugins from the rest of osquery. On the long run separating plugins will provide more build flexibility such that we can have configurable builds that include only the bits and pieces we actually need per deployment. Reducing the attack surface, possibility of supply chain attacks, binary size, etc.

Move config and config_parser plugins

Reviewed By: marekcirkos

Differential Revision: D14119102

fbshipit-source-id: 0bc956398b3829c6f1013b38ebba2f0fc1071a93
2019-02-19 00:55:27 -08:00

32 lines
713 B
C++

/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed as defined on the LICENSE file found in the
* root directory of this source tree.
*/
#pragma once
#include <osquery/config/config.h>
#include <osquery/dispatcher.h>
namespace osquery {
class TLSConfigPlugin;
class TLSConfigPlugin : public ConfigPlugin,
public std::enable_shared_from_this<TLSConfigPlugin> {
public:
Status setUp() override;
Status genConfig(std::map<std::string, std::string>& config) override;
protected:
/// Calculate the URL once and cache the result.
std::string uri_;
private:
friend class TLSConfigTests;
};
} // namespace osquery