aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/ttu/tinytacutil.c
diff options
context:
space:
mode:
authorDavid M. Syzdek <david@syzdek.net>2022-06-13 14:42:51 -0800
committerDavid M. Syzdek <david@syzdek.net>2022-06-13 14:42:51 -0800
commit8c25026a61da8cdddb22a643a255f20872da07b3 (patch)
tree7307d363e69fb92c471d32dfd1bf974dc2440335 /src/ttu/tinytacutil.c
parent93412148b703de0726144ed6063af49e1e081658 (diff)
downloadtinytac-8c25026a61da8cdddb22a643a255f20872da07b3.tar.gz
tinytac-8c25026a61da8cdddb22a643a255f20872da07b3.tar.bz2
tinytac-8c25026a61da8cdddb22a643a255f20872da07b3.tar.xz
tinytac-8c25026a61da8cdddb22a643a255f20872da07b3.zip
tinytac: replacing tinytacb_XXX() with bindle_XXX()
Diffstat (limited to 'src/ttu/tinytacutil.c')
-rw-r--r--src/ttu/tinytacutil.c12
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 };