#include <my_global.h>
#include <my_sys.h>
#include <m_string.h>
#include <sha1.h>
#include "mysql.h"
'defines' |
#define | PVERSION41_CHAR '*' |
Funciones |
void | randominit (struct rand_struct *rand_st, ulong seed1, ulong seed2) |
double | my_rnd (struct rand_struct *rand_st) |
void | hash_password (ulong *result, const char *password, uint password_len) |
void | make_scrambled_password_323 (char *to, const char *password) |
void | scramble_323 (char *to, const char *message, const char *password) |
my_bool | check_scramble_323 (const char *scrambled, const char *message, ulong *hash_pass) |
void | get_salt_from_password_323 (ulong *res, const char *password) |
void | make_password_from_salt_323 (char *to, const ulong *salt) |
void | create_random_string (char *to, uint length, struct rand_struct *rand_st) |
char * | octet2hex (char *to, const char *str, uint len) |
void | make_scrambled_password (char *to, const char *password) |
void | scramble (char *to, const char *message, const char *password) |
my_bool | check_scramble (const char *scramble_arg, const char *message, const uint8 *hash_stage2) |
void | get_salt_from_password (uint8 *hash_stage2, const char *password) |
void | make_password_from_salt (char *to, const uint8 *hash_stage2) |
Documentación de los 'defines'
#define PVERSION41_CHAR '*' |
Documentación de las funciones
my_bool check_scramble |
( |
const char * |
scramble_arg, |
|
|
const char * |
message, |
|
|
const uint8 * |
hash_stage2 |
|
) |
| |
my_bool check_scramble_323 |
( |
const char * |
scrambled, |
|
|
const char * |
message, |
|
|
ulong * |
hash_pass |
|
) |
| |
void create_random_string |
( |
char * |
to, |
|
|
uint |
length, |
|
|
struct rand_struct * |
rand_st |
|
) |
| |
void get_salt_from_password |
( |
uint8 * |
hash_stage2, |
|
|
const char * |
password |
|
) |
| |
void get_salt_from_password_323 |
( |
ulong * |
res, |
|
|
const char * |
password |
|
) |
| |
void hash_password |
( |
ulong * |
result, |
|
|
const char * |
password, |
|
|
uint |
password_len |
|
) |
| |
void make_password_from_salt |
( |
char * |
to, |
|
|
const uint8 * |
hash_stage2 |
|
) |
| |
void make_password_from_salt_323 |
( |
char * |
to, |
|
|
const ulong * |
salt |
|
) |
| |
void make_scrambled_password |
( |
char * |
to, |
|
|
const char * |
password |
|
) |
| |
void make_scrambled_password_323 |
( |
char * |
to, |
|
|
const char * |
password |
|
) |
| |
char* octet2hex |
( |
char * |
to, |
|
|
const char * |
str, |
|
|
uint |
len |
|
) |
| |
void scramble |
( |
char * |
to, |
|
|
const char * |
message, |
|
|
const char * |
password |
|
) |
| |
void scramble_323 |
( |
char * |
to, |
|
|
const char * |
message, |
|
|
const char * |
password |
|
) |
| |