~ubuntu-branches/ubuntu/oneiric/squid3/oneiric-security

« back to all changes in this revision

Viewing changes to src/authenticate.cc

  • Committer: Bazaar Package Importer
  • Author(s): Luigi Gangitano
  • Date: 2007-05-13 16:03:16 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20070513160316-2h6kn6h1z0q1fvyo
Tags: 3.0.PRE6-1
* New upstream release
  - Removed patches integrated upsteam:
    + 04-m68k-ftbfs

* debian/rules
  - Enable delay pools (Closes: #410785)
  - Enable cache digests (Closes: #416631)
  - Enable ICAP client
  - Raised Max Filedescriptor limit to 65536

* debian/control
  - Added real package dependency for httpd in squid3-cgi

* debian/patches/02-makefile-defaults
  - Fix default configuration file for cachemgr.cgi (Closes: #416630)

* debian/squid3.postinst
  - Fixed bashish in postinst (Closes: #411797)

* debian/patches/05-helpers-typo
  - Added upstream patch fixing compilation error in src/helpers.cc

* debian/patches/06-mem-obj-reference
  - Added upstream patch fixing a mem_obj reference in src/store.cc

* debian/patches/07-close-icap-connections
  - Added upstream patch fixing icap connection starvation

* debian/squid3.rc
  - Added LSB-compliant description to rc script

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
 
2
2
/*
3
 
 * $Id: authenticate.cc,v 1.67 2006/05/29 00:15:01 robertc Exp $
 
3
 * $Id: authenticate.cc,v 1.68 2007/04/28 22:26:37 hno Exp $
4
4
 *
5
5
 * DEBUG: section 29    Authenticator
6
6
 * AUTHOR:  Robert Collins
58
58
        if ((*i)->configured())
59
59
            ++rv;
60
60
 
61
 
    debug(29, 9) ("authenticateActiveSchemeCount: %d active.\n", rv);
 
61
    debugs(29, 9, "authenticateActiveSchemeCount: " << rv << " active.");
62
62
 
63
63
    return rv;
64
64
}
68
68
{
69
69
    int rv = AuthScheme::Schemes().size();
70
70
 
71
 
    debug(29, 9) ("authenticateSchemeCount: %d active.\n", rv);
 
71
    debugs(29, 9, "authenticateSchemeCount: " << rv << " active.");
72
72
 
73
73
    return rv;
74
74
}
101
101
void
102
102
authenticateShutdown(void)
103
103
{
104
 
    debug(29, 2) ("authenticateShutdown: shutting down auth schemes\n");
 
104
    debugs(29, 2, "authenticateShutdown: shutting down auth schemes");
105
105
    /* free the cache if we are shutting down */
106
106
 
107
107
    if (shutting_down) {
137
137
{
138
138
    AuthUserHashPointer *usernamehash;
139
139
    auth_user_t *auth_user;
140
 
    debug(29, 3) ("authenticateUserCacheRestart: Clearing config dependent cache data.\n");
 
140
    debugs(29, 3, "authenticateUserCacheRestart: Clearing config dependent cache data.");
141
141
    hash_first(proxy_auth_username_cache);
142
142
 
143
143
    while ((usernamehash = ((AuthUserHashPointer *) hash_next(proxy_auth_username_cache)))) {
144
144
        auth_user = usernamehash->user();
145
 
        debug(29, 5) ("authenticateUserCacheRestat: Clearing cache ACL results for user: %s\n", auth_user->username());
 
145
        debugs(29, 5, "authenticateUserCacheRestat: Clearing cache ACL results for user: " << auth_user->username());
146
146
    }
147
147
 
148
148
}
156
156
    auth_user_t *auth_user = usernamehash->auth_user;
157
157
 
158
158
    if ((authenticateAuthUserInuse(auth_user) - 1))
159
 
        debug(29, 1) ("AuthUserHashPointer::removeFromCache: entry in use - not freeing\n");
 
159
        debugs(29, 1, "AuthUserHashPointer::removeFromCache: entry in use - not freeing");
160
160
 
161
161
    auth_user->unlock();
162
162