get_password.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /* Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
  2. This program is free software; you can redistribute it and/or modify
  3. it under the terms of the GNU General Public License, version 2.0,
  4. as published by the Free Software Foundation.
  5. This program is also distributed with certain software (including
  6. but not limited to OpenSSL) that is licensed under separate terms,
  7. as designated in a particular file or component or in included license
  8. documentation. The authors of MySQL hereby grant you an additional
  9. permission to link the program and your derivative works with the
  10. separately licensed software that they have included with MySQL.
  11. This program is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. GNU General Public License, version 2.0, for more details.
  15. You should have received a copy of the GNU General Public License
  16. along with this program; if not, write to the Free Software
  17. Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
  18. /*
  19. ** Ask for a password from tty
  20. ** This is an own file to avoid conflicts with curses
  21. */
  22. #ifndef MYSQL_GET_PASSWORD_H_INCLUDED
  23. #define MYSQL_GET_PASSWORD_H_INCLUDED
  24. #ifdef __cplusplus
  25. extern "C" {
  26. #endif
  27. typedef char *(* strdup_handler_t)(const char *, int);
  28. char *get_tty_password_ext(const char *opt_message,
  29. strdup_handler_t strdup_function);
  30. #ifdef __cplusplus
  31. }
  32. #endif
  33. #endif /* ! MYSQL_GET_PASSWORD_H_INCLUDED */