Skip to content

Commit

Permalink
passwords >8chars on Solaris, nitpicky solaris LIBS
Browse files Browse the repository at this point in the history
  • Loading branch information
frodwith authored and kylef committed Apr 4, 2011
1 parent 5cf5775 commit 2c6a54b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions Utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,11 @@ CString CUtils::SaltedSHA256Hash(const CString& sPass, const CString& sSalt) {

CString CUtils::GetPass(const CString& sPrompt) {
PrintPrompt(sPrompt);
#ifdef HAVE_GETPASSPHRASE
return getpassphrase("");
#else
return getpass("");
#endif
}

bool CUtils::GetBoolInput(const CString& sPrompt, bool bDefault) {
Expand Down
4 changes: 2 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ case "${host_os}" in
appendMod -L/usr/local/lib
;;
solaris*)
appendLib -lsocket -lnsl
appendLib -lsocket -lnsl -lresolv
ISSUN=1
;;
cygwin)
Expand Down Expand Up @@ -181,7 +181,7 @@ if test "$POLL" = "yes"; then
fi

AC_CHECK_LIB( gnugetopt, getopt_long,)
AC_CHECK_FUNCS([lstat getopt_long])
AC_CHECK_FUNCS([lstat getopt_long getphassphrase])
PKG_PROG_PKG_CONFIG()

# ----- Check for dlopen
Expand Down

0 comments on commit 2c6a54b

Please sign in to comment.