Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
6ac4e8bd
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,发现更多精彩内容 >>
提交
6ac4e8bd
编写于
9月 03, 2001
作者:
B
Bodo Möller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Rename recently introduced functions for improved code clarity:
[DR]SA_up => [DR]SA_up_ref
上级
983495c4
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
16 addition
and
16 deletion
+16
-16
crypto/dsa/dsa.h
crypto/dsa/dsa.h
+1
-1
crypto/dsa/dsa_lib.c
crypto/dsa/dsa_lib.c
+2
-2
crypto/evp/p_lib.c
crypto/evp/p_lib.c
+4
-4
crypto/rsa/rsa.h
crypto/rsa/rsa.h
+1
-1
crypto/rsa/rsa_lib.c
crypto/rsa/rsa_lib.c
+2
-2
ssl/s3_srvr.c
ssl/s3_srvr.c
+1
-1
ssl/ssl_cert.c
ssl/ssl_cert.c
+1
-1
ssl/ssl_rsa.c
ssl/ssl_rsa.c
+2
-2
util/libeay.num
util/libeay.num
+2
-2
未找到文件。
crypto/dsa/dsa.h
浏览文件 @
6ac4e8bd
...
...
@@ -179,7 +179,7 @@ DSA * DSA_new_method(struct engine_st *engine);
#endif
void
DSA_free
(
DSA
*
r
);
/* "up" the DSA object's reference count */
int
DSA_up
(
DSA
*
r
);
int
DSA_up
_ref
(
DSA
*
r
);
int
DSA_size
(
const
DSA
*
);
/* next 4 return -1 on error */
int
DSA_sign_setup
(
DSA
*
dsa
,
BN_CTX
*
ctx_in
,
BIGNUM
**
kinvp
,
BIGNUM
**
rp
);
...
...
crypto/dsa/dsa_lib.c
浏览文件 @
6ac4e8bd
...
...
@@ -226,7 +226,7 @@ void DSA_free(DSA *r)
OPENSSL_free
(
r
);
}
int
DSA_up
(
DSA
*
r
)
int
DSA_up
_ref
(
DSA
*
r
)
{
int
i
=
CRYPTO_add
(
&
r
->
references
,
1
,
CRYPTO_LOCK_DSA
);
#ifdef REF_PRINT
...
...
@@ -235,7 +235,7 @@ int DSA_up(DSA *r)
#ifdef REF_CHECK
if
(
i
<
2
)
{
fprintf
(
stderr
,
"DSA_up, bad reference count
\n
"
);
fprintf
(
stderr
,
"DSA_up
_ref
, bad reference count
\n
"
);
abort
();
}
#endif
...
...
crypto/evp/p_lib.c
浏览文件 @
6ac4e8bd
...
...
@@ -211,7 +211,7 @@ int EVP_PKEY_set1_RSA(EVP_PKEY *pkey, RSA *key)
{
int
ret
=
EVP_PKEY_assign_RSA
(
pkey
,
key
);
if
(
ret
)
RSA_up
(
key
);
RSA_up
_ref
(
key
);
return
ret
;
}
...
...
@@ -221,7 +221,7 @@ RSA *EVP_PKEY_get1_RSA(EVP_PKEY *pkey)
EVPerr
(
EVP_F_EVP_PKEY_GET1_RSA
,
EVP_R_EXPECTING_AN_RSA_KEY
);
return
NULL
;
}
RSA_up
(
pkey
->
pkey
.
rsa
);
RSA_up
_ref
(
pkey
->
pkey
.
rsa
);
return
pkey
->
pkey
.
rsa
;
}
#endif
...
...
@@ -231,7 +231,7 @@ int EVP_PKEY_set1_DSA(EVP_PKEY *pkey, DSA *key)
{
int
ret
=
EVP_PKEY_assign_DSA
(
pkey
,
key
);
if
(
ret
)
DSA_up
(
key
);
DSA_up
_ref
(
key
);
return
ret
;
}
...
...
@@ -241,7 +241,7 @@ DSA *EVP_PKEY_get1_DSA(EVP_PKEY *pkey)
EVPerr
(
EVP_F_EVP_PKEY_GET1_DSA
,
EVP_R_EXPECTING_A_DSA_KEY
);
return
NULL
;
}
DSA_up
(
pkey
->
pkey
.
dsa
);
DSA_up
_ref
(
pkey
->
pkey
.
dsa
);
return
pkey
->
pkey
.
dsa
;
}
#endif
...
...
crypto/rsa/rsa.h
浏览文件 @
6ac4e8bd
...
...
@@ -200,7 +200,7 @@ int RSA_private_decrypt(int flen, const unsigned char *from,
unsigned
char
*
to
,
RSA
*
rsa
,
int
padding
);
void
RSA_free
(
RSA
*
r
);
/* "up" the RSA object's reference count */
int
RSA_up
(
RSA
*
r
);
int
RSA_up
_ref
(
RSA
*
r
);
int
RSA_flags
(
const
RSA
*
r
);
...
...
crypto/rsa/rsa_lib.c
浏览文件 @
6ac4e8bd
...
...
@@ -246,7 +246,7 @@ void RSA_free(RSA *r)
OPENSSL_free
(
r
);
}
int
RSA_up
(
RSA
*
r
)
int
RSA_up
_ref
(
RSA
*
r
)
{
int
i
=
CRYPTO_add
(
&
r
->
references
,
1
,
CRYPTO_LOCK_RSA
);
#ifdef REF_PRINT
...
...
@@ -255,7 +255,7 @@ int RSA_up(RSA *r)
#ifdef REF_CHECK
if
(
i
<
2
)
{
fprintf
(
stderr
,
"RSA_up, bad reference count
\n
"
);
fprintf
(
stderr
,
"RSA_up
_ref
, bad reference count
\n
"
);
abort
();
}
#endif
...
...
ssl/s3_srvr.c
浏览文件 @
6ac4e8bd
...
...
@@ -982,7 +982,7 @@ static int ssl3_send_server_key_exchange(SSL *s)
SSLerr
(
SSL_F_SSL3_SEND_SERVER_KEY_EXCHANGE
,
SSL_R_ERROR_GENERATING_TMP_RSA_KEY
);
goto
f_err
;
}
RSA_up
(
rsa
);
RSA_up
_ref
(
rsa
);
cert
->
rsa_tmp
=
rsa
;
}
if
(
rsa
==
NULL
)
...
...
ssl/ssl_cert.c
浏览文件 @
6ac4e8bd
...
...
@@ -190,7 +190,7 @@ CERT *ssl_cert_dup(CERT *cert)
#ifndef OPENSSL_NO_RSA
if
(
cert
->
rsa_tmp
!=
NULL
)
{
RSA_up
(
cert
->
rsa_tmp
);
RSA_up
_ref
(
cert
->
rsa_tmp
);
ret
->
rsa_tmp
=
cert
->
rsa_tmp
;
}
ret
->
rsa_tmp_cb
=
cert
->
rsa_tmp_cb
;
...
...
ssl/ssl_rsa.c
浏览文件 @
6ac4e8bd
...
...
@@ -170,7 +170,7 @@ int SSL_use_RSAPrivateKey(SSL *ssl, RSA *rsa)
return
(
0
);
}
RSA_up
(
rsa
);
RSA_up
_ref
(
rsa
);
EVP_PKEY_assign_RSA
(
pkey
,
rsa
);
ret
=
ssl_set_pkey
(
ssl
->
cert
,
pkey
);
...
...
@@ -582,7 +582,7 @@ int SSL_CTX_use_RSAPrivateKey(SSL_CTX *ctx, RSA *rsa)
return
(
0
);
}
RSA_up
(
rsa
);
RSA_up
_ref
(
rsa
);
EVP_PKEY_assign_RSA
(
pkey
,
rsa
);
ret
=
ssl_set_pkey
(
ctx
->
cert
,
pkey
);
...
...
util/libeay.num
浏览文件 @
6ac4e8bd
...
...
@@ -2650,8 +2650,8 @@ EVP_dev_crypto_rc4 3098 EXIST::FUNCTION:DES
ENGINE_load_ciphers 3099 EXIST::FUNCTION:
ENGINE_get_cipher_by_name 3100 EXIST::FUNCTION:
ENGINE_cipher_num 3101 EXIST::FUNCTION:
DH_up
3102 EXIST::FUNCTION:DH
RSA_up
3103 EXIST::FUNCTION:RSA
DH_up
_ref
3102 EXIST::FUNCTION:DH
RSA_up
_ref
3103 EXIST::FUNCTION:RSA
EVP_DigestInit_dbg 3104 EXIST::FUNCTION:
CRYPTO_cleanup_all_ex_data 3105 EXIST::FUNCTION:
CRYPTO_set_ex_data_implementation 3106 EXIST::FUNCTION:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录