Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
1892c8bf
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看板
提交
1892c8bf
编写于
6月 02, 2006
作者:
D
Dr. Stephen Henson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Extend default method string to include public key methods.
Add missing prototypes. Fix engine method lookup.
上级
5e428e7d
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
15 addition
and
2 deletion
+15
-2
crypto/engine/eng_fat.c
crypto/engine/eng_fat.c
+4
-0
crypto/engine/engine.h
crypto/engine/engine.h
+2
-0
crypto/evp/pmeth_lib.c
crypto/evp/pmeth_lib.c
+9
-2
未找到文件。
crypto/engine/eng_fat.c
浏览文件 @
1892c8bf
...
...
@@ -89,6 +89,8 @@ int ENGINE_set_default(ENGINE *e, unsigned int flags)
#endif
if
((
flags
&
ENGINE_METHOD_RAND
)
&&
!
ENGINE_set_default_RAND
(
e
))
return
0
;
if
((
flags
&
ENGINE_METHOD_PKEY_METHS
)
&&
!
ENGINE_set_default_pkey_meths
(
e
))
return
0
;
return
1
;
}
...
...
@@ -115,6 +117,8 @@ static int int_def_cb(const char *alg, int len, void *arg)
*
pflags
|=
ENGINE_METHOD_CIPHERS
;
else
if
(
!
strncmp
(
alg
,
"DIGESTS"
,
len
))
*
pflags
|=
ENGINE_METHOD_DIGESTS
;
else
if
(
!
strncmp
(
alg
,
"PKEY"
,
len
))
*
pflags
|=
ENGINE_METHOD_PKEY_METHS
;
else
return
0
;
return
1
;
...
...
crypto/engine/engine.h
浏览文件 @
1892c8bf
...
...
@@ -111,6 +111,7 @@ extern "C" {
#define ENGINE_METHOD_CIPHERS (unsigned int)0x0040
#define ENGINE_METHOD_DIGESTS (unsigned int)0x0080
#define ENGINE_METHOD_STORE (unsigned int)0x0100
#define ENGINE_METHOD_PKEY_METHS (unsigned int)0x0200
/* Obvious all-or-nothing cases. */
#define ENGINE_METHOD_ALL (unsigned int)0xFFFF
#define ENGINE_METHOD_NONE (unsigned int)0x0000
...
...
@@ -568,6 +569,7 @@ int ENGINE_set_default_DH(ENGINE *e);
int
ENGINE_set_default_RAND
(
ENGINE
*
e
);
int
ENGINE_set_default_ciphers
(
ENGINE
*
e
);
int
ENGINE_set_default_digests
(
ENGINE
*
e
);
int
ENGINE_set_default_pkey_meths
(
ENGINE
*
e
);
/* The combination "set" - the flags are bitwise "OR"d from the
* ENGINE_METHOD_*** defines above. As with the "ENGINE_register_complete()"
...
...
crypto/evp/pmeth_lib.c
浏览文件 @
1892c8bf
...
...
@@ -126,9 +126,9 @@ static EVP_PKEY_CTX *int_ctx_new(EVP_PKEY *pkey, ENGINE *e, int id)
EVPerr
(
EVP_F_INT_CTX_NEW
,
ERR_R_ENGINE_LIB
);
return
NULL
;
}
else
e
=
ENGINE_get_pkey_meth_engine
(
id
);
}
else
e
=
ENGINE_get_pkey_meth_engine
(
id
);
/* If an ENGINE handled this method look it up. Othewise
* use internal tables.
...
...
@@ -143,6 +143,13 @@ static EVP_PKEY_CTX *int_ctx_new(EVP_PKEY *pkey, ENGINE *e, int id)
return
NULL
;
ret
=
OPENSSL_malloc
(
sizeof
(
EVP_PKEY_CTX
));
if
(
!
ret
)
{
if
(
e
)
ENGINE_finish
(
e
);
EVPerr
(
EVP_F_INT_CTX_NEW
,
ERR_R_MALLOC_FAILURE
);
return
NULL
;
}
ret
->
engine
=
e
;
ret
->
pmeth
=
pmeth
;
ret
->
operation
=
EVP_PKEY_OP_UNDEFINED
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录