~ubuntu-branches/ubuntu/raring/nss/raring-security

« back to all changes in this revision

Viewing changes to mozilla/security/nss/lib/pk11wrap/pk11auth.c

  • Committer: Bazaar Package Importer
  • Author(s): Chris Coulson
  • Date: 2010-03-25 13:46:06 UTC
  • mfrom: (1.1.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20100325134606-bl6liuok2w9l7snv
Tags: 3.12.6-0ubuntu1
* New upstream release 3.12.6 RTM (NSS_3_12_6_RTM)
  - fixes CVE-2009-3555 aka US-CERT VU#120541
* Adjust patches to changed upstream code base
  - update debian/patches/38_kbsd.patch
  - update debian/patches/38_mips64_build.patch
  - update debian/patches/85_security_load.patch
* Remove patches that are merged upstream
  - delete debian/patches/91_nonexec_stack.patch
  - update debian/patches/series
* Bump nspr dependency to 4.8
  - update debian/control
* Add new symbols for 3.12.6
  - update debian/libnss3-1d.symbols

Show diffs side-by-side

added added

removed removed

Lines of Context:
483
483
    int oldLen;
484
484
    CK_SESSION_HANDLE rwsession;
485
485
 
486
 
    if (newpw == NULL) newpw = "";
487
 
    if (oldpw == NULL) oldpw = "";
488
 
    newLen = PORT_Strlen(newpw);
489
 
    oldLen = PORT_Strlen(oldpw);
 
486
    /* use NULL values to trigger the protected authentication path */
 
487
    if (slot->protectedAuthPath) {
 
488
        if (newpw == NULL) newLen = 0;
 
489
        if (oldpw == NULL) oldLen = 0;
 
490
    } else {
 
491
        if (newpw == NULL) newpw = "";
 
492
        if (oldpw == NULL) oldpw = "";
 
493
        newLen = PORT_Strlen(newpw);
 
494
        oldLen = PORT_Strlen(oldpw);
 
495
    }
 
496
 
490
497
 
491
498
    /* get a rwsession */
492
499
    rwsession = PK11_GetRWSession(slot);
630
637
void PK11_LogoutAll(void)
631
638
{
632
639
    SECMODListLock *lock = SECMOD_GetDefaultModuleListLock();
633
 
    SECMODModuleList *modList = SECMOD_GetDefaultModuleList();
 
640
    SECMODModuleList *modList;
634
641
    SECMODModuleList *mlp = NULL;
635
642
    int i;
636
643
 
640
647
    }
641
648
 
642
649
    SECMOD_GetReadLock(lock);
 
650
    modList = SECMOD_GetDefaultModuleList();
643
651
    /* find the number of entries */
644
652
    for (mlp = modList; mlp != NULL; mlp = mlp->next) {
645
653
        for (i=0; i < mlp->module->slotCount; i++) {