[gnome-keyring] ssh-module: set CKF_LOGIN_REQUIRED flag



commit 62e1e058f4544430a5cc764dcd21c213f5c6550c
Author: James Bottomley <James Bottomley HansenPartnership com>
Date:   Fri Dec 9 20:09:08 2016 -0800

    ssh-module: set CKF_LOGIN_REQUIRED flag
    
    The ssh-module token requires a login to access private keys, so it
    should have the CKF_LOGIN_REQUIRED flag set.  Absent this, no other
    pkcs11 user knows to log in to find the private keys.
    
    Signed-off-by: James Bottomley <James Bottomley HansenPartnership com>
    Signed-off-by: Stef Walter <stefw redhat com>

 pkcs11/ssh-store/gkm-ssh-module.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/pkcs11/ssh-store/gkm-ssh-module.c b/pkcs11/ssh-store/gkm-ssh-module.c
index e1be98f..30eb031 100644
--- a/pkcs11/ssh-store/gkm-ssh-module.c
+++ b/pkcs11/ssh-store/gkm-ssh-module.c
@@ -49,7 +49,7 @@ static const CK_TOKEN_INFO gkm_ssh_module_token_info = {
        "Gnome Keyring",
        "1.0",
        "1:SSH:HOME", /* Unique serial number for manufacturer */
-       CKF_TOKEN_INITIALIZED | CKF_WRITE_PROTECTED | CKF_USER_PIN_INITIALIZED,
+       CKF_TOKEN_INITIALIZED | CKF_WRITE_PROTECTED | CKF_USER_PIN_INITIALIZED | CKF_LOGIN_REQUIRED,
        CK_EFFECTIVELY_INFINITE,
        CK_EFFECTIVELY_INFINITE,
        CK_EFFECTIVELY_INFINITE,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]