hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
tls_credentials.hpp
Go to the documentation of this file.
1 
6 #ifndef CLIENT_TLS_CREDENTIALS_HPP
7 #define CLIENT_TLS_CREDENTIALS_HPP
8 
9 #include <memory>
10 
11 #include "common/result.hpp"
12 
13 namespace iroha {
14  namespace network {
15 
16  struct TlsCredentials {
17  TlsCredentials(std::string private_key, std::string certificate);
18 
19  std::string private_key;
20  std::string certificate;
21 
22  static iroha::expected::Result<std::unique_ptr<TlsCredentials>,
23  std::string>
24  load(const std::string &path);
25  };
26 
27  } // namespace network
28 } // namespace iroha
29 
30 #endif
std::string certificate
Definition: tls_credentials.hpp:20
TlsCredentials(std::string private_key, std::string certificate)
Definition: tls_credentials.cpp:18
Definition: block_query.hpp:14
std::string private_key
Definition: tls_credentials.hpp:19
static iroha::expected::Result< std::unique_ptr< TlsCredentials >, std::string > load(const std::string &path)
Definition: tls_credentials.cpp:22
Definition: tls_credentials.hpp:16