[network-manager-openvpn/th/extra-certs-and-cleanup: 3/13] properties: re-use NMV_OVPN_TAG_* defines for INLINE_BLOB_*



commit dd1c22b7079f1e3964350284e9dc8d98b9a4204f
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]