[libnma/lr/more-gcr4-stuff: 2/6] pkcs11-cert-chooser: show CKO_PUBLIC_KEY among public certificates
- From: Lubomir Rintel <lkundrak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libnma/lr/more-gcr4-stuff: 2/6] pkcs11-cert-chooser: show CKO_PUBLIC_KEY among public certificates
- Date: Mon, 29 Aug 2022 11:27:02 +0000 (UTC)
commit 2898b585da604ab350f1f8c559d639a759ddb97e
Author: Lubomir Rintel <lkundrak v3 sk>
Date: Wed Aug 3 13:23:29 2022 +0200
pkcs11-cert-chooser: show CKO_PUBLIC_KEY among public certificates
I've previously seen public keys have CKO_CERTIFICATE type. However,
"p11tool --generate-privkey" backed with softhsm2 creates a
CKO_PRIVATE_KEY/CKO_PUBLIC_KEY pair. That makes sense.
Let's also show CKO_PUBLIC_KEY along with CKO_CERTIFICATE if the
certificate chooser button was not created specifically for private keys.
src/nma-pkcs11-cert-chooser-dialog.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/src/nma-pkcs11-cert-chooser-dialog.c b/src/nma-pkcs11-cert-chooser-dialog.c
index c11ef6d7..92665c7a 100644
--- a/src/nma-pkcs11-cert-chooser-dialog.c
+++ b/src/nma-pkcs11-cert-chooser-dialog.c
@@ -146,6 +146,7 @@ object_details (GObject *source_object, GAsyncResult *res, gpointer user_data)
switch (cka_class) {
case CKO_CERTIFICATE:
+ case CKO_PUBLIC_KEY:
store1 = priv->cert_store;
store2 = priv->key_store;
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]