Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
e18cf66a
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看板
提交
e18cf66a
编写于
5月 01, 2016
作者:
R
Richard Levitte
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Adjust a last few generators to new license boilerplate and C code style
Reviewed-by:
N
Rich Salz
<
rsalz@openssl.org
>
上级
e428f595
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
27 addition
and
15 deletion
+27
-15
crypto/asn1/charmap.pl
crypto/asn1/charmap.pl
+16
-4
crypto/conf/keysets.pl
crypto/conf/keysets.pl
+11
-11
未找到文件。
crypto/asn1/charmap.pl
浏览文件 @
e18cf66a
...
@@ -70,17 +70,29 @@ $arr[ord("?")] |= $PSTRING_CHAR;
...
@@ -70,17 +70,29 @@ $arr[ord("?")] |= $PSTRING_CHAR;
# Now generate the C code
# Now generate the C code
print
<<EOF;
print
<<EOF;
/* Auto generated with chartype.pl script.
/*
* WARNING: do not edit!
* Generated by crypto/asn1/charmap.pl
*
* Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.
* Licensed under the OpenSSL license (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
/*
* Mask of various character properties
* Mask of various character properties
*/
*/
static const unsigned char char_type[] = {
static const unsigned char char_type[] = {
EOF
EOF
print
"
";
for
(
$i
=
0
;
$i
<
128
;
$i
++
)
{
for
(
$i
=
0
;
$i
<
128
;
$i
++
)
{
print
("
\n
")
if
(
$i
&&
((
$i
%
16
)
==
0
));
print
("
\n
")
if
(
$i
&&
((
$i
%
16
)
==
0
));
printf
("
%2d
",
$arr
[
$i
]);
printf
("
%2d
",
$arr
[
$i
]);
print
("
,
")
if
(
$i
!=
127
);
print
("
,
")
if
(
$i
!=
127
);
}
}
print
("
\n
};
\n
\n
");
print
("
\n
};
\n
");
crypto/conf/keysets.pl
浏览文件 @
e18cf66a
...
@@ -104,18 +104,18 @@ print <<"EOF";
...
@@ -104,18 +104,18 @@ print <<"EOF";
#else /* CHARSET_EBCDIC */
#else /* CHARSET_EBCDIC */
# define IS_COMMENT(c,a) (KEYTYPES(c)[os_toascii[a
]&0xff
]&CONF_COMMENT)
# define IS_COMMENT(c,a) (KEYTYPES(c)[os_toascii[a
& 0xff]
]&CONF_COMMENT)
# define IS_FCOMMENT(c,a) (KEYTYPES(c)[os_toascii[a
]&0xff
]&CONF_FCOMMENT)
# define IS_FCOMMENT(c,a) (KEYTYPES(c)[os_toascii[a
& 0xff]
]&CONF_FCOMMENT)
# define IS_EOF(c,a) (KEYTYPES(c)[os_toascii[a
]&0xff
]&CONF_EOF)
# define IS_EOF(c,a) (KEYTYPES(c)[os_toascii[a
& 0xff]
]&CONF_EOF)
# define IS_ESC(c,a) (KEYTYPES(c)[os_toascii[a
]&0xff
]&CONF_ESC)
# define IS_ESC(c,a) (KEYTYPES(c)[os_toascii[a
& 0xff]
]&CONF_ESC)
# define IS_NUMBER(c,a) (KEYTYPES(c)[os_toascii[a
]&0xff
]&CONF_NUMBER)
# define IS_NUMBER(c,a) (KEYTYPES(c)[os_toascii[a
& 0xff]
]&CONF_NUMBER)
# define IS_WS(c,a) (KEYTYPES(c)[os_toascii[a
]&0xff
]&CONF_WS)
# define IS_WS(c,a) (KEYTYPES(c)[os_toascii[a
& 0xff]
]&CONF_WS)
# define IS_ALPHA_NUMERIC(c,a) (KEYTYPES(c)[os_toascii[a
]&0xff
]&CONF_ALPHA_NUMERIC)
# define IS_ALPHA_NUMERIC(c,a) (KEYTYPES(c)[os_toascii[a
& 0xff]
]&CONF_ALPHA_NUMERIC)
# define IS_ALPHA_NUMERIC_PUNCT(c,a) \\
# define IS_ALPHA_NUMERIC_PUNCT(c,a) \\
(KEYTYPES(c)[os_toascii[a
]&0xff
]&CONF_ALPHA_NUMERIC_PUNCT)
(KEYTYPES(c)[os_toascii[a
& 0xff]
]&CONF_ALPHA_NUMERIC_PUNCT)
# define IS_QUOTE(c,a) (KEYTYPES(c)[os_toascii[a
]&0xff
]&CONF_QUOTE)
# define IS_QUOTE(c,a) (KEYTYPES(c)[os_toascii[a
& 0xff]
]&CONF_QUOTE)
# define IS_DQUOTE(c,a) (KEYTYPES(c)[os_toascii[a
]&0xff
]&CONF_DQUOTE)
# define IS_DQUOTE(c,a) (KEYTYPES(c)[os_toascii[a
& 0xff]
]&CONF_DQUOTE)
# define IS_HIGHBIT(c,a) (KEYTYPES(c)[os_toascii[a
]&0xff
]&CONF_HIGHBIT)
# define IS_HIGHBIT(c,a) (KEYTYPES(c)[os_toascii[a
& 0xff]
]&CONF_HIGHBIT)
#endif /* CHARSET_EBCDIC */
#endif /* CHARSET_EBCDIC */
EOF
EOF
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录