#include <classic_auth.h>
|
static stdx::expected< std::string, std::error_code > | public_key_from_ssl_ctx_as_pem (SSL_CTX *ssl_ctx) |
|
static stdx::expected< EvpPkey, std::error_code > | public_key_from_pem (std::string_view pubkey) |
|
static stdx::expected< std::string, std::error_code > | public_key_encrypt (std::string plaintext, EVP_PKEY *pkey) |
|
static stdx::expected< std::string, std::error_code > | private_key_decrypt (std::string_view ciphertext, EVP_PKEY *priv) |
|
static stdx::expected< std::string, std::error_code > | rsa_decrypt_password (SSL_CTX *ssl_ctx, std::string_view encrypted, std::string_view nonce) |
|
static stdx::expected< std::string, std::error_code > | rsa_encrypt_password (const EvpPkey &pkey, std::string_view password, std::string_view nonce) |
|
static std::string_view | strip_trailing_null (std::string_view s) |
| remove trailing \0 in a string_view. More...
|
|
static bool | connection_has_public_key (MysqlRoutingClassicConnectionBase *connection) |
|
◆ connection_has_public_key()
◆ private_key_decrypt()
stdx::expected< std::string, std::error_code > AuthBase::private_key_decrypt |
( |
std::string_view |
ciphertext, |
|
|
EVP_PKEY * |
priv |
|
) |
| |
|
static |
◆ public_key_encrypt()
stdx::expected< std::string, std::error_code > AuthBase::public_key_encrypt |
( |
std::string |
plaintext, |
|
|
EVP_PKEY * |
pkey |
|
) |
| |
|
static |
◆ public_key_from_pem()
◆ public_key_from_ssl_ctx_as_pem()
stdx::expected< std::string, std::error_code > AuthBase::public_key_from_ssl_ctx_as_pem |
( |
SSL_CTX * |
ssl_ctx | ) |
|
|
static |
◆ rsa_decrypt_password()
stdx::expected< std::string, std::error_code > AuthBase::rsa_decrypt_password |
( |
SSL_CTX * |
ssl_ctx, |
|
|
std::string_view |
encrypted, |
|
|
std::string_view |
nonce |
|
) |
| |
|
static |
◆ rsa_encrypt_password()
stdx::expected< std::string, std::error_code > AuthBase::rsa_encrypt_password |
( |
const EvpPkey & |
pkey, |
|
|
std::string_view |
password, |
|
|
std::string_view |
nonce |
|
) |
| |
|
static |
◆ strip_trailing_null()
std::string_view AuthBase::strip_trailing_null |
( |
std::string_view |
s | ) |
|
|
static |
remove trailing \0 in a string_view.
returns the original string-view, if there is no trailing NUL-char.
The documentation for this class was generated from the following files: