/mandos/trunk

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/trunk

« back to all changes in this revision

Viewing changes to client.cpp

  • Committer: Teddy Hogeborn
  • Date: 2008-01-19 04:09:06 UTC
  • Revision ID: teddy@fukt.bsnet.se-20080119040906-yjriaiqxbvzb93mq
* Makefile (client_debug): Bug fix; add quotes and / to CERT_ROOT.

* server.py (cred): Removed; no need for a global variable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
 
67
67
  struct termios t_old, t_new;
68
68
  int status = 0;
69
 
  
70
 
  if (tcgetattr (STDIN_FILENO, &t_old) != 0){
71
 
    return 1;
72
 
  }
73
 
  
 
69
 
74
70
  session = initgnutls ();
75
71
 
76
72
#ifdef DEBUG
114
110
  FD_ZERO(&rfds_orig);
115
111
  FD_SET(udp_sd, &rfds_orig);
116
112
  FD_SET(STDIN_FILENO, &rfds_orig);
117
 
  
 
113
 
 
114
 
 
115
  if (tcgetattr (STDIN_FILENO, &t_old) != 0){
 
116
    return 1;
 
117
  }
118
118
  t_new = t_old;
119
119
  t_new.c_lflag &= ~ECHO;
120
120
  if (tcsetattr (STDIN_FILENO, TCSAFLUSH, &t_new) != 0){