Config.hpp

This File On Github
Ask A Question

API: latest
module: oatpp-libressl
#include "oatpp-libressl/Config.hpp"

Config

Wrapper over tls_config.

namespace oatpp { namespace libressl { 
  class Config {}
}}

Methods

Return Type Name Summary
[none] Config Constructor.
std::shared_ptr<Config> createShared Create shared Config.
std::shared_ptr<Config> createDefaultServerConfig Create default config for server with enabled TLS.
[none] ~Config Virtual destructor.
TLSConfig getTLSConfig Get underlying tls_config.

Config::Config

Constructor.

Config()

Config::createShared

Create shared Config.

  • @return - std::shared_ptr to Config.

static std::shared_ptr<Config> createShared()

Config::createDefaultServerConfig

Create default config for server with enabled TLS.

  • @param keyFile - path to file with private key.
  • @param certFile - path to file with certificate.
  • @return - std::shared_ptr to Config.

static std::shared_ptr<Config> createDefaultServerConfig(const oatpp::String& keyFile, const oatpp::String& certFile)

Config::~Config

Virtual destructor.

virtual ~Config()

Config::getTLSConfig

Get underlying tls_config.

  • @return - tls_config*.

TLSConfig getTLSConfig()