diff options
author | Alexander Barkov <bar@mnogosearch.org> | 2013-12-14 15:37:55 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mnogosearch.org> | 2013-12-14 15:37:55 +0400 |
commit | d8ac8d187d09303cb6fc0ee67216f8144ce5a053 (patch) | |
tree | bb83f59549c6dbc830b480f50dbe14cad1f0c64f /sql/item_strfunc.h | |
parent | 1e711c8d0471d509ec1c981bd353dfe1150fdd39 (diff) | |
parent | 0c0fe7a8623db29ae810df9b8c83b49d9ca86cc5 (diff) | |
download | mariadb-git-d8ac8d187d09303cb6fc0ee67216f8144ce5a053.tar.gz |
Merge 10.0->10.0-connect
Diffstat (limited to 'sql/item_strfunc.h')
-rw-r--r-- | sql/item_strfunc.h | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/sql/item_strfunc.h b/sql/item_strfunc.h index 6709b4b64c6..4b9ec50c164 100644 --- a/sql/item_strfunc.h +++ b/sql/item_strfunc.h @@ -21,8 +21,6 @@ /* This file defines all string functions */ -#include "crypt_genhash_impl.h" - #ifdef USE_PRAGMA_INTERFACE #pragma interface /* gcc class implementation */ #endif @@ -394,21 +392,16 @@ public: class Item_func_password :public Item_str_ascii_func { - char m_hashed_password_buffer[CRYPT_MAX_PASSWORD_SIZE + 1]; - unsigned int m_hashed_password_buffer_len; - bool m_recalculate_password; + char tmp_value[SCRAMBLED_PASSWORD_CHAR_LENGTH+1]; public: - Item_func_password(Item *a) :Item_str_ascii_func(a) + Item_func_password(Item *a) :Item_str_ascii_func(a) {} + String *val_str_ascii(String *str); + void fix_length_and_dec() { - m_hashed_password_buffer_len= 0; - m_recalculate_password= false; + fix_length_and_charset(SCRAMBLED_PASSWORD_CHAR_LENGTH, default_charset()); } - String *val_str_ascii(String *str); - void fix_length_and_dec(); const char *func_name() const { return "password"; } static char *alloc(THD *thd, const char *password, size_t pass_len); - static char *create_password_hash_buffer(THD *thd, const char *password, - size_t pass_len); }; |