summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2019-03-19 16:46:01 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2019-03-19 16:46:01 +0000
commitf82ffe2b3031072ad1bfdf589e945263a1696e3f (patch)
treeb22f118434b52e101e07885028e84b1eab209808 /lib
parentb6c6e148b542a3ac3b0c407708fbc86e884d4f82 (diff)
parente4c83eea960a43a38814ffd19cc5aae8ff1d206d (diff)
downloadgnutls-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.c2
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;