diff options
author | unknown <tonu@volk.internalnet> | 2001-11-06 22:57:14 +0200 |
---|---|---|
committer | unknown <tonu@volk.internalnet> | 2001-11-06 22:57:14 +0200 |
commit | b37c7d4a3d95cbd49ddad29aadd90b62587aaabe (patch) | |
tree | b8300ea238ea41d9c4b94a1ccd7fa538ff7a2ea1 /sql/item_strfunc.h | |
parent | 8cba75e56fa34ea5d997125d24fbc540a9b3c43e (diff) | |
download | mariadb-git-b37c7d4a3d95cbd49ddad29aadd90b62587aaabe.tar.gz |
des_encrypt(), des_decrypt() functions added. Not finally ready yet, so I will clean it up later.
sql/item_strfunc.cc:
des_encrypt(), des_decrypt() functions added
sql/item_strfunc.h:
des_encrypt(), des_decrypt() functions added
sql/lex.h:
des_encrypt(), des_decrypt() functions added
Diffstat (limited to 'sql/item_strfunc.h')
-rw-r--r-- | sql/item_strfunc.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/sql/item_strfunc.h b/sql/item_strfunc.h index 59bb815f0c3..7bd587e44a9 100644 --- a/sql/item_strfunc.h +++ b/sql/item_strfunc.h @@ -222,6 +222,26 @@ public: const char *func_name() const { return "password"; } }; +class Item_func_des_encrypt :public Item_str_func +{ + String tmp_value; +public: + Item_func_des_encrypt(Item *a) :Item_str_func(a) {} + Item_func_des_encrypt(Item *a, Item *b): Item_str_func(a,b) {} + String *val_str(String *); + void fix_length_and_dec() { maybe_null=1; max_length = 13; } +}; + +class Item_func_des_decrypt :public Item_str_func +{ + String tmp_value; +public: + Item_func_des_decrypt(Item *a) :Item_str_func(a) {} + Item_func_des_decrypt(Item *a, Item *b): Item_str_func(a,b) {} + String *val_str(String *); + void fix_length_and_dec() { maybe_null=1; max_length = 13; } +}; + class Item_func_encrypt :public Item_str_func { String tmp_value; |