PostgreSQL based authentication for Squid

Download: pgsql_auth.c

1) Save the above file as "pgsql_auth.c".
2) Compile it with: gcc -o pgsql_auth pgsql_auth.c -lpq