From f83c454e651864bce663af499c888285f4f3c8cf Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Sun, 26 Feb 2023 15:47:00 +0100 Subject: Add OpenVPN profile Using the name listed in https://www.digipres.org/formats/mime-types/ --- data/freedesktop.org.xml.in | 7 +++++++ tests/mime-detection/list | 3 +++ tests/mime-detection/openvpn.openvpn | 18 ++++++++++++++++++ tests/mime-detection/openvpn.ovpn | 18 ++++++++++++++++++ 4 files changed, 46 insertions(+) create mode 100644 tests/mime-detection/openvpn.openvpn create mode 100644 tests/mime-detection/openvpn.ovpn diff --git a/data/freedesktop.org.xml.in b/data/freedesktop.org.xml.in index 4857ae73..d59cc11f 100644 --- a/data/freedesktop.org.xml.in +++ b/data/freedesktop.org.xml.in @@ -8033,4 +8033,11 @@ command to generate the output files. + + OpenVPN profile + + + + + diff --git a/tests/mime-detection/list b/tests/mime-detection/list index cb9e1ddc..c27dbaa0 100644 --- a/tests/mime-detection/list +++ b/tests/mime-detection/list @@ -376,6 +376,9 @@ simple-troff.mm text/x-troff-mm xx test.cl text/x-opencl-src ox # hand-made test.mc2 text/vnd.senx.warpscript ox +# From https://github.com/OpenVPN/openvpn/blob/master/sample/sample-plugins/keying-material-exporter-demo/client.ovpn +openvpn.ovpn application/x-openvpn-profile ox +openvpn.openvpn application/x-openvpn-profile ox # http://www.apps.ietf.org/rfc/rfc4716.html#sec-3.6 ssh-public-key.txt text/plain diff --git a/tests/mime-detection/openvpn.openvpn b/tests/mime-detection/openvpn.openvpn new file mode 100644 index 00000000..f02087b3 --- /dev/null +++ b/tests/mime-detection/openvpn.openvpn @@ -0,0 +1,18 @@ +tls-client +pull + +keying-material-exporter "EXPORTER_SSO_TEST" 16 +reneg-sec 0 + +ca ../../sample-keys/ca.crt +cert ../../sample-keys/client.crt +key ../../sample-keys/client.key + +plugin ./keyingmaterialexporter.so + +remote 127.0.0.1 1194 +proto udp +dev tun +nobind + +verb 4 diff --git a/tests/mime-detection/openvpn.ovpn b/tests/mime-detection/openvpn.ovpn new file mode 100644 index 00000000..f02087b3 --- /dev/null +++ b/tests/mime-detection/openvpn.ovpn @@ -0,0 +1,18 @@ +tls-client +pull + +keying-material-exporter "EXPORTER_SSO_TEST" 16 +reneg-sec 0 + +ca ../../sample-keys/ca.crt +cert ../../sample-keys/client.crt +key ../../sample-keys/client.key + +plugin ./keyingmaterialexporter.so + +remote 127.0.0.1 1194 +proto udp +dev tun +nobind + +verb 4 -- cgit v1.2.1