Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
edec614e
T
Third Party Openssl
项目概览
OpenHarmony
/
Third Party Openssl
9 个月 前同步成功
通知
8
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,体验更适合开发者的 AI 搜索 >>
提交
edec614e
编写于
3月 08, 2004
作者:
D
Dr. Stephen Henson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Support for inhibitAnyPolicy extension.
上级
2457c19d
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
45 addition
and
14 deletion
+45
-14
CHANGES
CHANGES
+3
-0
crypto/objects/obj_dat.h
crypto/objects/obj_dat.h
+11
-5
crypto/objects/obj_mac.h
crypto/objects/obj_mac.h
+5
-0
crypto/objects/obj_mac.num
crypto/objects/obj_mac.num
+1
-0
crypto/objects/objects.txt
crypto/objects/objects.txt
+2
-0
crypto/x509v3/ext_dat.h
crypto/x509v3/ext_dat.h
+4
-3
crypto/x509v3/v3_int.c
crypto/x509v3/v3_int.c
+19
-6
未找到文件。
CHANGES
浏览文件 @
edec614e
...
@@ -4,6 +4,9 @@
...
@@ -4,6 +4,9 @@
Changes between 0.9.7c and 0.9.8 [xx XXX xxxx]
Changes between 0.9.7c and 0.9.8 [xx XXX xxxx]
*) Support for inhibitAnyPolicy certificate extension.
[Steve Henson]
*) An audit of the BIGNUM code is underway, for which debugging code is
*) An audit of the BIGNUM code is underway, for which debugging code is
enabled when BN_DEBUG is defined. This makes stricter enforcements on what
enabled when BN_DEBUG is defined. This makes stricter enforcements on what
is considered valid when processing BIGNUMs, and causes execution to
is considered valid when processing BIGNUMs, and causes execution to
...
...
crypto/objects/obj_dat.h
浏览文件 @
edec614e
...
@@ -62,12 +62,12 @@
...
@@ -62,12 +62,12 @@
* [including the GNU Public Licence.]
* [including the GNU Public Licence.]
*/
*/
#define NUM_NID 73
6
#define NUM_NID 73
7
#define NUM_SN 73
1
#define NUM_SN 73
2
#define NUM_LN 73
1
#define NUM_LN 73
2
#define NUM_OBJ 69
3
#define NUM_OBJ 69
4
static
unsigned
char
lvalues
[
488
2
]
=
{
static
unsigned
char
lvalues
[
488
5
]
=
{
0x00
,
/* [ 0] OBJ_undef */
0x00
,
/* [ 0] OBJ_undef */
0x2A
,
0x86
,
0x48
,
0x86
,
0xF7
,
0x0D
,
/* [ 1] OBJ_rsadsi */
0x2A
,
0x86
,
0x48
,
0x86
,
0xF7
,
0x0D
,
/* [ 1] OBJ_rsadsi */
0x2A
,
0x86
,
0x48
,
0x86
,
0xF7
,
0x0D
,
0x01
,
/* [ 7] OBJ_pkcs */
0x2A
,
0x86
,
0x48
,
0x86
,
0xF7
,
0x0D
,
0x01
,
/* [ 7] OBJ_pkcs */
...
@@ -761,6 +761,7 @@ static unsigned char lvalues[4882]={
...
@@ -761,6 +761,7 @@ static unsigned char lvalues[4882]={
0x00
,
/* [4878] OBJ_itu_t */
0x00
,
/* [4878] OBJ_itu_t */
0x50
,
/* [4879] OBJ_joint_iso_itu_t */
0x50
,
/* [4879] OBJ_joint_iso_itu_t */
0x67
,
/* [4880] OBJ_international_organizations */
0x67
,
/* [4880] OBJ_international_organizations */
0x55
,
0x1D
,
0x36
,
/* [4881] OBJ_inhibit_any_policy */
};
};
static
ASN1_OBJECT
nid_objs
[
NUM_NID
]
=
{
static
ASN1_OBJECT
nid_objs
[
NUM_NID
]
=
{
...
@@ -1906,6 +1907,8 @@ static ASN1_OBJECT nid_objs[NUM_NID]={
...
@@ -1906,6 +1907,8 @@ static ASN1_OBJECT nid_objs[NUM_NID]={
{
"DES-CFB8"
,
"des-cfb8"
,
NID_des_cfb8
,
0
,
NULL
},
{
"DES-CFB8"
,
"des-cfb8"
,
NID_des_cfb8
,
0
,
NULL
},
{
"DES-EDE3-CFB1"
,
"des-ede3-cfb1"
,
NID_des_ede3_cfb1
,
0
,
NULL
},
{
"DES-EDE3-CFB1"
,
"des-ede3-cfb1"
,
NID_des_ede3_cfb1
,
0
,
NULL
},
{
"DES-EDE3-CFB8"
,
"des-ede3-cfb8"
,
NID_des_ede3_cfb8
,
0
,
NULL
},
{
"DES-EDE3-CFB8"
,
"des-ede3-cfb8"
,
NID_des_ede3_cfb8
,
0
,
NULL
},
{
"inhibitAnyPolicy"
,
"X509v3 Inhibit Any Policy"
,
NID_inhibit_any_policy
,
3
,
&
(
lvalues
[
4881
]),
0
},
};
};
static
ASN1_OBJECT
*
sn_objs
[
NUM_SN
]
=
{
static
ASN1_OBJECT
*
sn_objs
[
NUM_SN
]
=
{
...
@@ -2323,6 +2326,7 @@ static ASN1_OBJECT *sn_objs[NUM_SN]={
...
@@ -2323,6 +2326,7 @@ static ASN1_OBJECT *sn_objs[NUM_SN]={
&
(
nid_objs
[
249
]),
/* "id-smime-spq-ets-sqt-uri" */
&
(
nid_objs
[
249
]),
/* "id-smime-spq-ets-sqt-uri" */
&
(
nid_objs
[
527
]),
/* "identified-organization" */
&
(
nid_objs
[
527
]),
/* "identified-organization" */
&
(
nid_objs
[
461
]),
/* "info" */
&
(
nid_objs
[
461
]),
/* "info" */
&
(
nid_objs
[
736
]),
/* "inhibitAnyPolicy" */
&
(
nid_objs
[
101
]),
/* "initials" */
&
(
nid_objs
[
101
]),
/* "initials" */
&
(
nid_objs
[
723
]),
/* "international-organizations" */
&
(
nid_objs
[
723
]),
/* "international-organizations" */
&
(
nid_objs
[
142
]),
/* "invalidityDate" */
&
(
nid_objs
[
142
]),
/* "invalidityDate" */
...
@@ -2736,6 +2740,7 @@ static ASN1_OBJECT *ln_objs[NUM_LN]={
...
@@ -2736,6 +2740,7 @@ static ASN1_OBJECT *ln_objs[NUM_LN]={
&
(
nid_objs
[
89
]),
/* "X509v3 Certificate Policies" */
&
(
nid_objs
[
89
]),
/* "X509v3 Certificate Policies" */
&
(
nid_objs
[
140
]),
/* "X509v3 Delta CRL Indicator" */
&
(
nid_objs
[
140
]),
/* "X509v3 Delta CRL Indicator" */
&
(
nid_objs
[
126
]),
/* "X509v3 Extended Key Usage" */
&
(
nid_objs
[
126
]),
/* "X509v3 Extended Key Usage" */
&
(
nid_objs
[
736
]),
/* "X509v3 Inhibit Any Policy" */
&
(
nid_objs
[
86
]),
/* "X509v3 Issuer Alternative Name" */
&
(
nid_objs
[
86
]),
/* "X509v3 Issuer Alternative Name" */
&
(
nid_objs
[
83
]),
/* "X509v3 Key Usage" */
&
(
nid_objs
[
83
]),
/* "X509v3 Key Usage" */
&
(
nid_objs
[
720
]),
/* "X509v3 Name Constraints" */
&
(
nid_objs
[
720
]),
/* "X509v3 Name Constraints" */
...
@@ -3436,6 +3441,7 @@ static ASN1_OBJECT *obj_objs[NUM_OBJ]={
...
@@ -3436,6 +3441,7 @@ static ASN1_OBJECT *obj_objs[NUM_OBJ]={
&
(
nid_objs
[
90
]),
/* OBJ_authority_key_identifier 2 5 29 35 */
&
(
nid_objs
[
90
]),
/* OBJ_authority_key_identifier 2 5 29 35 */
&
(
nid_objs
[
401
]),
/* OBJ_policy_constraints 2 5 29 36 */
&
(
nid_objs
[
401
]),
/* OBJ_policy_constraints 2 5 29 36 */
&
(
nid_objs
[
126
]),
/* OBJ_ext_key_usage 2 5 29 37 */
&
(
nid_objs
[
126
]),
/* OBJ_ext_key_usage 2 5 29 37 */
&
(
nid_objs
[
736
]),
/* OBJ_inhibit_any_policy 2 5 29 54 */
&
(
nid_objs
[
402
]),
/* OBJ_target_information 2 5 29 55 */
&
(
nid_objs
[
402
]),
/* OBJ_target_information 2 5 29 55 */
&
(
nid_objs
[
403
]),
/* OBJ_no_rev_avail 2 5 29 56 */
&
(
nid_objs
[
403
]),
/* OBJ_no_rev_avail 2 5 29 56 */
&
(
nid_objs
[
577
]),
/* OBJ_set_ctype 2 23 42 0 */
&
(
nid_objs
[
577
]),
/* OBJ_set_ctype 2 23 42 0 */
...
...
crypto/objects/obj_mac.h
浏览文件 @
edec614e
...
@@ -2082,6 +2082,11 @@
...
@@ -2082,6 +2082,11 @@
#define NID_ext_key_usage 126
#define NID_ext_key_usage 126
#define OBJ_ext_key_usage OBJ_id_ce,37L
#define OBJ_ext_key_usage OBJ_id_ce,37L
#define SN_inhibit_any_policy "inhibitAnyPolicy"
#define LN_inhibit_any_policy "X509v3 Inhibit Any Policy"
#define NID_inhibit_any_policy 736
#define OBJ_inhibit_any_policy OBJ_id_ce,54L
#define SN_target_information "targetInformation"
#define SN_target_information "targetInformation"
#define LN_target_information "X509v3 AC Targeting"
#define LN_target_information "X509v3 AC Targeting"
#define NID_target_information 402
#define NID_target_information 402
...
...
crypto/objects/obj_mac.num
浏览文件 @
edec614e
...
@@ -733,3 +733,4 @@ des_cfb1 732
...
@@ -733,3 +733,4 @@ des_cfb1 732
des_cfb8 733
des_cfb8 733
des_ede3_cfb1 734
des_ede3_cfb1 734
des_ede3_cfb8 735
des_ede3_cfb8 735
inhibit_any_policy 736
crypto/objects/objects.txt
浏览文件 @
edec614e
...
@@ -679,6 +679,8 @@ id-ce 35 : authorityKeyIdentifier : X509v3 Authority Key Identifier
...
@@ -679,6 +679,8 @@ id-ce 35 : authorityKeyIdentifier : X509v3 Authority Key Identifier
id-ce 36 : policyConstraints : X509v3 Policy Constraints
id-ce 36 : policyConstraints : X509v3 Policy Constraints
!Cname ext-key-usage
!Cname ext-key-usage
id-ce 37 : extendedKeyUsage : X509v3 Extended Key Usage
id-ce 37 : extendedKeyUsage : X509v3 Extended Key Usage
!Cname inhibit-any-policy
id-ce 54 : inhibitAnyPolicy : X509v3 Inhibit Any Policy
!Cname target-information
!Cname target-information
id-ce 55 : targetInformation : X509v3 AC Targeting
id-ce 55 : targetInformation : X509v3 AC Targeting
!Cname no-rev-avail
!Cname no-rev-avail
...
...
crypto/x509v3/ext_dat.h
浏览文件 @
edec614e
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* project 1999.
* project 1999.
*/
*/
/* ====================================================================
/* ====================================================================
* Copyright (c) 1999 The OpenSSL Project. All rights reserved.
* Copyright (c) 1999
-2004
The OpenSSL Project. All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* modification, are permitted provided that the following conditions
...
@@ -65,7 +65,7 @@ extern X509V3_EXT_METHOD v3_ocsp_nonce, v3_ocsp_accresp, v3_ocsp_acutoff;
...
@@ -65,7 +65,7 @@ extern X509V3_EXT_METHOD v3_ocsp_nonce, v3_ocsp_accresp, v3_ocsp_acutoff;
extern
X509V3_EXT_METHOD
v3_ocsp_crlid
,
v3_ocsp_nocheck
,
v3_ocsp_serviceloc
;
extern
X509V3_EXT_METHOD
v3_ocsp_crlid
,
v3_ocsp_nocheck
,
v3_ocsp_serviceloc
;
extern
X509V3_EXT_METHOD
v3_crl_hold
;
extern
X509V3_EXT_METHOD
v3_crl_hold
;
extern
X509V3_EXT_METHOD
v3_policy_mappings
,
v3_policy_constraints
;
extern
X509V3_EXT_METHOD
v3_policy_mappings
,
v3_policy_constraints
;
extern
X509V3_EXT_METHOD
v3_name_constraints
;
extern
X509V3_EXT_METHOD
v3_name_constraints
,
v3_inhibit_anyp
;
/* This table will be searched using OBJ_bsearch so it *must* kept in
/* This table will be searched using OBJ_bsearch so it *must* kept in
* order of the ext_nid values.
* order of the ext_nid values.
...
@@ -111,7 +111,8 @@ static X509V3_EXT_METHOD *standard_exts[] = {
...
@@ -111,7 +111,8 @@ static X509V3_EXT_METHOD *standard_exts[] = {
&
v3_crl_hold
,
&
v3_crl_hold
,
#endif
#endif
&
v3_policy_mappings
,
&
v3_policy_mappings
,
&
v3_name_constraints
&
v3_name_constraints
,
&
v3_inhibit_anyp
};
};
/* Number of standard extensions */
/* Number of standard extensions */
...
...
crypto/x509v3/v3_int.c
浏览文件 @
edec614e
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* project 1999.
* project 1999.
*/
*/
/* ====================================================================
/* ====================================================================
* Copyright (c) 1999 The OpenSSL Project. All rights reserved.
* Copyright (c) 1999
-2004
The OpenSSL Project. All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* modification, are permitted provided that the following conditions
...
@@ -61,9 +61,22 @@
...
@@ -61,9 +61,22 @@
#include <openssl/x509v3.h>
#include <openssl/x509v3.h>
X509V3_EXT_METHOD
v3_crl_num
=
{
X509V3_EXT_METHOD
v3_crl_num
=
{
NID_crl_number
,
0
,
ASN1_ITEM_ref
(
ASN1_INTEGER
),
NID_crl_number
,
0
,
ASN1_ITEM_ref
(
ASN1_INTEGER
),
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
(
X509V3_EXT_I2S
)
i2s_ASN1_INTEGER
,
(
X509V3_EXT_I2S
)
i2s_ASN1_INTEGER
,
0
,
0
,
0
,
0
,
0
,
0
,
NULL
};
0
,
0
,
0
,
0
,
NULL
};
void
*
s2i_asn1_int
(
X509V3_EXT_METHOD
*
meth
,
X509V3_CTX
*
ctx
,
char
*
value
)
{
return
s2i_ASN1_INTEGER
(
meth
,
value
);
}
X509V3_EXT_METHOD
v3_inhibit_anyp
=
{
NID_inhibit_any_policy
,
0
,
ASN1_ITEM_ref
(
ASN1_INTEGER
),
0
,
0
,
0
,
0
,
(
X509V3_EXT_I2S
)
i2s_ASN1_INTEGER
,
(
X509V3_EXT_S2I
)
s2i_asn1_int
,
0
,
0
,
0
,
0
,
NULL
};
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录