2018-08-07 23:40:39 +03:00
|
|
|
/*
|
2019-06-20 02:58:25 +03:00
|
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
2018-08-07 23:40:39 +03:00
|
|
|
*
|
2019-06-20 02:58:25 +03:00
|
|
|
* This software may be used and distributed according to the terms of the
|
|
|
|
* GNU General Public License version 2.
|
2018-08-07 23:40:39 +03:00
|
|
|
*/
|
2019-10-11 15:26:59 +03:00
|
|
|
|
2018-08-07 23:40:39 +03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <folly/io/async/SSLContext.h>
|
2018-10-24 03:03:12 +03:00
|
|
|
#include <optional>
|
2018-08-07 23:40:39 +03:00
|
|
|
|
2018-08-20 21:07:34 +03:00
|
|
|
#include "eden/fs/utils/PathFuncs.h"
|
|
|
|
|
2018-08-07 23:40:39 +03:00
|
|
|
namespace facebook {
|
|
|
|
namespace eden {
|
|
|
|
/**
|
|
|
|
* Create a folly::SSLcontext with client certificate
|
|
|
|
*/
|
2018-08-20 21:07:34 +03:00
|
|
|
std::shared_ptr<folly::SSLContext> buildSSLContext(
|
2018-10-24 03:03:12 +03:00
|
|
|
std::optional<AbsolutePath> clientCertificate);
|
2018-08-07 23:40:39 +03:00
|
|
|
} // namespace eden
|
|
|
|
} // namespace facebook
|