diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-06-28 21:02:02 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-06-28 21:02:02 +0200 |
commit | 5c70162532b8fc8dfc3adb359e2f866945761c22 (patch) | |
tree | e7473667e9ed83b5908bd29d8e4a19af48f6061e /src/pkcs11.c | |
parent | a9801fddb8d28acf0685f111add562c6c4b3a689 (diff) | |
download | gnutls-5c70162532b8fc8dfc3adb359e2f866945761c22.tar.gz |
When copying a private key the sensitive flag can be set or not. This allows
copying private keys that can be exported.
Diffstat (limited to 'src/pkcs11.c')
-rw-r--r-- | src/pkcs11.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkcs11.c b/src/pkcs11.c index ae28a84e2f..02489ea479 100644 --- a/src/pkcs11.c +++ b/src/pkcs11.c @@ -411,7 +411,7 @@ unsigned int key_usage; xkey = load_private_key(0); if (xkey != NULL) { - ret = gnutls_pkcs11_copy_x509_privkey(url, xkey, label, key_usage, flags); + ret = gnutls_pkcs11_copy_x509_privkey(url, xkey, label, key_usage, flags|GNUTLS_PKCS11_OBJ_FLAG_MARK_SENSITIVE); if (ret < 0) { fprintf(stderr, "Error in %s:%d: %s\n", __func__, __LINE__, gnutls_strerror(ret)); exit(1); |