Skip to content

File authenticate_password.hpp

FileList > cubrid > src > object > authenticate_password.hpp

Go to the source code of this file

  • #include "dbtype_def.h"

Public Functions

Type Name
int au_set_password_internal (MOP user, const char * password, int encode, char encrypt_prefix)
void encrypt_password (const char * pass, int add_prefix, char * dest)
void encrypt_password_sha1 (const char * pass, int add_prefix, char * dest)
void encrypt_password_sha2_512 (const char * pass, char * dest)
bool match_password (const char * user, const char * database)

Macros

Type Name
define AU_MAX_COMMENT_CHARS [**SM\_MAX\_COMMENT\_LENGTH**](class__object_8h.md#define-sm_max_comment_length)
define AU_MAX_PASSWORD_BUF 2048
define AU_MAX_PASSWORD_CHARS 31
define ENCODE_PREFIX_DEFAULT ([**char**](broker__monitor_8c.md#function-timeout))0
define ENCODE_PREFIX_DES ([**char**](broker__monitor_8c.md#function-timeout))1
define ENCODE_PREFIX_SHA1 ([**char**](broker__monitor_8c.md#function-timeout))2
define ENCODE_PREFIX_SHA2_512 ([**char**](broker__monitor_8c.md#function-timeout))3
define IS_ENCODED_ANY (string) ([**IS\_ENCODED\_SHA2\_512**](authenticate__password_8hpp.md#define-is_encoded_sha2_512) (string) \|\| [**IS\_ENCODED\_SHA1**](authenticate__password_8hpp.md#define-is_encoded_sha1) (string) \|\| [**IS\_ENCODED\_DES**](authenticate__password_8hpp.md#define-is_encoded_des) (string))
define IS_ENCODED_DES (string) (string[0] == [**ENCODE\_PREFIX\_DES**](authenticate__password_8hpp.md#define-encode_prefix_des))
define IS_ENCODED_SHA1 (string) (string[0] == [**ENCODE\_PREFIX\_SHA1**](authenticate__password_8hpp.md#define-encode_prefix_sha1))
define IS_ENCODED_SHA2_512 (string) (string[0] == [**ENCODE\_PREFIX\_SHA2\_512**](authenticate__password_8hpp.md#define-encode_prefix_sha2_512))
define PASSWORD_ENCRYPTION_SEED "U9a$y1@[**zw~a0**](broker__monitor_8c.md#function-timeout)%"

Public Functions Documentation

function au_set_password_internal

int au_set_password_internal (
    MOP user,
    const  char * password,
    int encode,
    char encrypt_prefix
) 

function encrypt_password

void encrypt_password (
    const  char * pass,
    int add_prefix,
    char * dest
) 

function encrypt_password_sha1

void encrypt_password_sha1 (
    const  char * pass,
    int add_prefix,
    char * dest
) 

function encrypt_password_sha2_512

void encrypt_password_sha2_512 (
    const  char * pass,
    char * dest
) 

function match_password

bool match_password (
    const  char * user,
    const  char * database
) 

Macro Definition Documentation

define AU_MAX_COMMENT_CHARS

#define AU_MAX_COMMENT_CHARS `SM_MAX_COMMENT_LENGTH`

define AU_MAX_PASSWORD_BUF

#define AU_MAX_PASSWORD_BUF `2048`

define AU_MAX_PASSWORD_CHARS

#define AU_MAX_PASSWORD_CHARS `31`

define ENCODE_PREFIX_DEFAULT

#define ENCODE_PREFIX_DEFAULT `( char )0`

define ENCODE_PREFIX_DES

#define ENCODE_PREFIX_DES `( char )1`

define ENCODE_PREFIX_SHA1

#define ENCODE_PREFIX_SHA1 `( char )2`

define ENCODE_PREFIX_SHA2_512

#define ENCODE_PREFIX_SHA2_512 `( char )3`

define IS_ENCODED_ANY

#define IS_ENCODED_ANY (
    string
) `( IS_ENCODED_SHA2_512 (string) || IS_ENCODED_SHA1 (string) || IS_ENCODED_DES (string))`

define IS_ENCODED_DES

#define IS_ENCODED_DES (
    string
) `(string[0] == ENCODE_PREFIX_DES )`

define IS_ENCODED_SHA1

#define IS_ENCODED_SHA1 (
    string
) `(string[0] == ENCODE_PREFIX_SHA1 )`

define IS_ENCODED_SHA2_512

#define IS_ENCODED_SHA2_512 (
    string
) `(string[0] == ENCODE_PREFIX_SHA2_512 )`

define PASSWORD_ENCRYPTION_SEED

#define PASSWORD_ENCRYPTION_SEED `"U9a$y1@ zw~a0 %"`


The documentation for this class was generated from the following file cubrid/src/object/authenticate_password.hpp