[network-manager-openvpn/th/ovpn-import-bgo761285: 11/12] 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/12] properties:	add support for importing <secret> inline certificates
 
- Date: Fri, 29 Jan 2016 14:38:52 +0000 (UTC)
 
commit 1291231bb0a327077f8973590575a52964247a59
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 dc4de7a..a74dc38 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"
@@ -1211,6 +1212,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]