MySQL 9.1.0
Source Code Documentation
my_openssl_fips.h File Reference

Go to the source code of this file.

Functions

bool set_fips_mode (const int fips_mode, char err_string[OPENSSL_ERROR_LENGTH])
 Turns FIPs mode on or off. More...
 
int get_fips_mode ()
 Get fips mode from openssl library,. More...
 
int test_ssl_fips_mode (char err_string[OPENSSL_ERROR_LENGTH])
 Toggle FIPS mode, to see whether it is available with the current SSL library. More...
 
void fips_deinit ()
 
void fips_init ()
 

Variables

constexpr int OPENSSL_ERROR_LENGTH {512}
 

Function Documentation

◆ fips_deinit()

void fips_deinit ( )

◆ fips_init()

void fips_init ( )

◆ get_fips_mode()

int get_fips_mode ( )

Get fips mode from openssl library,.

Returns
openssl current fips mode

◆ set_fips_mode()

bool set_fips_mode ( const int  fips_mode,
char  err_string[OPENSSL_ERROR_LENGTH] 
)

Turns FIPs mode on or off.

Parameters
[in]fips_mode0 for fips mode off, non-zero for fips mode ON
[out]err_stringIf fips mode set fails, err_string will have detail failure reason.
Returns
openssl set fips mode errors
Return values
truefor error
falsefor success

◆ test_ssl_fips_mode()

int test_ssl_fips_mode ( char  err_string[OPENSSL_ERROR_LENGTH])

Toggle FIPS mode, to see whether it is available with the current SSL library.

Return values
0FIPS is not supported.
non-zeroFIPS is supported.

Variable Documentation

◆ OPENSSL_ERROR_LENGTH

constexpr int OPENSSL_ERROR_LENGTH {512}
constexpr