[network-manager-openvpn: 3/14] properties: re-use NMV_OVPN_TAG_* defines for INLINE_BLOB_*
- From: Thomas Haller <thaller src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-openvpn: 3/14] properties: re-use NMV_OVPN_TAG_* defines for INLINE_BLOB_*
- Date: Wed, 7 Mar 2018 18:10:12 +0000 (UTC)
commit 7fbd9454712834d312f2d9997c7a7cd8c21a5b1b
Author: Thomas Haller <thaller redhat com>
Date: Thu Feb 22 18:59:09 2018 +0100
properties: re-use NMV_OVPN_TAG_* defines for INLINE_BLOB_*
They are not only literally identical, they are also strongly related.
That is, the XML blob's name is really identical to the corresponding
command line option.
properties/import-export.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/properties/import-export.c b/properties/import-export.c
index 02d4f86..276cf05 100644
--- a/properties/import-export.c
+++ b/properties/import-export.c
@@ -38,13 +38,13 @@
#include "nm-utils/nm-shared-utils.h"
-#define INLINE_BLOB_CA "ca"
-#define INLINE_BLOB_CERT "cert"
-#define INLINE_BLOB_KEY "key"
-#define INLINE_BLOB_PKCS12 "pkcs12"
-#define INLINE_BLOB_SECRET "secret"
-#define INLINE_BLOB_TLS_AUTH "tls-auth"
-#define INLINE_BLOB_TLS_CRYPT "tls-crypt"
+#define INLINE_BLOB_CA NMV_OVPN_TAG_CA
+#define INLINE_BLOB_CERT NMV_OVPN_TAG_CERT
+#define INLINE_BLOB_KEY NMV_OVPN_TAG_KEY
+#define INLINE_BLOB_PKCS12 NMV_OVPN_TAG_PKCS12
+#define INLINE_BLOB_SECRET NMV_OVPN_TAG_SECRET
+#define INLINE_BLOB_TLS_AUTH NMV_OVPN_TAG_TLS_AUTH
+#define INLINE_BLOB_TLS_CRYPT NMV_OVPN_TAG_TLS_CRYPT
const char *_nmovpn_test_temp_path = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]