OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::OpenSSLPKI::X509 Class Reference

#include <x509.hpp>

Public Member Functions

 X509 ()=default
 
 X509 (const std::string &cert_txt, const std::string &title)
 
 X509 (::X509 *x509, const bool create=true)
 
 X509 (const X509 &other)
 
 X509 (X509 &&other) noexcept
 
X509operator= (const X509 &other)
 
X509operator= (X509 &&other) noexcept
 
bool defined () const
 
::X509obj () const
 
::X509obj_dup () const
 
void parse_pem (const std::string &cert_txt, const std::string &title)
 
std::string render_pem () const
 

Private Types

using X509_unique_ptr = std::unique_ptr<::X509, decltype(&::X509_free)>
 

Static Private Member Functions

static X509_unique_ptr dup (const X509_unique_ptr &x509)
 
::X509dup (const ::X509 *x509)
 

Private Attributes

X509_unique_ptr x509_ {nullptr, ::X509_free}
 

Detailed Description

Definition at line 29 of file x509.hpp.

Member Typedef Documentation

◆ X509_unique_ptr

using openvpn::OpenSSLPKI::X509::X509_unique_ptr = std::unique_ptr<::X509, decltype(&::X509_free)>
private

Definition at line 31 of file x509.hpp.

Constructor & Destructor Documentation

◆ X509() [1/5]

openvpn::OpenSSLPKI::X509::X509 ( )
default
Here is the caller graph for this function:

◆ X509() [2/5]

openvpn::OpenSSLPKI::X509::X509 ( const std::string &  cert_txt,
const std::string &  title 
)
inline

Definition at line 36 of file x509.hpp.

◆ X509() [3/5]

openvpn::OpenSSLPKI::X509::X509 ( ::X509 *  x509,
const bool  create = true 
)
inlineexplicit

Definition at line 41 of file x509.hpp.

◆ X509() [4/5]

openvpn::OpenSSLPKI::X509::X509 ( const X509 other)
inline

Definition at line 49 of file x509.hpp.

◆ X509() [5/5]

openvpn::OpenSSLPKI::X509::X509 ( X509 &&  other)
inlinenoexcept

Definition at line 54 of file x509.hpp.

Member Function Documentation

◆ defined()

bool openvpn::OpenSSLPKI::X509::defined ( ) const
inline

Definition at line 77 of file x509.hpp.

Here is the caller graph for this function:

◆ dup() [1/2]

::X509 * openvpn::OpenSSLPKI::X509::dup ( const ::X509 x509)
inlinestaticprivate

Definition at line 145 of file x509.hpp.

◆ dup() [2/2]

static X509_unique_ptr openvpn::OpenSSLPKI::X509::dup ( const X509_unique_ptr x509)
inlinestaticprivate

Definition at line 133 of file x509.hpp.

Here is the caller graph for this function:

◆ obj()

::X509 * openvpn::OpenSSLPKI::X509::obj ( ) const
inline

Definition at line 82 of file x509.hpp.

Here is the caller graph for this function:

◆ obj_dup()

::X509 * openvpn::OpenSSLPKI::X509::obj_dup ( ) const
inline

Definition at line 87 of file x509.hpp.

◆ operator=() [1/2]

X509 & openvpn::OpenSSLPKI::X509::operator= ( const X509 other)
inline

Definition at line 59 of file x509.hpp.

◆ operator=() [2/2]

X509 & openvpn::OpenSSLPKI::X509::operator= ( X509 &&  other)
inlinenoexcept

Definition at line 68 of file x509.hpp.

◆ parse_pem()

void openvpn::OpenSSLPKI::X509::parse_pem ( const std::string &  cert_txt,
const std::string &  title 
)
inline

Definition at line 92 of file x509.hpp.

Here is the caller graph for this function:

◆ render_pem()

std::string openvpn::OpenSSLPKI::X509::render_pem ( ) const
inline

Definition at line 106 of file x509.hpp.

Here is the caller graph for this function:

Member Data Documentation

◆ x509_

X509_unique_ptr openvpn::OpenSSLPKI::X509::x509_ {nullptr, ::X509_free}
private

Definition at line 153 of file x509.hpp.


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