MySQL 8.0.40
Source Code Documentation
|
#include <scope_guard.h>
#include <sstream>
#include <vector>
#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 2048 |
#define | MAX_QUERY_LENGTH 4096 |
Functions | |
static bool | parse_register_option (char *what_factor, std::vector< unsigned int > &list) |
This helper method parses –fido-register-factor option values, and inserts the parsed values in list. More... | |
bool | user_device_registration (MYSQL *mysql, char *register_option, char *errmsg) |
This helper method is used to perform device registration against a user account. More... | |
#define MAX_QUERY_LENGTH 4096 |
#define QUERY_LENGTH 2048 |
|
static |
This helper method parses –fido-register-factor option values, and inserts the parsed values in list.
[in] | what_factor | comma separated string containing what all factors are to be registered |
[out] | list | container holding individual factors |
bool user_device_registration | ( | MYSQL * | mysql, |
char * | register_option, | ||
char * | errmsg | ||
) |
This helper method is used to perform device registration against a user account.
Please refer How authentication_fido works? for more information.
mysql | mysql connection handle |
register_option | Comma separated list of values, which specifies which factor requires registration. Valid values are "2", "3", "2,3" or "3,2" |
errmsg | Buffer tol hold error message in case of error. |