sptk2 logo
SPTK Home Page
Public Member Functions | List of all members
sptk::SSLContext Class Reference

#include <SSLContext.h>

Inheritance diagram for sptk::SSLContext:

Public Member Functions

 SSLContext (const String &cipherList)
 
void loadKeys (const SSLKeys &keys)
 
SSL_CTX * handle ()
 

Detailed Description

SSL connection context

Constructor & Destructor Documentation

◆ SSLContext()

sptk::SSLContext::SSLContext ( const String cipherList)
explicit

Constructor

Parameters
cipherListCipher list. Use "ALL" if not known.

Member Function Documentation

◆ handle()

SSL_CTX * sptk::SSLContext::handle ( )

Returns SSL context handle

◆ loadKeys()

void sptk::SSLContext::loadKeys ( const SSLKeys keys)

Loads private key and certificate(s)

Private key and certificates must be encoded with PEM format. A single file containing private key and certificate can be used by supplying it for both, private key and certificate parameters. If private key is protected with password, then password can be supplied to auto-answer.

Parameters
keysKeys and certificates

The documentation for this class was generated from the following file:

Fri Oct 14 2022 09:58:45: SPTK 5.4.1