~ubuntu-branches/ubuntu/trusty/xulrunner/trusty

« back to all changes in this revision

Viewing changes to security/nss/lib/softoken/pkcs11i.h

  • Committer: Bazaar Package Importer
  • Author(s): Devid Antonio Filoni
  • Date: 2008-08-25 13:04:18 UTC
  • mfrom: (1.1.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20080825130418-ck1i2ms384tzb9m0
Tags: 1.8.1.16+nobinonly-0ubuntu1
* New upstream release (taken from upstream CVS), LP: #254618.
* Fix MFSA 2008-35, MFSA 2008-34, MFSA 2008-33, MFSA 2008-32, MFSA 2008-31,
  MFSA 2008-30, MFSA 2008-29, MFSA 2008-28, MFSA 2008-27, MFSA 2008-25,
  MFSA 2008-24, MFSA 2008-23, MFSA 2008-22, MFSA 2008-21, MFSA 2008-26 also
  known as CVE-2008-2933, CVE-2008-2785, CVE-2008-2811, CVE-2008-2810,
  CVE-2008-2809, CVE-2008-2808, CVE-2008-2807, CVE-2008-2806, CVE-2008-2805,
  CVE-2008-2803, CVE-2008-2802, CVE-2008-2801, CVE-2008-2800, CVE-2008-2798.
* Drop 89_bz419350_attachment_306066 patch, merged upstream.
* Bump Standards-Version to 3.8.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
88
88
 * NSS is a shared library.
89
89
 */
90
90
#define SPACE_ATTRIBUTE_HASH_SIZE 32 
91
 
#define SPACE_TOKEN_OBJECT_HASH_SIZE 32
 
91
#define SPACE_SESSION_OBJECT_HASH_SIZE 32
92
92
#define SPACE_SESSION_HASH_SIZE 32
93
93
#define TIME_ATTRIBUTE_HASH_SIZE 32
94
 
#define TIME_TOKEN_OBJECT_HASH_SIZE 1024
 
94
#define TIME_SESSION_OBJECT_HASH_SIZE 1024
95
95
#define TIME_SESSION_HASH_SIZE 1024
96
96
#define MAX_OBJECT_LIST_SIZE 800  
97
97
                                  /* how many objects to keep on the free list
319
319
 *
320
320
 * The array of sessionLock's protect the session hash table (head[])
321
321
 * as well as the reference count of session objects in that bucket
322
 
 * (head[]->refCount),  objectLock protects all elements of the token
323
 
 * object hash table (tokObjects[], tokenIDCount, and tokenHashTable),
 
322
 * (head[]->refCount),  objectLock protects all elements of the slot's
 
323
 * object hash tables (sessObjHashTable[] and tokObjHashTable), and
 
324
 * sessionObjectHandleCount.
324
325
 * slotLock protects the remaining protected elements:
325
326
 * password, isLoggedIn, ssoLoggedIn, and sessionCount,
326
327
 * and pwCheckLock serializes the key database password checks in
366
367
    int                 sessionCount;           /* variable - reset */
367
368
    PRInt32             rwSessionCount;         /* set by atomic operations */
368
369
                                                /* (reset) */
369
 
    int                 tokenIDCount;           /* variable - perserved */
 
370
    PRUint32            sessionObjectHandleCount; /* variable - preserved */
370
371
    int                 index;                  /* invariant */
371
 
    PLHashTable         *tokenHashTable;        /* invariant */
372
 
    SFTKObject          **tokObjects;           /* variable - reset */
373
 
    unsigned int        tokObjHashSize;         /* invariant */
 
372
    PLHashTable         *tokObjHashTable;       /* invariant */
 
373
    SFTKObject          **sessObjHashTable;     /* variable - reset */
 
374
    unsigned int        sessObjHashSize;        /* invariant */
374
375
    SFTKSession         **head;                 /* variable -reset */
375
376
    unsigned int        sessHashSize;           /* invariant */
376
377
    char                tokDescription[33];     /* per load */