123 Star 0 Fork 10

src-openEuler/elinks

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
elinks-0.15.0-ssl-noegd.patch 1.25 KB
一键复制 编辑 原始数据 按行查看 历史
wk333 提交于 2024-07-04 15:04 . Update to 0.17.0
From 06a4ef9dd099b011346fccd2a1cc96711cf129f3 Mon Sep 17 00:00:00 2001
From: Kamil Dudka <kdudka@redhat.com>
Date: Mon, 11 Apr 2022 09:14:52 +0200
Subject: [PATCH] Resolves: #90663 - prevent crash when HOME is unset
elinks-0.11.0-ssl-noegd.patch rebased on 0.15.0
---
src/network/ssl/ssl.c | 17 -----------------
1 file changed, 17 deletions(-)
diff --git a/src/network/ssl/ssl.c b/src/network/ssl/ssl.c
index dbc506c..c09daa2 100644
--- a/src/network/ssl/ssl.c
+++ b/src/network/ssl/ssl.c
@@ -123,23 +123,6 @@ ssl_set_private_paths(SSL_CTX *ctx)
static void
init_openssl(struct module *module)
{
- char f_randfile[PATH_MAX];
-
- /* In a nutshell, on OS's without a /dev/urandom, the OpenSSL library
- * cannot initialize the PRNG and so every attempt to use SSL fails.
- * It's actually an OpenSSL FAQ, and according to them, it's up to the
- * application coders to seed the RNG. -- William Yodlowsky */
- RAND_file_name(f_randfile, sizeof(f_randfile));
-#ifdef HAVE_RAND_EGD
- if (RAND_egd(f_randfile) < 0) {
- /* Not an EGD, so read and write to it */
-#endif
- if (RAND_load_file(f_randfile, -1))
- RAND_write_file(f_randfile);
-#ifdef HAVE_RAND_EGD
- }
-#endif
-
#if defined(HAVE_RAND_ADD) && defined(CONFIG_OS_DOS)
{
unsigned char *os_pool;
--
2.34.1
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/elinks.git
git@gitee.com:src-openeuler/elinks.git
src-openeuler
elinks
elinks
master

搜索帮助