OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::SSLAPI Class Referenceabstract

#include <sslapi.hpp>

Inheritance diagram for openvpn::SSLAPI:
[legend]
Collaboration diagram for openvpn::SSLAPI:
[legend]

Public Types

enum  TLSWarnings { TLS_WARN_NONE = 0 , TLS_WARN_SIG_MD5 = (1 << 0) , TLS_WARN_SIG_SHA1 = (1 << 1) }
 
typedef RCPtr< SSLAPIPtr
 
- Public Types inherited from openvpn::RC< thread_unsafe_refcount >
typedef RCPtr< RCPtr
 

Public Member Functions

virtual void start_handshake ()=0
 
virtual ssize_t write_cleartext_unbuffered (const void *data, const size_t size)=0
 
virtual ssize_t read_cleartext (void *data, const size_t capacity)=0
 
virtual bool read_cleartext_ready () const =0
 
virtual void write_ciphertext (const BufferPtr &buf)=0
 
virtual void write_ciphertext_unbuffered (const unsigned char *data, const size_t size)=0
 
virtual bool read_ciphertext_ready () const =0
 
virtual BufferPtr read_ciphertext ()=0
 
virtual std::string ssl_handshake_details () const =0
 
virtual bool export_keying_material (const std::string &label, unsigned char *dest, size_t size)=0
 
virtual bool did_full_handshake ()=0
 
virtual const AuthCert::Ptrauth_cert () const =0
 
virtual void mark_no_cache ()=0
 
uint32_t get_tls_warnings () const
 
- Public Member Functions inherited from openvpn::RC< thread_unsafe_refcount >
 RC () noexcept=default
 
 RC (const RC &)=delete
 
virtual ~RC ()=default
 
RCoperator= (const RC &)=delete
 
olong use_count () const noexcept
 Delegates call to RCImpl and returns the result.
 

Protected Attributes

uint32_t tls_warnings = 0
 

Additional Inherited Members

- Static Public Member Functions inherited from openvpn::RC< thread_unsafe_refcount >
static constexpr bool is_thread_safe ()
 Delegates call to RCImpl and returns the result.
 

Detailed Description

Definition at line 48 of file sslapi.hpp.

Member Typedef Documentation

◆ Ptr

Definition at line 58 of file sslapi.hpp.

Member Enumeration Documentation

◆ TLSWarnings

Enumerator
TLS_WARN_NONE 
TLS_WARN_SIG_MD5 
TLS_WARN_SIG_SHA1 

Definition at line 51 of file sslapi.hpp.

Member Function Documentation

◆ auth_cert()

virtual const AuthCert::Ptr & openvpn::SSLAPI::auth_cert ( ) const
pure virtual

Implemented in openvpn::AppleSSLContext::SSL, openvpn::MbedTLSContext::SSL, and openvpn::OpenSSLContext::SSL.

Here is the caller graph for this function:

◆ did_full_handshake()

virtual bool openvpn::SSLAPI::did_full_handshake ( )
pure virtual

Implemented in openvpn::MbedTLSContext::SSL, and openvpn::OpenSSLContext::SSL.

Here is the caller graph for this function:

◆ export_keying_material()

virtual bool openvpn::SSLAPI::export_keying_material ( const std::string &  label,
unsigned char *  dest,
size_t  size 
)
pure virtual

Implemented in openvpn::MbedTLSContext::SSL, and openvpn::OpenSSLContext::SSL.

Here is the caller graph for this function:

◆ get_tls_warnings()

uint32_t openvpn::SSLAPI::get_tls_warnings ( ) const
inline

Definition at line 73 of file sslapi.hpp.

Here is the caller graph for this function:

◆ mark_no_cache()

virtual void openvpn::SSLAPI::mark_no_cache ( )
pure virtual

Implemented in openvpn::MbedTLSContext::SSL, and openvpn::OpenSSLContext::SSL.

Here is the caller graph for this function:

◆ read_ciphertext()

virtual BufferPtr openvpn::SSLAPI::read_ciphertext ( )
pure virtual

Implemented in openvpn::AppleSSLContext::SSL, openvpn::MbedTLSContext::SSL, and openvpn::OpenSSLContext::SSL.

Here is the caller graph for this function:

◆ read_ciphertext_ready()

virtual bool openvpn::SSLAPI::read_ciphertext_ready ( ) const
pure virtual

Implemented in openvpn::AppleSSLContext::SSL, openvpn::MbedTLSContext::SSL, and openvpn::OpenSSLContext::SSL.

Here is the caller graph for this function:

◆ read_cleartext()

virtual ssize_t openvpn::SSLAPI::read_cleartext ( void *  data,
const size_t  capacity 
)
pure virtual

Implemented in openvpn::AppleSSLContext::SSL, openvpn::MbedTLSContext::SSL, and openvpn::OpenSSLContext::SSL.

Here is the caller graph for this function:

◆ read_cleartext_ready()

virtual bool openvpn::SSLAPI::read_cleartext_ready ( ) const
pure virtual

Implemented in openvpn::AppleSSLContext::SSL, openvpn::MbedTLSContext::SSL, and openvpn::OpenSSLContext::SSL.

Here is the caller graph for this function:

◆ ssl_handshake_details()

virtual std::string openvpn::SSLAPI::ssl_handshake_details ( ) const
pure virtual

Implemented in openvpn::AppleSSLContext::SSL, openvpn::MbedTLSContext::SSL, and openvpn::OpenSSLContext::SSL.

Here is the caller graph for this function:

◆ start_handshake()

virtual void openvpn::SSLAPI::start_handshake ( )
pure virtual

Implemented in openvpn::AppleSSLContext::SSL, openvpn::MbedTLSContext::SSL, and openvpn::OpenSSLContext::SSL.

Here is the caller graph for this function:

◆ write_ciphertext()

virtual void openvpn::SSLAPI::write_ciphertext ( const BufferPtr buf)
pure virtual

Implemented in openvpn::AppleSSLContext::SSL, openvpn::MbedTLSContext::SSL, and openvpn::OpenSSLContext::SSL.

Here is the caller graph for this function:

◆ write_ciphertext_unbuffered()

virtual void openvpn::SSLAPI::write_ciphertext_unbuffered ( const unsigned char *  data,
const size_t  size 
)
pure virtual

◆ write_cleartext_unbuffered()

virtual ssize_t openvpn::SSLAPI::write_cleartext_unbuffered ( const void *  data,
const size_t  size 
)
pure virtual

Implemented in openvpn::AppleSSLContext::SSL, openvpn::MbedTLSContext::SSL, and openvpn::OpenSSLContext::SSL.

Here is the caller graph for this function:

Member Data Documentation

◆ tls_warnings

uint32_t openvpn::SSLAPI::tls_warnings = 0
protected

Definition at line 79 of file sslapi.hpp.


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