[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnurl] 134/219: nss: allow fifos and character devices for
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnurl] 134/219: nss: allow fifos and character devices for certificates. |
Date: |
Wed, 22 May 2019 19:17:53 +0200 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to branch master
in repository gnurl.
commit 191ffd07082322cdfd4ca4581f39160166534405
Author: Frank Gevaerts <address@hidden>
AuthorDate: Fri Apr 26 11:23:15 2019 +0200
nss: allow fifos and character devices for certificates.
Currently you can do things like --cert <(cat ./cert.crt) with (at least)
the
openssl backend, but that doesn't work for nss because is_file rejects
fifos.
I don't actually know if this is sufficient, nss might do things internally
(like seeking back) that make this not work, so actual testing is needed.
Closes #3807
---
lib/vtls/nss.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/vtls/nss.c b/lib/vtls/nss.c
index 65e975c91..dd563f035 100644
--- a/lib/vtls/nss.c
+++ b/lib/vtls/nss.c
@@ -378,7 +378,7 @@ static int is_file(const char *filename)
return 0;
if(stat(filename, &st) == 0)
- if(S_ISREG(st.st_mode))
+ if(S_ISREG(st.st_mode) || S_ISFIFO(st.st_mode) || S_ISCHR(st.st_mode))
return 1;
return 0;
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [gnurl] 134/219: nss: allow fifos and character devices for certificates.,
gnunet <=