mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-08 18:33:54 +00:00
31 lines
738 B
C++
31 lines
738 B
C++
|
|
/*
|
|
* Copyright (c) 2014-present, Facebook, Inc.
|
|
* All rights reserved.
|
|
*
|
|
* This source code is licensed under the BSD-style license found in the
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <osquery/enroll.h>
|
|
|
|
namespace osquery {
|
|
|
|
class TLSEnrollPlugin : public EnrollPlugin {
|
|
private:
|
|
/// Enroll called, return cached key or if no key cached, call requestKey.
|
|
std::string enroll() override;
|
|
|
|
private:
|
|
/// Request an enrollment key response from the TLS endpoint.
|
|
Status requestKey(const std::string& uri, std::string& node_key);
|
|
|
|
private:
|
|
friend class TLSEnrollTests;
|
|
};
|
|
}
|