[network-manager-openvpn/th/ovpn-import-bgo761285: 11/13] properties: add support for importing <secret> inline certificates
- From: Thomas Haller <thaller src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-openvpn/th/ovpn-import-bgo761285: 11/13] properties: add support for importing <secret> inline certificates
- Date: Wed, 3 Feb 2016 11:21:57 +0000 (UTC)
commit 6f2bfdf1d870d6a2d528b37b76e7763f230fe630
Author: Thomas Haller <thaller redhat com>
Date: Fri Jan 29 15:05:38 2016 +0100
properties: add support for importing <secret> inline certificates
properties/import-export.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/properties/import-export.c b/properties/import-export.c
index bdf0c3e..ffab142 100644
--- a/properties/import-export.c
+++ b/properties/import-export.c
@@ -44,6 +44,7 @@
#define INLINE_BLOB_CA "ca"
#define INLINE_BLOB_CERT "cert"
#define INLINE_BLOB_KEY "key"
+#define INLINE_BLOB_SECRET "secret"
#define INLINE_BLOB_TLS_AUTH "tls-auth"
#define TAG_AUTH "auth"
@@ -1232,6 +1233,9 @@ do_import (const char *path, const char *contents, gsize contents_len, GError **
else if (_streq (token, INLINE_BLOB_TLS_AUTH)) {
key = NM_OPENVPN_KEY_TA;
can_have_direction = TRUE;
+ } else if (_streq (token, INLINE_BLOB_SECRET)) {
+ key = NM_OPENVPN_KEY_STATIC_KEY;
+ can_have_direction = TRUE;
} else {
line_error = g_strdup_printf (_("unsupported blob/xml element"));
goto handle_line_error;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]