summaryrefslogtreecommitdiff
path: root/standalone/android/haskell-patches/x509-system_support-Android-cert-store.patch
blob: 14ed66089d318bd81fdd905762b4b863ba4e65d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From 61d0e47cd038f25157e48385fc080d0d374b214d Mon Sep 17 00:00:00 2001
From: dummy <dummy@example.com>
Date: Tue, 14 Oct 2014 02:07:57 +0000
Subject: [PATCH] support Android cert store

Android has only hashsed cert files.
See https://github.com/vincenthz/hs-certificate/issues/19
---
 System/X509/Unix.hs |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/System/X509/Unix.hs b/System/X509/Unix.hs
index 9df3331..a30da26 100644
--- a/System/X509/Unix.hs
+++ b/System/X509/Unix.hs
@@ -56,7 +56,7 @@ listDirectoryCerts path = do
                         && isDigit (s !! 9)
                         && (s !! 8) == '.'
                         && all isHexDigit (take 8 s)
-          isCert x = (not $ isPrefixOf "." x) && (not $ isHashedFile x)
+          isCert x = (not $ isPrefixOf "." x) 
 
           getDirContents = E.catch (Just <$> getDirectoryContents path) emptyPaths
             where emptyPaths :: E.IOException -> IO (Maybe [FilePath])
-- 
1.7.10.4