~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzleclient/get_password.cc

Moved the last of the libdrizzleclient calls into Protocol.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
** Ask for a password from tty
22
22
** This is an own file to avoid conflicts with curses
23
23
*/
 
24
#include <drizzled/global.h>
24
25
#include "libdrizzle.h"
 
26
#include "get_password.h"
25
27
 
26
28
#include <string.h>
27
29
#include <stdio.h>
28
30
#include <stdlib.h>
29
31
#include <ctype.h>
 
32
#include <unistd.h>
30
33
 
31
34
#include <sys/ioctl.h>
32
35
#ifdef HAVE_TERMIOS_H                           /* For tty-password */
88
91
}
89
92
 
90
93
 
91
 
char *get_tty_password(const char *opt_message)
 
94
char *drizzleclient_get_tty_password(const char *opt_message)
92
95
{
93
96
  TERMIO org,tmp;
94
97
  char buff[80];