Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
d78254aa
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
d78254aa
编写于
11月 15, 2002
作者:
D
Dr. Stephen Henson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add SETWRAP modifier to ASN1 generate.
上级
af67804b
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
17 addition
and
8 deletion
+17
-8
crypto/asn1/asn1_gen.c
crypto/asn1/asn1_gen.c
+9
-1
doc/crypto/ASN1_generate_nconf.pod
doc/crypto/ASN1_generate_nconf.pod
+8
-7
未找到文件。
crypto/asn1/asn1_gen.c
浏览文件 @
d78254aa
...
@@ -67,7 +67,8 @@
...
@@ -67,7 +67,8 @@
#define ASN1_GEN_FLAG_BITWRAP (ASN1_GEN_FLAG|4)
#define ASN1_GEN_FLAG_BITWRAP (ASN1_GEN_FLAG|4)
#define ASN1_GEN_FLAG_OCTWRAP (ASN1_GEN_FLAG|5)
#define ASN1_GEN_FLAG_OCTWRAP (ASN1_GEN_FLAG|5)
#define ASN1_GEN_FLAG_SEQWRAP (ASN1_GEN_FLAG|6)
#define ASN1_GEN_FLAG_SEQWRAP (ASN1_GEN_FLAG|6)
#define ASN1_GEN_FLAG_FORMAT (ASN1_GEN_FLAG|7)
#define ASN1_GEN_FLAG_SETWRAP (ASN1_GEN_FLAG|7)
#define ASN1_GEN_FLAG_FORMAT (ASN1_GEN_FLAG|8)
#define ASN1_GEN_STR(str,val) {str, sizeof(str) - 1, val}
#define ASN1_GEN_STR(str,val) {str, sizeof(str) - 1, val}
...
@@ -335,6 +336,11 @@ static int asn1_cb(const char *elem, int len, void *bitstr)
...
@@ -335,6 +336,11 @@ static int asn1_cb(const char *elem, int len, void *bitstr)
return
-
1
;
return
-
1
;
break
;
break
;
case
ASN1_GEN_FLAG_SETWRAP
:
if
(
!
append_exp
(
arg
,
V_ASN1_SET
,
V_ASN1_UNIVERSAL
,
1
,
0
,
1
))
return
-
1
;
break
;
case
ASN1_GEN_FLAG_BITWRAP
:
case
ASN1_GEN_FLAG_BITWRAP
:
if
(
!
append_exp
(
arg
,
V_ASN1_BIT_STRING
,
V_ASN1_UNIVERSAL
,
0
,
1
,
1
))
if
(
!
append_exp
(
arg
,
V_ASN1_BIT_STRING
,
V_ASN1_UNIVERSAL
,
0
,
1
,
1
))
return
-
1
;
return
-
1
;
...
@@ -588,6 +594,8 @@ static int asn1_str2tag(const char *tagstr, int len)
...
@@ -588,6 +594,8 @@ static int asn1_str2tag(const char *tagstr, int len)
ASN1_GEN_STR
(
"OCTWRAP"
,
ASN1_GEN_FLAG_OCTWRAP
),
ASN1_GEN_STR
(
"OCTWRAP"
,
ASN1_GEN_FLAG_OCTWRAP
),
/* SEQUENCE wrapper */
/* SEQUENCE wrapper */
ASN1_GEN_STR
(
"SEQWRAP"
,
ASN1_GEN_FLAG_SEQWRAP
),
ASN1_GEN_STR
(
"SEQWRAP"
,
ASN1_GEN_FLAG_SEQWRAP
),
/* SET wrapper */
ASN1_GEN_STR
(
"SETWRAP"
,
ASN1_GEN_FLAG_SEQWRAP
),
/* BIT STRING wrapper */
/* BIT STRING wrapper */
ASN1_GEN_STR
(
"BITWRAP"
,
ASN1_GEN_FLAG_BITWRAP
),
ASN1_GEN_STR
(
"BITWRAP"
,
ASN1_GEN_FLAG_BITWRAP
),
ASN1_GEN_STR
(
"FORM"
,
ASN1_GEN_FLAG_FORMAT
),
ASN1_GEN_STR
(
"FORM"
,
ASN1_GEN_FLAG_FORMAT
),
...
...
doc/crypto/ASN1_generate_nconf.pod
浏览文件 @
d78254aa
...
@@ -32,7 +32,7 @@ is:
...
@@ -32,7 +32,7 @@ is:
That is zero or more comma separated modifiers followed by a type
That is zero or more comma separated modifiers followed by a type
followed by an optional colon and a value. The formats of B<type>,
followed by an optional colon and a value. The formats of B<type>,
B<value> and B<modifier>
is
explained below.
B<value> and B<modifier>
are
explained below.
=head2 SUPPORTED TYPES
=head2 SUPPORTED TYPES
...
@@ -45,7 +45,7 @@ only the B<ASCII> format is permissible.
...
@@ -45,7 +45,7 @@ only the B<ASCII> format is permissible.
This encodes a boolean type. The B<value> string is mandatory and
This encodes a boolean type. The B<value> string is mandatory and
should be B<TRUE> or B<FALSE>. Additionally B<TRUE>, B<true>, B<Y>,
should be B<TRUE> or B<FALSE>. Additionally B<TRUE>, B<true>, B<Y>,
B<y>, B<YES>, B<yes>, B<FALSE> B<false>, B<N>, B<n>, B<NO> and B<no>
B<y>, B<YES>, B<yes>, B<FALSE>
,
B<false>, B<N>, B<n>, B<NO> and B<no>
are acceptable.
are acceptable.
=item B<NULL>
=item B<NULL>
...
@@ -106,8 +106,9 @@ contents of this structure. The format can be B<ASCII> or B<UTF8>.
...
@@ -106,8 +106,9 @@ contents of this structure. The format can be B<ASCII> or B<UTF8>.
Formats the result as an ASN1 B<SEQUENCE> or B<SET> type. B<value>
Formats the result as an ASN1 B<SEQUENCE> or B<SET> type. B<value>
should be a section name which will contain the contents. The
should be a section name which will contain the contents. The
field names are ignored and the values are in the generated
field names in the section are ignored and the values are in the
string format. If B<value> is absent the the content will be empty.
generated string format. If B<value> is absent then an empty SEQUENCE
will be encoded.
=back
=back
...
@@ -135,10 +136,10 @@ the default is CONTEXT SPECIFIC.
...
@@ -135,10 +136,10 @@ the default is CONTEXT SPECIFIC.
This is the same as B<EXPLICIT> except IMPLICIT tagging is used
This is the same as B<EXPLICIT> except IMPLICIT tagging is used
instead.
instead.
=item B<OCTWRAP>, B<SEQWRAP>, B<BITWRAP>
=item B<OCTWRAP>, B<SEQWRAP>, B<
SETWRAP>, B<
BITWRAP>
The following structure is surrounded by an OCTET STRING, a SEQUENCE
The following structure is surrounded by an OCTET STRING, a SEQUENCE
,
or a BIT STRING respectively. For a BIT STRING the number of unused
a SET
or a BIT STRING respectively. For a BIT STRING the number of unused
bits is set to zero.
bits is set to zero.
=item B<FORMAT>
=item B<FORMAT>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录