Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
d8cdd156
T
Third Party Openssl
项目概览
OpenHarmony
/
Third Party Openssl
1 年多 前同步成功
通知
9
Star
18
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Openssl
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
d8cdd156
编写于
10月 21, 2006
作者:
A
Andy Polyakov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Make c_rehash more platform neutral and make it work in mixed environment,
such as MSYS with "native" Win32 perl.
上级
cbfb39d1
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
18 addition
and
5 deletion
+18
-5
Makefile.org
Makefile.org
+1
-0
tools/c_rehash.in
tools/c_rehash.in
+17
-5
未找到文件。
Makefile.org
浏览文件 @
d8cdd156
...
...
@@ -388,6 +388,7 @@ rehash: rehash.time
rehash.time
:
certs apps
@
if
[
-z
"
$(CROSS_COMPILE_PREFIX)
"
]
;
then
\
(
OPENSSL
=
"
`
pwd
`
/util/opensslwrap.sh"
;
\
[
-x
"apps/openssl.exe"
]
&&
OPENSSL
=
"apps/openssl.exe"
;
\
OPENSSL_DEBUG_MEMORY
=
on
;
\
export
OPENSSL OPENSSL_DEBUG_MEMORY
;
\
$(PERL)
tools/c_rehash certs
)
&&
\
...
...
tools/c_rehash.in
浏览文件 @
d8cdd156
...
...
@@ -15,11 +15,14 @@ if(defined $ENV{OPENSSL}) {
$ENV
{
OPENSSL
}
=
$openssl
;
}
$ENV
{
PATH
}
.=
"
:
$dir
/bin
";
my
$pwd
=
`
pwd
`;
chomp
$pwd
;
my
$path_delim
=
(
$pwd
=~
/^[a-z]\:/i
)
?
'
;
'
:
'
:
';
# DOS/Win32 or Unix delimiter?
$ENV
{
PATH
}
.=
"
$path_delim$dir
/bin
";
if
(
!
-
x
$openssl
)
{
my
$found
=
0
;
foreach
(
split
/
:
/
,
$ENV
{
PATH
})
{
foreach
(
split
/
$path_delim
/
,
$ENV
{
PATH
})
{
if
(
-
x
"
$_
/
$openssl
")
{
$found
=
1
;
last
;
...
...
@@ -34,11 +37,16 @@ if(! -x $openssl) {
if
(
@ARGV
)
{
@dirlist
=
@ARGV
;
}
elsif
(
$ENV
{
SSL_CERT_DIR
})
{
@dirlist
=
split
/
:
/
,
$ENV
{
SSL_CERT_DIR
};
@dirlist
=
split
/
$path_delim
/
,
$ENV
{
SSL_CERT_DIR
};
}
else
{
$dirlist
[
0
]
=
"
$dir
/certs
";
}
if
(
-
d
$dirlist
[
0
])
{
chdir
$dirlist
[
0
];
$openssl
=
"
$pwd
/
$openssl
"
if
(
!-
x
$openssl
);
chdir
$pwd
;
}
foreach
(
@dirlist
)
{
if
(
-
d
$_
and
-
w
$_
)
{
...
...
@@ -101,7 +109,7 @@ sub check_file {
sub
link_hash_cert
{
my
$fname
=
$_
[
0
];
$fname
=~
s/'/'\\''/g
;
my
(
$hash
,
$fprint
)
=
`
"
$openssl
" x509 -hash -fingerprint -noout -in
'
$fname
'
`;
my
(
$hash
,
$fprint
)
=
`
"
$openssl
" x509 -hash -fingerprint -noout -in
"
$fname
"
`;
chomp
$hash
;
chomp
$fprint
;
$fprint
=~
s/^.*=//
;
...
...
@@ -122,7 +130,11 @@ sub link_hash_cert {
if
(
$symlink_exists
)
{
symlink
$fname
,
$hash
;
}
else
{
system
("
cp
",
$fname
,
$hash
);
open
IN
,"
<
$fname
"
or
die
"
can't open
$fname
for read
";
open
OUT
,"
>
$hash
"
or
die
"
can't open
$hash
for write
";
print
OUT
<
IN
>
;
# does the job for small text files
close
OUT
;
close
IN
;
}
$hashlist
{
$hash
}
=
$fprint
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录