dnl
dnl Duane Wessels, wessels@nlanr.net, February 1996 (autoconf v2.9)
dnl
-dnl $Id: configure.in,v 1.277 2002/07/07 18:18:11 hno Exp $
+dnl $Id: configure.in,v 1.278 2002/07/15 21:24:48 hno Exp $
dnl
dnl
dnl
AC_CONFIG_AUX_DIR(cfgaux)
AM_INIT_AUTOMAKE(squid, 2.6-DEVEL)
AM_CONFIG_HEADER(include/autoconf.h)
-AC_REVISION($Revision: 1.277 $)dnl
+AC_REVISION($Revision: 1.278 $)dnl
AC_PREFIX_DEFAULT(/usr/local/squid)
AM_MAINTAINER_MODE
fchmod \
getdtablesize \
getpagesize \
+ getpass \
getrlimit \
getrusage \
getspnam \
/*
- * $Id: client.cc,v 1.98 2002/07/15 21:18:32 hno Exp $
+ * $Id: client.cc,v 1.99 2002/07/15 21:24:48 hno Exp $
*
* DEBUG: section 0 WWW Client
* AUTHOR: Harvest Derived
if (proxy_user) {
char *user = proxy_user;
char *password = proxy_password;
+#if HAVE_GETPASS
if (!password)
password = getpass("Proxy password: ");
- if (password) {
- snprintf(buf, BUFSIZ, "%s:%s", user, password);
- snprintf(buf, BUFSIZ, "Proxy-Authorization: Basic %s\n", base64_encode(buf));
- strcat(msg, buf);
+#endif
+ if (!password) {
+ fprintf(stderr, "ERROR: Proxy password missing\n");
+ exit(1);
}
+ snprintf(buf, BUFSIZ, "%s:%s", user, password);
+ snprintf(buf, BUFSIZ, "Proxy-Authorization: Basic %s\n", base64_encode(buf));
+ strcat(msg, buf);
}
if (www_user) {
char *user = www_user;
char *password = www_password;
+#if HAVE_GETPASS
if (!password)
password = getpass("WWW password: ");
- if (password) {
- snprintf(buf, BUFSIZ, "%s:%s", user, password);
- snprintf(buf, BUFSIZ, "Authorization: Basic %s\n", base64_encode(buf));
- strcat(msg, buf);
+#endif
+ if (!password) {
+ fprintf(stderr, "ERROR: WWW password missing\n");
+ exit(1);
}
+ snprintf(buf, BUFSIZ, "%s:%s", user, password);
+ snprintf(buf, BUFSIZ, "Authorization: Basic %s\n", base64_encode(buf));
+ strcat(msg, buf);
}
if (keep_alive) {
if (port != 80)