[NetworkManager-openconnect] Allow TPM2 key files
- From: David Woodhouse <dwmw2 src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [NetworkManager-openconnect] Allow TPM2 key files
- Date: Sat, 13 Oct 2018 14:10:44 +0000 (UTC)
commit 9b3be7fc510b469af293f6d15e1bb5cadc1adca5
Author: David Woodhouse <dwmw amazon co uk>
Date: Sat Oct 13 06:53:25 2018 -0700
Allow TPM2 key files
properties/auth-helpers.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
---
diff --git a/properties/auth-helpers.c b/properties/auth-helpers.c
index 0eaec1a..9cfebd7 100644
--- a/properties/auth-helpers.c
+++ b/properties/auth-helpers.c
@@ -166,6 +166,8 @@ static const char *pem_dsa_key_begin = "-----BEGIN DSA PRIVATE KEY-----";
static const char *pem_key_begin = "-----BEGIN PRIVATE KEY-----";
static const char *pem_enc_key_begin = "-----BEGIN ENCRYPTED PRIVATE KEY-----";
static const char *pem_tss_keyblob_begin = "-----BEGIN TSS KEY BLOB-----";
+static const char *pem_tss2_keyblob_begin = "-----BEGIN TSS2 KEY BLOB-----";
+static const char *pem_tss2_privkey_begin = "-----BEGIN TSS2 PRIVATE KEY-----";
static const char *pem_cert_begin = "-----BEGIN CERTIFICATE-----";
static gboolean
@@ -230,6 +232,16 @@ tls_default_filter (const GtkFileFilterInfo *filter_info, gpointer data)
goto out;
}
+ if (find_tag (pem_tss2_keyblob_begin, (const char *) contents, bytes_read)) {
+ show = TRUE;
+ goto out;
+ }
+
+ if (find_tag (pem_tss2_privkey_begin, (const char *) contents, bytes_read)) {
+ show = TRUE;
+ goto out;
+ }
+
if (find_tag (pem_cert_begin, (const char *) contents, bytes_read)) {
show = TRUE;
goto out;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]