MySQL  8.0.19
Source Code Documentation
SslAcceptorContext::AutoLock Class Reference

The prefered way to read SSL parameters. More...

#include <ssl_acceptor_context.h>

Inheritance diagram for SslAcceptorContext::AutoLock:
MyRcuLock< T >::ReadLock

Public Member Functions

 AutoLock ()
 
 ~AutoLock ()
 
 operator SSL_CTX * ()
 Access to the SSL_CTX from the protected SslAcceptorContext. More...
 
 operator SSL * ()
 Access to the SSL from the protected SslAcceptorContext. More...
 
 operator struct st_VioSSLFd * ()
 
bool empty ()
 Check if the SSL context actually contains a valid SSL_CTX. More...
 
const char * get_current_ca ()
 
const char * get_current_capath ()
 
const char * get_current_cert ()
 
const char * get_current_key ()
 
const char * get_current_version ()
 
const char * get_current_crl ()
 
const char * get_current_crlpath ()
 
const char * get_current_cipher ()
 
const char * get_current_ciphersuites ()
 

Additional Inherited Members

- Private Member Functions inherited from MyRcuLock< T >::ReadLock
 operator const T * ()
 get the value through the scope guard More...
 
 ReadLock (MyRcuLock *l)
 construct a new read lock scope guard More...
 
 ReadLock (const ReadLock &)=delete
 
 ~ReadLock ()
 
MyRcuLock operator= (const ReadLock)=delete
 
- Private Attributes inherited from MyRcuLock< T >::ReadLock
MyRcuLock_lock
 

Detailed Description

The prefered way to read SSL parameters.

This is a scope lock class. So initialize it and hold it for as long as you need to access the data.

Note
It's OK to release it and still use the data ONLY if you apply other means to protect your data (e.g. SSL context reference counts etc).
See also
MyRcuLock, SslAcceptorContext

Constructor & Destructor Documentation

◆ AutoLock()

SslAcceptorContext::AutoLock::AutoLock ( )
inline

◆ ~AutoLock()

SslAcceptorContext::AutoLock::~AutoLock ( )
inline

Member Function Documentation

◆ empty()

bool SslAcceptorContext::AutoLock::empty ( )
inline

Check if the SSL context actually contains a valid SSL_CTX.

Return values
truethere's no valid SSL_CTX
falsethere's a valid SSL_CTX, SSL and st_VioSSLFd

◆ get_current_ca()

const char* SslAcceptorContext::AutoLock::get_current_ca ( )
inline

◆ get_current_capath()

const char* SslAcceptorContext::AutoLock::get_current_capath ( )
inline

◆ get_current_cert()

const char* SslAcceptorContext::AutoLock::get_current_cert ( )
inline

◆ get_current_cipher()

const char* SslAcceptorContext::AutoLock::get_current_cipher ( )
inline

◆ get_current_ciphersuites()

const char* SslAcceptorContext::AutoLock::get_current_ciphersuites ( )
inline

◆ get_current_crl()

const char* SslAcceptorContext::AutoLock::get_current_crl ( )
inline

◆ get_current_crlpath()

const char* SslAcceptorContext::AutoLock::get_current_crlpath ( )
inline

◆ get_current_key()

const char* SslAcceptorContext::AutoLock::get_current_key ( )
inline

◆ get_current_version()

const char* SslAcceptorContext::AutoLock::get_current_version ( )
inline

◆ operator SSL *()

SslAcceptorContext::AutoLock::operator SSL * ( )
inline

Access to the SSL from the protected SslAcceptorContext.

◆ operator SSL_CTX *()

SslAcceptorContext::AutoLock::operator SSL_CTX * ( )
inline

Access to the SSL_CTX from the protected SslAcceptorContext.

◆ operator struct st_VioSSLFd *()

SslAcceptorContext::AutoLock::operator struct st_VioSSLFd * ( )
inline

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