diff options
Diffstat (limited to 'examples/tacacs-example.c')
| -rw-r--r-- | examples/tacacs-example.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/tacacs-example.c b/examples/tacacs-example.c index 1f08e33..87a0395 100644 --- a/examples/tacacs-example.c +++ b/examples/tacacs-example.c | |||
| @@ -56,6 +56,7 @@ | |||
| 56 | #include <sys/time.h> | 56 | #include <sys/time.h> |
| 57 | #include <pwd.h> | 57 | #include <pwd.h> |
| 58 | #include <unistd.h> | 58 | #include <unistd.h> |
| 59 | #include <signal.h> | ||
| 59 | 60 | ||
| 60 | #ifdef HAVE_TERMIOS_H | 61 | #ifdef HAVE_TERMIOS_H |
| 61 | # include <termios.h> | 62 | # include <termios.h> |
| @@ -94,6 +95,9 @@ | |||
| 94 | #define MY_DEBUGMORE 0x0008U | 95 | #define MY_DEBUGMORE 0x0008U |
| 95 | 96 | ||
| 96 | 97 | ||
| 98 | #define MY_PASSWORD_LEN 512 | ||
| 99 | |||
| 100 | |||
| 97 | #ifndef SO_NOSIGPIPE | 101 | #ifndef SO_NOSIGPIPE |
| 98 | # define SO_NOSIGPIPE SO_REUSEADDR | 102 | # define SO_NOSIGPIPE SO_REUSEADDR |
| 99 | #endif | 103 | #endif |
| @@ -507,7 +511,7 @@ my_cmd_authen( | |||
| 507 | size_t port_len; | 511 | size_t port_len; |
| 508 | size_t rem_addr_len; | 512 | size_t rem_addr_len; |
| 509 | size_t data_len; | 513 | size_t data_len; |
| 510 | char pass[_PASSWORD_LEN+1]; | 514 | char pass[MY_PASSWORD_LEN+1]; |
| 511 | const char * msg; | 515 | const char * msg; |
| 512 | char * str; | 516 | char * str; |
| 513 | 517 | ||
