Changeset 29

Show
Ignore:
Timestamp:
12/20/06 09:26:58 (2 years ago)
Author:
aj
Message:

smart card pins are sacret, we should not pass them to other code.
also this code was buggy (password instead of &password - see ticket #4).

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/pam_p11.c

    r23 r29  
    214214        } 
    215215 
    216         /* save password if variable nitem is set */ 
    217         rv = pam_set_item(pamh, PAM_AUTHTOK, &password); 
    218         if (rv != PAM_SUCCESS) { 
    219                 syslog(LOG_ERR, "pam_set_item failed"); 
    220                 rv = PAM_AUTHINFO_UNAVAIL; 
    221                 goto out; 
    222         } 
    223  
    224216        /* perform pkcs #11 login */ 
    225217        rv = PKCS11_login(slot, 0, password);