diff options
Diffstat (limited to 'src/ttu/tinytacutil.c')
| -rw-r--r-- | src/ttu/tinytacutil.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/ttu/tinytacutil.c b/src/ttu/tinytacutil.c index db15b76..21bb498 100644 --- a/src/ttu/tinytacutil.c +++ b/src/ttu/tinytacutil.c | |||
| @@ -54,7 +54,11 @@ | |||
| 54 | #include <errno.h> | 54 | #include <errno.h> |
| 55 | 55 | ||
| 56 | #include <tinytac.h> | 56 | #include <tinytac.h> |
| 57 | #include <bindle_prefix.h> | 57 | #ifdef HAVE_BINDLE_PREFIX_H |
| 58 | # include <bindle_prefix.h> | ||
| 59 | #else | ||
| 60 | # include <bindle.h> | ||
| 61 | #endif | ||
| 58 | 62 | ||
| 59 | 63 | ||
| 60 | /////////////////// | 64 | /////////////////// |
| @@ -339,7 +343,7 @@ ttu_file2str( | |||
| 339 | str[sb.st_size] = '\0'; | 343 | str[sb.st_size] = '\0'; |
| 340 | close(fd); | 344 | close(fd); |
| 341 | 345 | ||
| 342 | tinytacb_strchomp(str, NULL); | 346 | bindle_strchomp(str, NULL); |
| 343 | 347 | ||
| 344 | return(str); | 348 | return(str); |
| 345 | } | 349 | } |
| @@ -367,11 +371,11 @@ ttu_password( | |||
| 367 | // prompt for password | 371 | // prompt for password |
| 368 | if ((cnf->opts & TTUTILS_OPT_PASSPROMPT)) | 372 | if ((cnf->opts & TTUTILS_OPT_PASSPROMPT)) |
| 369 | { | 373 | { |
| 370 | if ((pass = tinytacb_getpass("Enter TACACS+ Password: ")) == NULL) | 374 | if ((pass = bindle_getpass("Enter TACACS+ Password: ")) == NULL) |
| 371 | return(ttu_error(cnf, 1, "getpass: %s", strerror(errno))); | 375 | return(ttu_error(cnf, 1, "getpass: %s", strerror(errno))); |
| 372 | if ((cnf->pass_buff)) | 376 | if ((cnf->pass_buff)) |
| 373 | free(cnf->pass_buff); | 377 | free(cnf->pass_buff); |
| 374 | if ((cnf->pass_buff = tinytacb_strdup(pass)) == NULL) | 378 | if ((cnf->pass_buff = bindle_strdup(pass)) == NULL) |
| 375 | return(ttu_error(cnf, 1, "%s", strerror(errno))); | 379 | return(ttu_error(cnf, 1, "%s", strerror(errno))); |
| 376 | cnf->pass = cnf->pass_buff; | 380 | cnf->pass = cnf->pass_buff; |
| 377 | }; | 381 | }; |
