Ticket #22: pam_pkcs11-0.6.2-login_required.patch

File pam_pkcs11-0.6.2-login_required.patch, 581 bytes (added by bob@…, 2 years ago)

This patch addes the required file

  • ./src/common/pkcs11_lib.c

    diff -up ./src/common/pkcs11_lib.c.login_required ./src/common/pkcs11_lib.c
    old new int pkcs11_login(pkcs11_handle_t *h, cha 
    662662  return (rv == SECSuccess) ? 0 : -1; 
    663663} 
    664664 
     665int get_slot_login_required(pkcs11_handle_t *h) 
     666{ 
     667  if (h->slot == NULL) { 
     668    DBG("Login failed: No Slot selected"); 
     669    return -1; 
     670  } 
     671 
     672  return PK11_NeedLogin(h->slot); 
     673} 
     674 
    665675int close_pkcs11_session(pkcs11_handle_t *h) 
    666676{ 
    667677  if (h->slot) {