[NetworkManager-openvpn: 1/3] import-export: Support inline defined crl-verify parameter



commit 7574e6b2f4efcd155dd72f8f9f978c2a474fbfbd
Author: Jonas Dreßler <verdre v0yd nl>
Date:   Mon Dec 16 20:30:29 2019 +0100

    import-export: Support inline defined crl-verify parameter
    
    The crl-verify file is included inline as a parameter in a lot of vpn
    profiles nowadays, support it and don't fail to import those profiles.

 properties/import-export.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/properties/import-export.c b/properties/import-export.c
index 5507ab8..b015d20 100644
--- a/properties/import-export.c
+++ b/properties/import-export.c
@@ -41,6 +41,7 @@
 #define INLINE_BLOB_CA                  NMV_OVPN_TAG_CA
 #define INLINE_BLOB_CERT                NMV_OVPN_TAG_CERT
 #define INLINE_BLOB_EXTRA_CERTS         NMV_OVPN_TAG_EXTRA_CERTS
+#define INLINE_BLOB_CRL_VERIFY          NMV_OVPN_TAG_CRL_VERIFY
 #define INLINE_BLOB_KEY                 NMV_OVPN_TAG_KEY
 #define INLINE_BLOB_PKCS12              NMV_OVPN_TAG_PKCS12
 #define INLINE_BLOB_SECRET              NMV_OVPN_TAG_SECRET
@@ -1464,6 +1465,8 @@ do_import (const char *path, const char *contents, gsize contents_len, GError **
                                key = NM_OPENVPN_KEY_KEY;
                        else if (nm_streq (token, INLINE_BLOB_EXTRA_CERTS))
                                key = NM_OPENVPN_KEY_EXTRA_CERTS;
+                       else if (nm_streq (token, INLINE_BLOB_CRL_VERIFY))
+                               key = NM_OPENVPN_KEY_CRL_VERIFY_FILE;
                        else if (nm_streq (token, INLINE_BLOB_PKCS12)) {
                                is_base64 = TRUE;
                                key = NULL;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]