Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
884e2608
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看板
提交
884e2608
编写于
3月 30, 2001
作者:
B
Bodo Möller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix bctest, and add a workaround that should solve the problem with
FreeBSD's /bin/sh.
上级
9946491f
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
33 addition
and
41 deletion
+33
-41
CHANGES
CHANGES
+4
-0
test/Makefile.ssl
test/Makefile.ssl
+1
-1
test/bctest
test/bctest
+28
-40
未找到文件。
CHANGES
浏览文件 @
884e2608
...
...
@@ -4,6 +4,10 @@
Changes between 0.9.6 and 0.9.7 [xx XXX 2000]
*) Change bctest to avoid here-documents inside command substitution
(workaround for FreeBSD /bin/sh bug).
[Bodo Moeller]
*) Rename 'des_encrypt' to 'des_encrypt1'. This avoids the clashes
with des_encrypt() defined on some operating systems, like Solaris
and UnixWare.
...
...
test/Makefile.ssl
浏览文件 @
884e2608
...
...
@@ -259,7 +259,7 @@ dclean:
mv
-f
Makefile.new
$(MAKEFILE)
clean
:
rm
-f
.rnd tmp.bntest
*
.o
*
.obj lib tags core .pure .nfs
*
*
.old
*
.bak fluff
$(EXE)
*
.ss
*
.srl log
rm
-f
.rnd tmp.bntest
tmp.bctest
*
.o
*
.obj lib tags core .pure .nfs
*
*
.old
*
.bak fluff
$(EXE)
*
.ss
*
.srl log
$(DLIBSSL)
:
(
cd
../ssl
;
$(MAKE)
)
...
...
test/bctest
浏览文件 @
884e2608
...
...
@@ -11,9 +11,9 @@
# running) bc.
# Test for SunOS 5.[78] bc bug
(or missing bc)
# Test for SunOS 5.[78] bc bug
SunOStest
()
{
if
[
0
!=
"
`
${
1
}
<<
\
EOF
${
1
}
>
tmp.bctest
<<
\
EOF
obase=16
ibase=16
a=AD88C418F31B3FC712D0425001D522B3AE9134FF3A98C13C1FCC1682211195406C1A6C66C6A
\
...
...
@@ -27,18 +27,18 @@ b=DCE91E7D120B983EA9A104B5A96D634DD644C37657B1C7860B45E6838999B3DCE5A555583C6\
8B3CD64126E1A82E190228020C05B91C8B141F1110086FC2A4C6ED631EBA129D04BB9A19FC53D
\
3ED0E2017D60A68775B75481449
(a/b)*b + (a%b) - a
EOF`" ]
EOF
if
[
0
!=
"
`
cat
tmp.bctest
`
"
]
then
# echo "bc does not work. Consider installing GNU bc." >&2
# echo "cat >/dev/null"
# failure
return
1
fi
}
# Test for SCO bc bug.
SCOtest
()
{
if [ "0
0" != "`
${
1
}
<<
\E
OF
${
1
}
>
tmp.bctest
<<
\
EOF
obase=16
ibase=16
-FFDD63BA1A4648F0D804F8A1C66C53F0D2110590E8A3907EC73B4AEC6F15AC177F176F2274D2
\
...
...
@@ -64,48 +64,36 @@ F617E3145BBFBE9AFD0D6E437EA4FF6F04BC67C4F1458B4F0F47B64 - 1C2BBBB19B74E86FD32\
9E8DB6A8C3B1B9986D57ED5419C2E855F7D5469E35E76334BB42F4C43E3F3A31B9697C171DAC4
\
D97935A7E1A14AD209D6CF811F55C6DB83AA9E6DFECFCD6669DED7171EE22A40C6181615CAF3F
\
5296964
EOF`" ]
EOF
if
[
"0
0"
!=
"
`
cat
tmp.bctest
`
"
]
then
# echo "bc does not work. Consider installing GNU bc." >&2
# echo "cat >/dev/null"
# failure
return
1
fi
}
#
# Find the full pathname(s) of bc
#
findBc()
{
IFS=:
for i in
$PATH
; do
eval test -x
$i
/bc -a ! -d
$i
/bc && { echo
$i
/bc ; }
done
}
Printtest() {
# bc works, good.
# Now check if it knows the 'print' command.
if [ "OK" = "`
${
1
}
2>/dev/null <<
\E
OF
print
\"
OK
\"
EOF`" ]
then
echo "
${
1
}
"
else
echo "sed 's/print.*//' |
${
1
}
"
fi
IFS
=
:
for
dir
in
$PATH
;
do
bc
=
"
$dir
/bc"
exit 0
}
if
[
-x
"
$bc
"
-a
!
-d
"
$bc
"
]
;
then
if
SunOStest
"
$bc
"
&&
SCOtest
"
$bc
"
;
then
# bc works; now check if it knows the 'print' command.
if
[
"OK"
=
"
`
echo
'print \"OK\"'
|
$bc
2>/dev/null
`
"
]
then
echo
"
$bc
"
else
echo
"sed 's/print.*//' |
$bc
"
fi
exit
0
fi
for BC in `findBc`
do
if SunOStest
${
BC
}
&& SCOtest
${
BC
}
then
Printtest
${
BC
}
fi
echo
"
$bc
does not work properly. Looking for another bc ..."
>
&2
fi
done
echo "
bc does not work
. Consider installing GNU bc." >&2
echo
"
No working bc found
. Consider installing GNU bc."
>
&2
echo
"cat >/dev/null"
exit
1
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录