From 9498eb76ef4c053d77e45d4d3ebaf839e0f40a0b Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Wed, 27 Apr 2016 08:22:41 +0300 Subject: add a few more mime types (closes #481) --- main/src/main/java/de/blinkt/openvpn/fragments/Utils.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'main') diff --git a/main/src/main/java/de/blinkt/openvpn/fragments/Utils.java b/main/src/main/java/de/blinkt/openvpn/fragments/Utils.java index 243eae98..af76ee7a 100644 --- a/main/src/main/java/de/blinkt/openvpn/fragments/Utils.java +++ b/main/src/main/java/de/blinkt/openvpn/fragments/Utils.java @@ -49,10 +49,12 @@ public class Utils { supportedMimeTypes.add("application/x-x509-ca-cert"); supportedMimeTypes.add("application/x-x509-user-cert"); supportedMimeTypes.add("application/x-pem-file"); + supportedMimeTypes.add("application/pkix-cert"); supportedMimeTypes.add("text/plain"); extensions.add("pem"); extensions.add("crt"); + extensions.add("cer"); break; case KEYFILE: i.setType("application/x-pem-file"); @@ -86,6 +88,10 @@ public class Utils { extensions.add("conf"); break; + case CRL_FILE: + supportedMimeTypes.add("application/x-pkcs7-crl"); + supportedMimeTypes.add("application/pkix-crl"); + case USERPW_FILE: i.setType("text/plain"); supportedMimeTypes.add("text/plain"); -- cgit v1.2.3