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) |
|---|
-
./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 662 662 return (rv == SECSuccess) ? 0 : -1; 663 663 } 664 664 665 int 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 665 675 int close_pkcs11_session(pkcs11_handle_t *h) 666 676 { 667 677 if (h->slot) {
