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> createDefaultServerConfigShared Create default config for server with enabled TLS.
std::shared_ptr<Config> createDefaultClientConfigShared Create default client config.
[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::createDefaultServerConfigShared

Create default config for server with enabled TLS.

  • @param serverCertFile - server certificate.
  • @param privateKeyFile - private key.
  • @return - std::shared_ptr to Config.

static std::shared_ptr<Config> createDefaultServerConfigShared(const char* serverCertFile, const char* privateKeyFile)

Config::createDefaultClientConfigShared

Create default client config.
Please note - this method automatically sets:

  • tls_config_insecure_noverifycert
  • tls_config_insecure_noverifyname

Create with Config::createShared instead in order to override this behavior.
  • @return - std::shared_ptr to Config.

static std::shared_ptr<Config> createDefaultClientConfigShared()

Config::~Config

Virtual destructor.

virtual ~Config()

Config::getTLSConfig

Get underlying tls_config.

  • @return - tls_config*.

TLSConfig getTLSConfig()