sapling/eden/fs/utils/SSLContext.h
Chad Austin d5a0a0d063 folly::Optional -> std::optional
Summary: Eden's on C++17 so fully cross the rubicon!

Reviewed By: strager

Differential Revision: D10496796

fbshipit-source-id: 3b0b8e10a93830c0e76dbc5baf95cf69a1f080af
2018-10-23 17:05:11 -07:00

26 lines
676 B
C++

/*
* Copyright (c) 2018-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 <folly/io/async/SSLContext.h>
#include <optional>
#include "eden/fs/utils/PathFuncs.h"
namespace facebook {
namespace eden {
/**
* Create a folly::SSLcontext with client certificate
*/
std::shared_ptr<folly::SSLContext> buildSSLContext(
std::optional<AbsolutePath> clientCertificate);
} // namespace eden
} // namespace facebook