|
static std::optional< std::string > | scramble (std::string_view nonce, std::string_view pwd) |
|
static stdx::expected< size_t, std::error_code > | send_public_key_request (Channel *dst_channel, ClassicProtocolState *dst_protocol) |
|
static stdx::expected< size_t, std::error_code > | send_public_key (Channel *dst_channel, ClassicProtocolState *dst_protocol, const std::string &public_key) |
|
static stdx::expected< size_t, std::error_code > | send_plaintext_password (Channel *dst_channel, ClassicProtocolState *dst_protocol, const std::string &password) |
|
static stdx::expected< size_t, std::error_code > | send_encrypted_password (Channel *dst_channel, ClassicProtocolState *dst_protocol, const std::string &password) |
|
static bool | is_public_key_request (const std::string_view &data) |
|
static bool | is_public_key (const std::string_view &data) |
|
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) |
|