hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
tls_keypair.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_TLS_KEYPAIR_HPP
7 #define IROHA_TLS_KEYPAIR_HPP
8 
9 #include <string>
10 
11 #include <boost/optional.hpp>
12 
13 class TlsKeypair {
14  public:
20  explicit TlsKeypair(const std::string &pem_private_key,
21  const std::string &pem_certificate);
22 
23  std::string pem_private_key;
24  std::string pem_certificate;
25 };
26 
28  public:
36  boost::optional<TlsKeypair> readFromFiles(const std::string &path);
37 };
38 
39 #endif // IROHA_TLS_KEYPAIR_HPP
std::string pem_certificate
Definition: tls_keypair.hpp:24
Definition: tls_keypair.hpp:13
TlsKeypair(const std::string &pem_private_key, const std::string &pem_certificate)
Definition: tls_keypair.cpp:27
std::string pem_private_key
Definition: tls_keypair.hpp:23
Definition: tls_keypair.hpp:27