Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
65cbf983
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,发现更多精彩内容 >>
提交
65cbf983
编写于
8月 31, 2015
作者:
D
Dr. Stephen Henson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add X509_CRL_up_ref function
Reviewed-by:
N
Rich Salz
<
rsalz@openssl.org
>
上级
a7e974c7
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
17 addition
and
11 deletion
+17
-11
crypto/cms/cms_lib.c
crypto/cms/cms_lib.c
+2
-2
crypto/pkcs7/pk7_lib.c
crypto/pkcs7/pk7_lib.c
+1
-1
crypto/store/str_lib.c
crypto/store/str_lib.c
+4
-4
crypto/x509/x509_lu.c
crypto/x509/x509_lu.c
+2
-2
crypto/x509/x509_vfy.c
crypto/x509/x509_vfy.c
+2
-2
crypto/x509/x509cset.c
crypto/x509/x509cset.c
+5
-0
include/openssl/x509.h
include/openssl/x509.h
+1
-0
未找到文件。
crypto/cms/cms_lib.c
浏览文件 @
65cbf983
...
...
@@ -517,7 +517,7 @@ int CMS_add1_crl(CMS_ContentInfo *cms, X509_CRL *crl)
int
r
;
r
=
CMS_add0_crl
(
cms
,
crl
);
if
(
r
>
0
)
CRYPTO_add
(
&
crl
->
references
,
1
,
CRYPTO_LOCK_X509_CRL
);
X509_CRL_up_ref
(
crl
);
return
r
;
}
...
...
@@ -570,7 +570,7 @@ STACK_OF(X509_CRL) *CMS_get1_crls(CMS_ContentInfo *cms)
sk_X509_CRL_pop_free
(
crls
,
X509_CRL_free
);
return
NULL
;
}
CRYPTO_add
(
&
rch
->
d
.
crl
->
references
,
1
,
CRYPTO_LOCK_X509_CRL
);
X509_CRL_up_ref
(
rch
->
d
.
crl
);
}
}
return
crls
;
...
...
crypto/pkcs7/pk7_lib.c
浏览文件 @
65cbf983
...
...
@@ -341,7 +341,7 @@ int PKCS7_add_crl(PKCS7 *p7, X509_CRL *crl)
return
0
;
}
CRYPTO_add
(
&
crl
->
references
,
1
,
CRYPTO_LOCK_X509_CRL
);
X509_CRL_up_ref
(
crl
);
if
(
!
sk_X509_CRL_push
(
*
sk
,
crl
))
{
X509_CRL_free
(
crl
);
return
0
;
...
...
crypto/store/str_lib.c
浏览文件 @
65cbf983
...
...
@@ -821,7 +821,7 @@ X509_CRL *STORE_generate_crl(STORE *s, OPENSSL_ITEM attributes[],
STOREerr
(
STORE_F_STORE_GENERATE_CRL
,
STORE_R_FAILED_GENERATING_CRL
);
return
0
;
}
CRYPTO_add
(
&
object
->
data
.
crl
->
references
,
1
,
CRYPTO_LOCK_X509_CRL
);
X509_CRL_up_ref
(
object
->
data
.
crl
);
#ifdef REF_PRINT
REF_PRINT
(
"X509_CRL"
,
data
);
#endif
...
...
@@ -845,7 +845,7 @@ X509_CRL *STORE_get_crl(STORE *s, OPENSSL_ITEM attributes[],
STOREerr
(
STORE_F_STORE_GET_CRL
,
STORE_R_FAILED_GETTING_KEY
);
return
0
;
}
CRYPTO_add
(
&
object
->
data
.
crl
->
references
,
1
,
CRYPTO_LOCK_X509_CRL
);
X509_CRL_up_ref
(
object
->
data
.
crl
);
#ifdef REF_PRINT
REF_PRINT
(
"X509_CRL"
,
data
);
#endif
...
...
@@ -869,7 +869,7 @@ int STORE_store_crl(STORE *s, X509_CRL *data, OPENSSL_ITEM attributes[],
return
0
;
}
CRYPTO_add
(
&
data
->
references
,
1
,
CRYPTO_LOCK_X509_CRL
);
X509_CRL_up_ref
(
data
);
#ifdef REF_PRINT
REF_PRINT
(
"X509_CRL"
,
data
);
#endif
...
...
@@ -950,7 +950,7 @@ X509_CRL *STORE_list_crl_next(STORE *s, void *handle)
STOREerr
(
STORE_F_STORE_LIST_CRL_NEXT
,
STORE_R_FAILED_LISTING_KEYS
);
return
0
;
}
CRYPTO_add
(
&
object
->
data
.
crl
->
references
,
1
,
CRYPTO_LOCK_X509_CRL
);
X509_CRL_up_ref
(
object
->
data
.
crl
);
#ifdef REF_PRINT
REF_PRINT
(
"X509_CRL"
,
data
);
#endif
...
...
crypto/x509/x509_lu.c
浏览文件 @
65cbf983
...
...
@@ -409,7 +409,7 @@ void X509_OBJECT_up_ref_count(X509_OBJECT *a)
CRYPTO_add
(
&
a
->
data
.
x509
->
references
,
1
,
CRYPTO_LOCK_X509
);
break
;
case
X509_LU_CRL
:
CRYPTO_add
(
&
a
->
data
.
crl
->
references
,
1
,
CRYPTO_LOCK_X509_CRL
);
X509_CRL_up_ref
(
a
->
data
.
crl
);
break
;
}
}
...
...
@@ -565,7 +565,7 @@ STACK_OF(X509_CRL) *X509_STORE_get1_crls(X509_STORE_CTX *ctx, X509_NAME *nm)
for
(
i
=
0
;
i
<
cnt
;
i
++
,
idx
++
)
{
obj
=
sk_X509_OBJECT_value
(
ctx
->
ctx
->
objs
,
idx
);
x
=
obj
->
data
.
crl
;
CRYPTO_add
(
&
x
->
references
,
1
,
CRYPTO_LOCK_X509_CRL
);
X509_CRL_up_ref
(
x
);
if
(
!
sk_X509_CRL_push
(
sk
,
x
))
{
CRYPTO_w_unlock
(
CRYPTO_LOCK_X509_STORE
);
X509_CRL_free
(
x
);
...
...
crypto/x509/x509_vfy.c
浏览文件 @
65cbf983
...
...
@@ -1025,7 +1025,7 @@ static int get_crl_sk(X509_STORE_CTX *ctx, X509_CRL **pcrl, X509_CRL **pdcrl,
*
pissuer
=
best_crl_issuer
;
*
pscore
=
best_score
;
*
preasons
=
best_reasons
;
CRYPTO_add
(
&
best_crl
->
references
,
1
,
CRYPTO_LOCK_X509_CRL
);
X509_CRL_up_ref
(
best_crl
);
X509_CRL_free
(
*
pdcrl
);
*
pdcrl
=
NULL
;
get_delta_sk
(
ctx
,
pdcrl
,
pscore
,
best_crl
,
crls
);
...
...
@@ -1123,7 +1123,7 @@ static void get_delta_sk(X509_STORE_CTX *ctx, X509_CRL **dcrl, int *pscore,
if
(
check_delta_base
(
delta
,
base
))
{
if
(
check_crl_time
(
ctx
,
delta
,
0
))
*
pscore
|=
CRL_SCORE_TIME_DELTA
;
CRYPTO_add
(
&
delta
->
references
,
1
,
CRYPTO_LOCK_X509_CRL
);
X509_CRL_up_ref
(
delta
);
*
dcrl
=
delta
;
return
;
}
...
...
crypto/x509/x509cset.c
浏览文件 @
65cbf983
...
...
@@ -132,6 +132,11 @@ int X509_CRL_sort(X509_CRL *c)
return
1
;
}
void
X509_CRL_up_ref
(
X509_CRL
*
crl
)
{
CRYPTO_add
(
&
crl
->
references
,
1
,
CRYPTO_LOCK_X509_CRL
);
}
int
X509_REVOKED_set_revocationDate
(
X509_REVOKED
*
x
,
ASN1_TIME
*
tm
)
{
ASN1_TIME
*
in
;
...
...
include/openssl/x509.h
浏览文件 @
65cbf983
...
...
@@ -837,6 +837,7 @@ int X509_CRL_set_issuer_name(X509_CRL *x, X509_NAME *name);
int
X509_CRL_set_lastUpdate
(
X509_CRL
*
x
,
const
ASN1_TIME
*
tm
);
int
X509_CRL_set_nextUpdate
(
X509_CRL
*
x
,
const
ASN1_TIME
*
tm
);
int
X509_CRL_sort
(
X509_CRL
*
crl
);
void
X509_CRL_up_ref
(
X509_CRL
*
crl
);
int
X509_REVOKED_set_serialNumber
(
X509_REVOKED
*
x
,
ASN1_INTEGER
*
serial
);
int
X509_REVOKED_set_revocationDate
(
X509_REVOKED
*
r
,
ASN1_TIME
*
tm
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录