Re: [squid-users] Re: ncsa_auth.c:143: undefined reference to `crypt'

From: Henrik Nordstrom <henrik@dont-contact.us>
Date: Sun, 05 Nov 2006 00:28:12 +0100

lör 2006-11-04 klockan 16:45 -0600 skrev Xavier O'Neill:

> I am attempting to build squid 2.6 from src's on a Windows XP pro system.

You need libcrypt, or to disable the use of UNIX crypt() hashed
passwords.

To disable the use of UNIX crypt() hashed passwords uncomment the
following two lines in ncsa_auth.c:

        } else if (strcmp(u->passwd, (char *) crypt(passwd, u->passwd)) == 0) {
            printf("OK\n");

The password file can be created with htpasswd -m

I have fixed the next release so this (disabling crypt) is not needed to
be done by hand when not supported by the host platform. Patch should be
available in the changesets section in a few hours.

Regards
Henrik

Received on Sat Nov 04 2006 - 16:28:17 MST

This archive was generated by hypermail pre-2.1.9 : Fri Dec 01 2006 - 12:00:02 MST