Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
6a0ea5d2
T
Third Party Openssl
项目概览
OpenHarmony
/
Third Party Openssl
接近 2 年 前同步成功
通知
12
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看板
提交
6a0ea5d2
编写于
11月 06, 2011
作者:
A
Andy Polyakov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fipsld, incore: switch to new cross-compile support.
上级
9a480169
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
19 addition
and
12 deletion
+19
-12
fips/fipsld
fips/fipsld
+17
-11
util/incore
util/incore
+2
-1
未找到文件。
fips/fipsld
浏览文件 @
6a0ea5d2
#!/bin/sh -e
#
# Copyright (c) 2005-20
07
The OpenSSL Project.
# Copyright (c) 2005-20
11
The OpenSSL Project.
#
# Depending on output file name, the script either embeds fingerprint
# into libcrypto.so or static application. "Static" refers to static
...
...
@@ -127,12 +127,15 @@ lib*|*.dll) # must be linking a shared lib...
"
${
PREMAIN_C
}
"
\
${
_WL_PREMAIN
}
"
$@
"
# generate signature...
if
[
-z
"
${
FIPS_SIG
}
"
]
;
then
SIG
=
`
"
${
PREMAIN_DSO
}
"
"
${
TARGET
}
"
`
else
SIG
=
`
"
${
FIPS_SIG
}
"
-dso
"
${
TARGET
}
"
`
if
[
"x
${
FIPS_SIG
}
"
!=
"x"
]
;
then
# embed signature
"
${
FIPS_SIG
}
"
"
${
TARGET
}
"
[
$?
-ne
42
]
&&
exit
$?
fi
# generate signature...
SIG
=
`
"
${
PREMAIN_DSO
}
"
"
${
TARGET
}
"
`
/bin/rm
-f
"
${
TARGET
}
"
if
[
-z
"
${
SIG
}
"
]
;
then
echo
"unable to collect signature"
;
exit
1
...
...
@@ -172,12 +175,15 @@ lib*|*.dll) # must be linking a shared lib...
"
${
PREMAIN_C
}
"
\
${
_WL_PREMAIN
}
"
$@
"
# generate signature...
if
[
-z
"
${
FIPS_SIG
}
"
]
;
then
SIG
=
`
"
${
TARGET
}
"
`
else
SIG
=
`
"
${
FIPS_SIG
}
"
-exe
"
${
TARGET
}
"
`
if
[
"x
${
FIPS_SIG
}
"
!=
"x"
]
;
then
# embed signature
"
${
FIPS_SIG
}
"
"
${
TARGET
}
"
[
$?
-ne
42
]
&&
exit
$?
fi
# generate signature...
SIG
=
`
"
${
TARGET
}
"
`
/bin/rm
-f
"
${
TARGET
}
"
if
[
-z
"
${
SIG
}
"
]
;
then
echo
"unable to collect signature"
;
exit
1
...
...
util/incore
浏览文件 @
6a0ea5d2
...
...
@@ -34,6 +34,7 @@
@e_ident
{
magic
,
class
,
data
,
version
,
osabi
,
abiver
,
pad
}
=
unpack
("
a4C*
",
$elf
);
$!
=
42
;
# signal fipsld to revert to two-step link
die
"
not ELF file
"
if
(
$e_ident
{
magic
}
ne
chr
(
0177
)
.
"
ELF
");
my
$elf_bits
=
$e_ident
{
class
}
*
32
;
# 32 or 64
...
...
@@ -377,7 +378,7 @@ $FIPS_text_endX = $exe->Lookup("FIPS_text_endX");
if
(
!
$legacy_mode
)
{
if
(
!
$FIPS_text_startX
||
!
$FIPS_text_endX
)
{
print
STDERR
"
@ARGV
[$#ARGV] is not cross-compiler aware.
\n
";
exit
(
1
);
exit
(
42
);
# signal fipsld to revert to two-step link
}
$FINGERPRINT_ascii_value
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录