| 1560 | } |
| 1561 | |
| 1562 | char *Item_func_old_password::alloc(THD *thd, const char *password, |
| 1563 | size_t pass_len) |
| 1564 | { |
| 1565 | char *buff= (char *) thd->alloc(SCRAMBLED_PASSWORD_CHAR_LENGTH_323+1); |
| 1566 | if (buff) |
| 1567 | { |
| 1568 | my_make_scrambled_password_323(buff, password, pass_len); |
| 1569 | } |
| 1570 | return buff; |
| 1571 | } |
| 1572 | |
| 1573 | |
| 1574 | #define bin_to_ascii(c) ((c)>=38?((c)-38+'a'):(c)>=12?((c)-12+'A'):(c)+'.') |
no test coverage detected