Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
f1a6a0d4
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看板
提交
f1a6a0d4
编写于
12月 16, 2000
作者:
D
Dr. Stephen Henson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add support for the noCheck OCSP extension. This is
just a NULL and appears in a certificate.
上级
9c67ab2f
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
28 addition
and
4 deletion
+28
-4
crypto/objects/obj_dat.h
crypto/objects/obj_dat.h
+2
-2
crypto/objects/obj_mac.h
crypto/objects/obj_mac.h
+1
-0
crypto/objects/objects.txt
crypto/objects/objects.txt
+1
-1
crypto/x509v3/ext_dat.h
crypto/x509v3/ext_dat.h
+2
-1
crypto/x509v3/v3_ocsp.c
crypto/x509v3/v3_ocsp.c
+22
-0
未找到文件。
crypto/objects/obj_dat.h
浏览文件 @
f1a6a0d4
...
@@ -1016,7 +1016,7 @@ static ASN1_OBJECT nid_objs[NUM_NID]={
...
@@ -1016,7 +1016,7 @@ static ASN1_OBJECT nid_objs[NUM_NID]={
{
"CrlID"
,
"OCSP CRL ID"
,
NID_id_pkix_OCSP_CrlID
,
9
,
&
(
lvalues
[
2745
]),
0
},
{
"CrlID"
,
"OCSP CRL ID"
,
NID_id_pkix_OCSP_CrlID
,
9
,
&
(
lvalues
[
2745
]),
0
},
{
"acceptableResponses"
,
"Acceptable OCSP Responses"
,
{
"acceptableResponses"
,
"Acceptable OCSP Responses"
,
NID_id_pkix_OCSP_acceptableResponses
,
9
,
&
(
lvalues
[
2754
]),
0
},
NID_id_pkix_OCSP_acceptableResponses
,
9
,
&
(
lvalues
[
2754
]),
0
},
{
"noCheck"
,
"
no
Check"
,
NID_id_pkix_OCSP_noCheck
,
9
,
&
(
lvalues
[
2763
]),
0
},
{
"noCheck"
,
"
OCSP No
Check"
,
NID_id_pkix_OCSP_noCheck
,
9
,
&
(
lvalues
[
2763
]),
0
},
{
"archiveCutoff"
,
"OCSP Archive Cutoff"
,
NID_id_pkix_OCSP_archiveCutoff
,
{
"archiveCutoff"
,
"OCSP Archive Cutoff"
,
NID_id_pkix_OCSP_archiveCutoff
,
9
,
&
(
lvalues
[
2772
]),
0
},
9
,
&
(
lvalues
[
2772
]),
0
},
{
"serviceLocator"
,
"OCSP Service Locator"
,
{
"serviceLocator"
,
"OCSP Service Locator"
,
...
@@ -1517,6 +1517,7 @@ static ASN1_OBJECT *ln_objs[NUM_LN]={
...
@@ -1517,6 +1517,7 @@ static ASN1_OBJECT *ln_objs[NUM_LN]={
&
(
nid_objs
[
178
]),
/* "OCSP" */
&
(
nid_objs
[
178
]),
/* "OCSP" */
&
(
nid_objs
[
370
]),
/* "OCSP Archive Cutoff" */
&
(
nid_objs
[
370
]),
/* "OCSP Archive Cutoff" */
&
(
nid_objs
[
367
]),
/* "OCSP CRL ID" */
&
(
nid_objs
[
367
]),
/* "OCSP CRL ID" */
&
(
nid_objs
[
369
]),
/* "OCSP No Check" */
&
(
nid_objs
[
366
]),
/* "OCSP Nonce" */
&
(
nid_objs
[
366
]),
/* "OCSP Nonce" */
&
(
nid_objs
[
371
]),
/* "OCSP Service Locator" */
&
(
nid_objs
[
371
]),
/* "OCSP Service Locator" */
&
(
nid_objs
[
180
]),
/* "OCSP Signing" */
&
(
nid_objs
[
180
]),
/* "OCSP Signing" */
...
@@ -1791,7 +1792,6 @@ static ASN1_OBJECT *ln_objs[NUM_LN]={
...
@@ -1791,7 +1792,6 @@ static ASN1_OBJECT *ln_objs[NUM_LN]={
&
(
nid_objs
[
96
]),
/* "mdc2WithRSA" */
&
(
nid_objs
[
96
]),
/* "mdc2WithRSA" */
&
(
nid_objs
[
51
]),
/* "messageDigest" */
&
(
nid_objs
[
51
]),
/* "messageDigest" */
&
(
nid_objs
[
173
]),
/* "name" */
&
(
nid_objs
[
173
]),
/* "name" */
&
(
nid_objs
[
369
]),
/* "noCheck" */
&
(
nid_objs
[
379
]),
/* "org" */
&
(
nid_objs
[
379
]),
/* "org" */
&
(
nid_objs
[
17
]),
/* "organizationName" */
&
(
nid_objs
[
17
]),
/* "organizationName" */
&
(
nid_objs
[
18
]),
/* "organizationalUnitName" */
&
(
nid_objs
[
18
]),
/* "organizationalUnitName" */
...
...
crypto/objects/obj_mac.h
浏览文件 @
f1a6a0d4
...
@@ -1323,6 +1323,7 @@
...
@@ -1323,6 +1323,7 @@
#define OBJ_id_pkix_OCSP_acceptableResponses OBJ_id_pkix_OCSP,4L
#define OBJ_id_pkix_OCSP_acceptableResponses OBJ_id_pkix_OCSP,4L
#define SN_id_pkix_OCSP_noCheck "noCheck"
#define SN_id_pkix_OCSP_noCheck "noCheck"
#define LN_id_pkix_OCSP_noCheck "OCSP No Check"
#define NID_id_pkix_OCSP_noCheck 369
#define NID_id_pkix_OCSP_noCheck 369
#define OBJ_id_pkix_OCSP_noCheck OBJ_id_pkix_OCSP,5L
#define OBJ_id_pkix_OCSP_noCheck OBJ_id_pkix_OCSP,5L
...
...
crypto/objects/objects.txt
浏览文件 @
f1a6a0d4
...
@@ -434,7 +434,7 @@ id-pkix-OCSP 1 : basicOCSPResponse : Basic OCSP Response
...
@@ -434,7 +434,7 @@ id-pkix-OCSP 1 : basicOCSPResponse : Basic OCSP Response
id-pkix-OCSP 2 : Nonce : OCSP Nonce
id-pkix-OCSP 2 : Nonce : OCSP Nonce
id-pkix-OCSP 3 : CrlID : OCSP CRL ID
id-pkix-OCSP 3 : CrlID : OCSP CRL ID
id-pkix-OCSP 4 : acceptableResponses : Acceptable OCSP Responses
id-pkix-OCSP 4 : acceptableResponses : Acceptable OCSP Responses
id-pkix-OCSP 5 : noCheck
id-pkix-OCSP 5 : noCheck
: OCSP No Check
id-pkix-OCSP 6 : archiveCutoff : OCSP Archive Cutoff
id-pkix-OCSP 6 : archiveCutoff : OCSP Archive Cutoff
id-pkix-OCSP 7 : serviceLocator : OCSP Service Locator
id-pkix-OCSP 7 : serviceLocator : OCSP Service Locator
id-pkix-OCSP 8 : extendedStatus : Extended OCSP Status
id-pkix-OCSP 8 : extendedStatus : Extended OCSP Status
...
...
crypto/x509v3/ext_dat.h
浏览文件 @
f1a6a0d4
...
@@ -62,7 +62,7 @@ extern X509V3_EXT_METHOD v3_pkey_usage_period, v3_sxnet, v3_info;
...
@@ -62,7 +62,7 @@ extern X509V3_EXT_METHOD v3_pkey_usage_period, v3_sxnet, v3_info;
extern
X509V3_EXT_METHOD
v3_ns_ia5_list
[],
v3_alt
[],
v3_skey_id
,
v3_akey_id
;
extern
X509V3_EXT_METHOD
v3_ns_ia5_list
[],
v3_alt
[],
v3_skey_id
,
v3_akey_id
;
extern
X509V3_EXT_METHOD
v3_crl_num
,
v3_crl_reason
,
v3_cpols
,
v3_crld
;
extern
X509V3_EXT_METHOD
v3_crl_num
,
v3_crl_reason
,
v3_cpols
,
v3_crld
;
extern
X509V3_EXT_METHOD
v3_ocsp_nonce
,
v3_ocsp_accresp
,
v3_ocsp_acutoff
;
extern
X509V3_EXT_METHOD
v3_ocsp_nonce
,
v3_ocsp_accresp
,
v3_ocsp_acutoff
;
extern
X509V3_EXT_METHOD
v3_ocsp_crlid
;
extern
X509V3_EXT_METHOD
v3_ocsp_crlid
,
v3_ocsp_nocheck
;
/* 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.
...
@@ -94,6 +94,7 @@ static X509V3_EXT_METHOD *standard_exts[] = {
...
@@ -94,6 +94,7 @@ static X509V3_EXT_METHOD *standard_exts[] = {
&
v3_ocsp_nonce
,
&
v3_ocsp_nonce
,
&
v3_ocsp_crlid
,
&
v3_ocsp_crlid
,
&
v3_ocsp_accresp
,
&
v3_ocsp_accresp
,
&
v3_ocsp_nocheck
,
&
v3_ocsp_acutoff
&
v3_ocsp_acutoff
};
};
...
...
crypto/x509v3/v3_ocsp.c
浏览文件 @
f1a6a0d4
...
@@ -75,6 +75,9 @@ static void *d2i_ocsp_nonce(void *a, unsigned char **pp, long length);
...
@@ -75,6 +75,9 @@ static void *d2i_ocsp_nonce(void *a, unsigned char **pp, long length);
static
void
ocsp_nonce_free
(
void
*
a
);
static
void
ocsp_nonce_free
(
void
*
a
);
static
int
i2r_ocsp_nonce
(
X509V3_EXT_METHOD
*
method
,
void
*
nonce
,
BIO
*
out
,
int
indent
);
static
int
i2r_ocsp_nonce
(
X509V3_EXT_METHOD
*
method
,
void
*
nonce
,
BIO
*
out
,
int
indent
);
static
int
i2r_ocsp_nocheck
(
X509V3_EXT_METHOD
*
method
,
void
*
nocheck
,
BIO
*
out
,
int
indent
);
static
void
*
s2i_ocsp_nocheck
(
X509V3_EXT_METHOD
*
method
,
X509V3_CTX
*
ctx
,
char
*
str
);
X509V3_EXT_METHOD
v3_ocsp_crlid
=
{
X509V3_EXT_METHOD
v3_ocsp_crlid
=
{
NID_id_pkix_OCSP_CrlID
,
0
,
&
OCSP_CRLID_it
,
NID_id_pkix_OCSP_CrlID
,
0
,
&
OCSP_CRLID_it
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
...
@@ -105,6 +108,15 @@ X509V3_EXT_METHOD v3_ocsp_nonce = {
...
@@ -105,6 +108,15 @@ X509V3_EXT_METHOD v3_ocsp_nonce = {
NULL
NULL
};
};
X509V3_EXT_METHOD
v3_ocsp_nocheck
=
{
NID_id_pkix_OCSP_noCheck
,
0
,
&
ASN1_NULL_it
,
0
,
0
,
0
,
0
,
0
,
s2i_ocsp_nocheck
,
0
,
0
,
i2r_ocsp_nocheck
,
0
,
NULL
};
static
int
i2r_ocsp_crlid
(
X509V3_EXT_METHOD
*
method
,
void
*
in
,
BIO
*
bp
,
int
ind
)
static
int
i2r_ocsp_crlid
(
X509V3_EXT_METHOD
*
method
,
void
*
in
,
BIO
*
bp
,
int
ind
)
{
{
OCSP_CRLID
*
a
=
in
;
OCSP_CRLID
*
a
=
in
;
...
@@ -189,4 +201,14 @@ static int i2r_ocsp_nonce(X509V3_EXT_METHOD *method, void *nonce, BIO *out, int
...
@@ -189,4 +201,14 @@ static int i2r_ocsp_nonce(X509V3_EXT_METHOD *method, void *nonce, BIO *out, int
return
1
;
return
1
;
}
}
/* Nocheck is just a single NULL. Don't print anything and always set it */
static
int
i2r_ocsp_nocheck
(
X509V3_EXT_METHOD
*
method
,
void
*
nocheck
,
BIO
*
out
,
int
indent
)
{
return
1
;
}
static
void
*
s2i_ocsp_nocheck
(
X509V3_EXT_METHOD
*
method
,
X509V3_CTX
*
ctx
,
char
*
str
)
{
return
ASN1_NULL_new
();
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录