Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
c47c6196
T
Third Party Openssl
项目概览
OpenHarmony
/
Third Party Openssl
1 年多 前同步成功
通知
10
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看板
提交
c47c6196
编写于
24年前
作者:
D
Dr. Stephen Henson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Various updates to mkdef.pl to cope with new aes
and ASN1 code.
上级
93cd57a5
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
44 addition
and
7 deletion
+44
-7
CHANGES
CHANGES
+5
-0
util/mkdef.pl
util/mkdef.pl
+39
-7
未找到文件。
CHANGES
浏览文件 @
c47c6196
...
...
@@ -3,6 +3,11 @@
Changes between 0.9.6 and 0.9.7 [xx XXX 2000]
*) Make mkdef.pl recognise all DECLARE_ASN1 macros, change rijndael
to aes and add a new 'exist' option to print out symbols that don't
appear to exist.
[Steve Henson]
*) Additional options to ocsp utility to allow flags to be set and
additional certificates supplied.
[Steve Henson]
...
...
This diff is collapsed.
Click to expand it.
util/mkdef.pl
浏览文件 @
c47c6196
...
...
@@ -63,6 +63,7 @@ my $do_crypto = 0;
my
$do_ssl
=
0
;
my
$do_ctest
=
0
;
my
$do_ctestall
=
0
;
my
$do_checkexist
=
0
;
my
$VMS
=
0
;
my
$W32
=
0
;
...
...
@@ -76,7 +77,7 @@ my @known_platforms = ( "__FreeBSD__", "VMS", "WIN16", "WIN32",
my
@known_algorithms
=
(
"
RC2
",
"
RC4
",
"
RC5
",
"
IDEA
",
"
DES
",
"
BF
",
"
CAST
",
"
MD2
",
"
MD4
",
"
MD5
",
"
SHA
",
"
SHA0
",
"
SHA1
",
"
RIPEMD
",
"
MDC2
",
"
RSA
",
"
DSA
",
"
DH
",
"
HMAC
",
"
RIJNDAEL
",
"
MDC2
",
"
RSA
",
"
DSA
",
"
DH
",
"
HMAC
",
"
AES
",
# Envelope "algorithms"
"
EVP
",
"
X509
",
"
ASN1_TYPEDEFS
",
# Helper "algorithms"
...
...
@@ -98,7 +99,7 @@ close(IN);
my
$no_rc2
;
my
$no_rc4
;
my
$no_rc5
;
my
$no_idea
;
my
$no_des
;
my
$no_bf
;
my
$no_cast
;
my
$no_md2
;
my
$no_md4
;
my
$no_md5
;
my
$no_sha
;
my
$no_ripemd
;
my
$no_mdc2
;
my
$no_rsa
;
my
$no_dsa
;
my
$no_dh
;
my
$no_hmac
=
0
;
my
$no_
rijndael
;
my
$no_rsa
;
my
$no_dsa
;
my
$no_dh
;
my
$no_hmac
=
0
;
my
$no_
aes
;
my
$no_fp_api
;
foreach
(
@ARGV
,
split
(
/ /
,
$options
))
...
...
@@ -119,6 +120,7 @@ foreach (@ARGV, split(/ /, $options))
$do_rewrite
=
1
if
$_
eq
"
rewrite
";
$do_ctest
=
1
if
$_
eq
"
ctest
";
$do_ctestall
=
1
if
$_
eq
"
ctestall
";
$do_checkexist
=
1
if
$_
eq
"
exist
";
#$safe_stack_def=1 if $_ eq "-DDEBUG_SAFESTACK";
if
(
/^no-rc2$/
)
{
$no_rc2
=
1
;
}
...
...
@@ -138,7 +140,7 @@ foreach (@ARGV, split(/ /, $options))
elsif
(
/^no-dsa$/
)
{
$no_dsa
=
1
;
}
elsif
(
/^no-dh$/
)
{
$no_dh
=
1
;
}
elsif
(
/^no-hmac$/
)
{
$no_hmac
=
1
;
}
elsif
(
/^no-
rijndael$/
)
{
$no_rijndael
=
1
;
}
elsif
(
/^no-
aes$/
)
{
$no_aes
=
1
;
}
elsif
(
/^no-evp$/
)
{
$no_evp
=
1
;
}
elsif
(
/^no-lhash$/
)
{
$no_lhash
=
1
;
}
elsif
(
/^no-stack$/
)
{
$no_stack
=
1
;
}
...
...
@@ -189,8 +191,8 @@ $crypto.=" crypto/md5/md5.h" unless $no_md5;
$crypto
.=
"
crypto/mdc2/mdc2.h
"
unless
$no_mdc2
;
$crypto
.=
"
crypto/sha/sha.h
"
unless
$no_sha
;
$crypto
.=
"
crypto/ripemd/ripemd.h
"
unless
$no_ripemd
;
$crypto
.=
"
crypto/rijndael/rijndael.h
"
unless
$no_
rijndael
;
$crypto
.=
"
crypto/rijndael/rd_fst.h
"
unless
$no_
rijndael
;
$crypto
.=
"
crypto/rijndael/rijndael.h
"
unless
$no_
aes
;
$crypto
.=
"
crypto/rijndael/rd_fst.h
"
unless
$no_
aes
;
$crypto
.=
"
crypto/bn/bn.h
";
$crypto
.=
"
crypto/rsa/rsa.h
"
unless
$no_rsa
;
...
...
@@ -259,6 +261,11 @@ if($do_crypto == 1) {
close
OUT
;
}
}
elsif
(
$do_checkexist
)
{
&check_existing
(
*ssl_list
,
@ssl_symbols
)
if
$do_ssl
==
1
;
&check_existing
(
*crypto_list
,
@crypto_symbols
)
if
$do_crypto
==
1
;
}
elsif
(
$do_ctest
||
$do_ctestall
)
{
print
<<"EOF";
...
...
@@ -406,6 +413,12 @@ sub do_defs
}
if
(
/^\s*DECLARE_STACK_OF\s*\(\s*(\w*)\s*\)/
)
{
next
;
}
elsif
(
/^\s*DECLARE_ASN1_ENCODE_FUNCTIONS\s*\(\s*(\w*)\s*,\s*(\w*)\s*,\s*(\w*)\s*\)/
)
{
$syms
{"
d2i_$3
"}
=
1
;
$syms
{"
i2d_$3
"}
=
1
;
$syms
{"
$2_it
"}
=
1
;
$kind
{"
$2_it
"}
=
"
VARIABLE
";
next
;
}
elsif
(
/^\s*DECLARE_ASN1_FUNCTIONS_fname\s*\(\s*(\w*)\s*,\s*(\w*)\s*,\s*(\w*)\s*\)/
)
{
$syms
{"
d2i_$3
"}
=
1
;
$syms
{"
i2d_$3
"}
=
1
;
...
...
@@ -413,7 +426,8 @@ sub do_defs
$syms
{"
$3_free
"}
=
1
;
$syms
{"
$2_it
"}
=
1
;
$kind
{"
$2_it
"}
=
"
VARIABLE
";
}
elsif
(
/^\s*DECLARE_ASN1_FUNCTIONS\s*\(\s*(\w*)\s*\)/
)
{
}
elsif
(
/^\s*DECLARE_ASN1_FUNCTIONS\s*\(\s*(\w*)\s*\)/
||
/^\s*DECLARE_ASN1_FUNCTIONS_const\s*\(\s*(\w*)\s*\)/
)
{
$syms
{"
d2i_$1
"}
=
1
;
$syms
{"
i2d_$1
"}
=
1
;
$syms
{"
$1_new
"}
=
1
;
...
...
@@ -421,6 +435,24 @@ sub do_defs
$syms
{"
$1_it
"}
=
1
;
$kind
{"
$1_it
"}
=
"
VARIABLE
";
next
;
}
elsif
(
/^\s*DECLARE_ASN1_ENCODE_FUNCTIONS_const\s*\(\s*(\w*)\s*,\s*(\w*)\s*\)/
)
{
$syms
{"
d2i_$2
"}
=
1
;
$syms
{"
i2d_$2
"}
=
1
;
$syms
{"
$2_it
"}
=
1
;
$kind
{"
$2_it
"}
=
"
VARIABLE
";
next
;
}
elsif
(
/^\s*DECLARE_ASN1_FUNCTIONS_name\s*\(\s*(\w*)\s*,\s*(\w*)\s*\)/
)
{
$syms
{"
d2i_$2
"}
=
1
;
$syms
{"
i2d_$2
"}
=
1
;
$syms
{"
$2_new
"}
=
1
;
$syms
{"
$2_free
"}
=
1
;
$syms
{"
$2_it
"}
=
1
;
$kind
{"
$2_it
"}
=
"
VARIABLE
";
next
;
}
elsif
(
/^\s*DECLARE_ASN1_ITEM\s*\(\s*(\w*)\s*,(\w*)\s*\)/
)
{
$syms
{"
$1_it
"}
=
1
;
$kind
{"
$1_it
"}
=
"
VARIABLE
";
next
;
}
elsif
(
/^\s*DECLARE_PKCS12_STACK_OF\s*\(\s*(\w*)\s*\)/
)
{
next
;
}
elsif
(
/^\s*DECLARE_ASN1_SET_OF\s*\(\s*(\w*)\s*\)/
)
{
...
...
@@ -805,7 +837,7 @@ EOF
&&
(
!
@a
||
(
!
$no_dsa
||
!
grep
(
/^DSA$/
,
@a
)))
&&
(
!
@a
||
(
!
$no_dh
||
!
grep
(
/^DH$/
,
@a
)))
&&
(
!
@a
||
(
!
$no_hmac
||
!
grep
(
/^HMAC$/
,
@a
)))
&&
(
!
@a
||
(
!
$no_
rijndael
||
!
grep
(
/^RIJNDAEL
$/
,
@a
)))
&&
(
!
@a
||
(
!
$no_
aes
||
!
grep
(
/^AES
$/
,
@a
)))
&&
(
!
@a
||
(
!
$no_fp_api
||
!
grep
(
/^FP_API$/
,
@a
)))
)
{
if
(
$v
)
{
...
...
This diff is collapsed.
Click to expand it.
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录
新手
引导
客服
返回
顶部