提交 86e6cbd6 编写于 作者: R Richard Levitte

STORE 'file' scheme loader: DNS name in URI is case insensitive

...  so compare accordingly with "//localhost"
Reviewed-by: NBernd Edlinger <bernd.edlinger@hotmail.de>
(Merged from https://github.com/openssl/openssl/pull/3827)
上级 f2da4a49
......@@ -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 (strncasecmp(&uri[5], "//localhost/", 12) == 0) {
path = &uri[16];
} else if (strncmp(&uri[5], "///", 3) == 0) {
path = &uri[7];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册