Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
38d6e4bb
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,发现更多精彩内容 >>
提交
38d6e4bb
编写于
12月 05, 2002
作者:
R
Richard Levitte
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
If an application supports static locks, it MUST support dynamic locks as
well to be able to use the CHIL engine. PR: 281
上级
ced621e3
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
20 addition
and
10 deletion
+20
-10
engines/e_ncipher.c
engines/e_ncipher.c
+16
-8
engines/e_ncipher_err.c
engines/e_ncipher_err.c
+3
-2
engines/e_ncipher_err.h
engines/e_ncipher_err.h
+1
-0
未找到文件。
engines/e_ncipher.c
浏览文件 @
38d6e4bb
...
@@ -559,8 +559,9 @@ static int hwcrhk_init(ENGINE *e)
...
@@ -559,8 +559,9 @@ static int hwcrhk_init(ENGINE *e)
/* Check if the application decided to support dynamic locks,
/* Check if the application decided to support dynamic locks,
and if it does, use them. */
and if it does, use them. */
if
(
disable_mutex_callbacks
==
0
&&
if
(
disable_mutex_callbacks
==
0
)
CRYPTO_get_dynlock_create_callback
()
!=
NULL
&&
{
if
(
CRYPTO_get_dynlock_create_callback
()
!=
NULL
&&
CRYPTO_get_dynlock_lock_callback
()
!=
NULL
&&
CRYPTO_get_dynlock_lock_callback
()
!=
NULL
&&
CRYPTO_get_dynlock_destroy_callback
()
!=
NULL
)
CRYPTO_get_dynlock_destroy_callback
()
!=
NULL
)
{
{
...
@@ -569,6 +570,13 @@ static int hwcrhk_init(ENGINE *e)
...
@@ -569,6 +570,13 @@ static int hwcrhk_init(ENGINE *e)
hwcrhk_globals
.
mutex_release
=
hwcrhk_mutex_unlock
;
hwcrhk_globals
.
mutex_release
=
hwcrhk_mutex_unlock
;
hwcrhk_globals
.
mutex_destroy
=
hwcrhk_mutex_destroy
;
hwcrhk_globals
.
mutex_destroy
=
hwcrhk_mutex_destroy
;
}
}
else
if
(
CRYPTO_get_locking_callback
()
!=
NULL
)
{
HWCRHKerr
(
HWCRHK_F_HWCRHK_INIT
,
HWCRHK_R_LOCKING_MISSING
);
ERR_add_error_data
(
1
,
"You HAVE to add dynamic locking callbacks via CRYPTO_set_dynlock_{create,lock,destroy}_callback()"
);
goto
err
;
}
}
/* Try and get a context - if not, we may have a DSO but no
/* Try and get a context - if not, we may have a DSO but no
* accelerator! */
* accelerator! */
...
...
engines/e_ncipher_err.c
浏览文件 @
38d6e4bb
/*
hw
_ncipher_err.c */
/*
e
_ncipher_err.c */
/* ====================================================================
/* ====================================================================
* Copyright (c) 1999 The OpenSSL Project. All rights reserved.
* Copyright (c) 1999
-2002
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
...
@@ -86,6 +86,7 @@ static ERR_STRING_DATA HWCRHK_str_reasons[]=
...
@@ -86,6 +86,7 @@ static ERR_STRING_DATA HWCRHK_str_reasons[]=
{
HWCRHK_R_CHIL_ERROR
,
"chil error"
},
{
HWCRHK_R_CHIL_ERROR
,
"chil error"
},
{
HWCRHK_R_CTRL_COMMAND_NOT_IMPLEMENTED
,
"ctrl command not implemented"
},
{
HWCRHK_R_CTRL_COMMAND_NOT_IMPLEMENTED
,
"ctrl command not implemented"
},
{
HWCRHK_R_DSO_FAILURE
,
"dso failure"
},
{
HWCRHK_R_DSO_FAILURE
,
"dso failure"
},
{
HWCRHK_R_LOCKING_MISSING
,
"locking missing"
},
{
HWCRHK_R_MISSING_KEY_COMPONENTS
,
"missing key components"
},
{
HWCRHK_R_MISSING_KEY_COMPONENTS
,
"missing key components"
},
{
HWCRHK_R_NOT_INITIALISED
,
"not initialised"
},
{
HWCRHK_R_NOT_INITIALISED
,
"not initialised"
},
{
HWCRHK_R_NOT_LOADED
,
"not loaded"
},
{
HWCRHK_R_NOT_LOADED
,
"not loaded"
},
...
...
engines/e_ncipher_err.h
浏览文件 @
38d6e4bb
...
@@ -84,6 +84,7 @@ static void ERR_HWCRHK_error(int function, int reason, char *file, int line);
...
@@ -84,6 +84,7 @@ static void ERR_HWCRHK_error(int function, int reason, char *file, int line);
#define HWCRHK_R_CHIL_ERROR 102
#define HWCRHK_R_CHIL_ERROR 102
#define HWCRHK_R_CTRL_COMMAND_NOT_IMPLEMENTED 103
#define HWCRHK_R_CTRL_COMMAND_NOT_IMPLEMENTED 103
#define HWCRHK_R_DSO_FAILURE 104
#define HWCRHK_R_DSO_FAILURE 104
#define HWCRHK_R_LOCKING_MISSING 114
#define HWCRHK_R_MISSING_KEY_COMPONENTS 105
#define HWCRHK_R_MISSING_KEY_COMPONENTS 105
#define HWCRHK_R_NOT_INITIALISED 106
#define HWCRHK_R_NOT_INITIALISED 106
#define HWCRHK_R_NOT_LOADED 107
#define HWCRHK_R_NOT_LOADED 107
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录