5d2a20b Ticket #47596 attrcrypt fails to find unlocked key

Authored and Committed by rmeggins 7 years ago
    Ticket #47596 attrcrypt fails to find unlocked key
    
    https://fedorahosted.org/389/ticket/47596
    Reviewed by: nkinder (Thanks!)
    Branch: 389-ds-base-1.3.1
    Fix Description: Additional fix to the previous fix.  As it turns out, the
    function PK11_IsLoggedIn() only returns true if the slot has been unlocked
    with a pin or password.  If the slot does not need a login at all, because
    the cert/key db has no password, PK11_IsLoggedIn will return false.  The code
    must check for PK11_NeedLogin too.
    Platforms tested: RHEL6 x86_64
    Flag Day: no
    Doc impact: no
    (cherry picked from commit e66c4cecc47eff659a72a51c1e1722fb41c1dfbc)
    (cherry picked from commit f608a943745e51fe4b5dbfb18bada2e2d13e0d6a)
    
        
file modified
+1 -1