projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2da4a4
)
STORE 'file' scheme loader: DNS name in URI is case insensitive
author
Richard Levitte
<levitte@openssl.org>
Sun, 2 Jul 2017 09:54:40 +0000
(11:54 +0200)
committer
Richard Levitte
<levitte@openssl.org>
Sun, 2 Jul 2017 09:54:40 +0000
(11:54 +0200)
... so compare accordingly with "//localhost"
Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
(Merged from https://github.com/openssl/openssl/pull/3827)
crypto/store/loader_file.c
patch
|
blob
|
history
diff --git
a/crypto/store/loader_file.c
b/crypto/store/loader_file.c
index 2b0f213df0001e64e2c24ebe1c0052874c71b2aa..ebcad03ead8bbe03c079bdf844653939fdbfb285 100644
(file)
--- a/
crypto/store/loader_file.c
+++ b/
crypto/store/loader_file.c
@@
-677,7
+677,7
@@
static OSSL_STORE_LOADER_CTX *file_open(const OSSL_STORE_LOADER *loader,
const char *path = NULL;
if (strncasecmp(uri, "file:", 5) == 0) {
- if (strncmp(&uri[5], "//localhost/", 12) == 0) {
+ if (strnc
asec
mp(&uri[5], "//localhost/", 12) == 0) {
path = &uri[16];
} else if (strncmp(&uri[5], "///", 3) == 0) {
path = &uri[7];