Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
66d3e748
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看板
提交
66d3e748
编写于
10月 25, 2001
作者:
R
Richard Levitte
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Make sure openssl speed is compilable on systems where fork() doesn't
exist. For now, that's all the ones we "support" except Unix.
上级
0e211563
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
18 addition
and
1 deletion
+18
-1
apps/speed.c
apps/speed.c
+18
-1
未找到文件。
apps/speed.c
浏览文件 @
66d3e748
...
...
@@ -197,6 +197,10 @@
# endif
#endif
#if !defined(OPENSSL_SYS_VMS) && !defined(OPENSSL_SYS_WINDOWS) && !defined(OPENSSL_SYS_MACINTOSH_CLASSIC) && !defined(OPENSSL_SYS_OS2)
# define HAVE_FORK 1
#endif
#undef BUFSIZE
#define BUFSIZE ((long)1024*8+1)
int
run
=
0
;
...
...
@@ -209,7 +213,9 @@ static double Time_F(int s);
static
void
print_message
(
const
char
*
s
,
long
num
,
int
length
);
static
void
pkey_print_message
(
char
*
str
,
char
*
str2
,
long
num
,
int
bits
,
int
sec
);
static
void
print_result
(
int
alg
,
int
run_no
,
int
count
,
double
time_used
);
#ifdef HAVE_FORK
static
int
do_multi
(
int
multi
);
#endif
#ifdef SIGALRM
#if defined(__STDC__) || defined(sgi) || defined(_AIX)
#define SIGRETTYPE void
...
...
@@ -444,7 +450,9 @@ int MAIN(int argc, char **argv)
int
pr_header
=
0
;
const
EVP_CIPHER
*
evp
=
NULL
;
int
decrypt
=
0
;
#ifdef HAVE_FORK
int
multi
=
0
;
#endif
#ifndef TIMES
usertime
=-
1
;
...
...
@@ -540,6 +548,7 @@ int MAIN(int argc, char **argv)
means all of them should be run) */
j
--
;
}
#ifdef HAVE_FORK
else
if
((
argc
>
0
)
&&
(
strcmp
(
*
argv
,
"-multi"
)
==
0
))
{
argc
--
;
...
...
@@ -555,7 +564,10 @@ int MAIN(int argc, char **argv)
BIO_printf
(
bio_err
,
"bad multi count
\n
"
);
goto
end
;
}
j
--
;
/* Otherwise, -mr gets confused with
an algorithm. */
}
#endif
else
if
(
argc
>
0
&&
!
strcmp
(
*
argv
,
"-mr"
))
{
mr
=
1
;
...
...
@@ -777,7 +789,9 @@ int MAIN(int argc, char **argv)
BIO_printf
(
bio_err
,
"-evp e use EVP e.
\n
"
);
BIO_printf
(
bio_err
,
"-decrypt time decryption instead of encryption (only EVP).
\n
"
);
BIO_printf
(
bio_err
,
"-mr produce machine readable output.
\n
"
);
#ifdef HAVE_FORK
BIO_printf
(
bio_err
,
"-multi n run n benchmarks in parallel.
\n
"
);
#endif
goto
end
;
}
argc
--
;
...
...
@@ -785,8 +799,10 @@ int MAIN(int argc, char **argv)
j
++
;
}
#ifdef HAVE_FORK
if
(
multi
&&
do_multi
(
multi
))
goto
show_res
;
#endif
if
(
j
==
0
)
{
...
...
@@ -1635,6 +1651,7 @@ static char *sstrsep(char **string, const char *delim)
return
token
;
}
#ifdef HAVE_FORK
static
int
do_multi
(
int
multi
)
{
int
n
;
...
...
@@ -1767,4 +1784,4 @@ static int do_multi(int multi)
}
return
1
;
}
#endif
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录