diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2019-03-19 16:46:01 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2019-03-19 16:46:01 +0000 |
commit | f82ffe2b3031072ad1bfdf589e945263a1696e3f (patch) | |
tree | b22f118434b52e101e07885028e84b1eab209808 /lib | |
parent | b6c6e148b542a3ac3b0c407708fbc86e884d4f82 (diff) | |
parent | e4c83eea960a43a38814ffd19cc5aae8ff1d206d (diff) | |
download | gnutls-f82ffe2b3031072ad1bfdf589e945263a1696e3f.tar.gz |
Merge branch 'tmp-fix-pkcs11-so' into 'master'
pkcs11: security officer login implies writable session
Closes #721
See merge request gnutls/gnutls!953
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pkcs11.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pkcs11.c b/lib/pkcs11.c index 2ec642bf8a..de5309b296 100644 --- a/lib/pkcs11.c +++ b/lib/pkcs11.c @@ -2254,7 +2254,7 @@ unsigned int pkcs11_obj_flags_to_int(unsigned int flags) ret_flags |= SESSION_LOGIN | SESSION_FORCE_LOGIN; if (flags & GNUTLS_PKCS11_OBJ_FLAG_LOGIN_SO) - ret_flags |= SESSION_LOGIN | SESSION_SO | SESSION_FORCE_LOGIN; + ret_flags |= SESSION_LOGIN | SESSION_SO | SESSION_FORCE_LOGIN | SESSION_WRITE; if (flags & GNUTLS_PKCS11_OBJ_FLAG_PRESENT_IN_TRUSTED_MODULE) ret_flags |= SESSION_TRUSTED; |