![]() |
MySQL 9.5.0
Source Code Documentation
|
#include <scope_guard.h>#include <sstream>#include <vector>#include "client/include/user_registration.h"#include "my_hostname.h"#include "my_inttypes.h"#include "my_sys.h"#include "mysql/service_mysql_alloc.h"#include "mysqld_error.h"Macros | |
| #define | QUERY_LENGTH 32768 |
| #define | MAX_QUERY_LENGTH 65536 |
| #define | ENCODING_LENGTH 4 |
| #define | CAPABILITY_BIT_LENGTH 1 |
Functions | |
| bool | parse_register_option (const char *what_factor, std::vector< unsigned int > &factors) |
| This helper method parses –register-factor option values, and inserts the parsed values in list. More... | |
| bool | user_device_registration (MYSQL *mysql_handle, char *register_option, char *errmsg) |
| This helper method is used to perform device registration against a user account. More... | |
| #define CAPABILITY_BIT_LENGTH 1 |
| #define ENCODING_LENGTH 4 |
| #define MAX_QUERY_LENGTH 65536 |
| #define QUERY_LENGTH 32768 |
| bool parse_register_option | ( | const char * | what_factor, |
| std::vector< unsigned int > & | factors | ||
| ) |
This helper method parses –register-factor option values, and inserts the parsed values in list.
| [in] | what_factor | Comma separated list of values, which specifies which factor requires registration. Valid values are "2", "3", "2,3" or "3,2" |
| [out] | factors | container holding individual factors |
| bool user_device_registration | ( | MYSQL * | mysql_handle, |
| char * | register_option, | ||
| char * | errmsg | ||
| ) |
This helper method is used to perform device registration against a user account.
Please refer How authentication_webauthn works? for more information.
| [in] | mysql_handle | mysql connection handle |
| [in] | register_option | Comma separated list of values, which specifies which factor requires registration. Valid values are "2", "3", "2,3" or "3,2" |
| [out] | errmsg | Buffer to hold error message in case of error. |