Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
eb164d0b
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,发现更多精彩内容 >>
提交
eb164d0b
编写于
1月 30, 2011
作者:
D
Dr. Stephen Henson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
stop warnings about no previous prototype when compiling shared engines
上级
225c2721
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
17 addition
and
0 deletion
+17
-0
crypto/engine/engine.h
crypto/engine/engine.h
+3
-0
engines/e_capi.c
engines/e_capi.c
+2
-0
engines/e_gmp.c
engines/e_gmp.c
+2
-0
engines/e_padlock.c
engines/e_padlock.c
+10
-0
未找到文件。
crypto/engine/engine.h
浏览文件 @
eb164d0b
...
...
@@ -678,6 +678,7 @@ typedef struct st_dynamic_fns {
* can be fully instantiated with IMPLEMENT_DYNAMIC_CHECK_FN(). */
typedef
unsigned
long
(
*
dynamic_v_check_fn
)(
unsigned
long
ossl_version
);
#define IMPLEMENT_DYNAMIC_CHECK_FN() \
OPENSSL_EXPORT unsigned long v_check(unsigned long v); \
OPENSSL_EXPORT unsigned long v_check(unsigned long v) { \
if(v >= OSSL_DYNAMIC_OLDEST) return OSSL_DYNAMIC_VERSION; \
return 0; }
...
...
@@ -700,6 +701,8 @@ typedef unsigned long (*dynamic_v_check_fn)(unsigned long ossl_version);
typedef
int
(
*
dynamic_bind_engine
)(
ENGINE
*
e
,
const
char
*
id
,
const
dynamic_fns
*
fns
);
#define IMPLEMENT_DYNAMIC_BIND_FN(fn) \
OPENSSL_EXPORT \
int bind_engine(ENGINE *e, const char *id, const dynamic_fns *fns); \
OPENSSL_EXPORT \
int bind_engine(ENGINE *e, const char *id, const dynamic_fns *fns) { \
if(ENGINE_get_static_state() == fns->static_state) goto skip_cbs; \
...
...
engines/e_capi.c
浏览文件 @
eb164d0b
...
...
@@ -1886,6 +1886,8 @@ static int cert_select_dialog(ENGINE *e, SSL *ssl, STACK_OF(X509) *certs)
#include <openssl/engine.h>
#ifndef OPENSSL_NO_DYNAMIC_ENGINE
OPENSSL_EXPORT
int
bind_engine
(
ENGINE
*
e
,
const
char
*
id
,
const
dynamic_fns
*
fns
);
OPENSSL_EXPORT
int
bind_engine
(
ENGINE
*
e
,
const
char
*
id
,
const
dynamic_fns
*
fns
)
{
return
0
;
}
IMPLEMENT_DYNAMIC_CHECK_FN
()
#else
...
...
engines/e_gmp.c
浏览文件 @
eb164d0b
...
...
@@ -471,6 +471,8 @@ static int bind_fn(ENGINE *e, const char *id)
IMPLEMENT_DYNAMIC_BIND_FN
(
bind_fn
)
#else
OPENSSL_EXPORT
int
bind_engine
(
ENGINE
*
e
,
const
char
*
id
,
const
dynamic_fns
*
fns
);
OPENSSL_EXPORT
int
bind_engine
(
ENGINE
*
e
,
const
char
*
id
,
const
dynamic_fns
*
fns
)
{
return
0
;
}
#endif
#endif
/* !OPENSSL_NO_DYNAMIC_ENGINE */
...
...
engines/e_padlock.c
浏览文件 @
eb164d0b
...
...
@@ -107,10 +107,14 @@
) || \
(defined(_MSC_VER) && defined(_M_IX86))
# define COMPILE_HW_PADLOCK
# ifdef OPENSSL_NO_DYNAMIC_ENGINE
static
ENGINE
*
ENGINE_padlock
(
void
);
# endif
# endif
#endif
#ifdef OPENSSL_NO_DYNAMIC_ENGINE
void
ENGINE_load_padlock
(
void
)
{
/* On non-x86 CPUs it just returns. */
...
...
@@ -123,6 +127,8 @@ void ENGINE_load_padlock (void)
#endif
}
#endif
#ifdef COMPILE_HW_PADLOCK
/* We do these includes here to avoid header problems on platforms that
do not have the VIA padlock anyway... */
...
...
@@ -196,6 +202,7 @@ padlock_bind_helper(ENGINE *e)
return
1
;
}
#ifdef OPENSSL_NO_DYNAMIC_ENGINE
/* Constructor */
static
ENGINE
*
ENGINE_padlock
(
void
)
...
...
@@ -213,6 +220,7 @@ ENGINE_padlock(void)
return
eng
;
}
#endif
/* Check availability of the engine */
static
int
...
...
@@ -1322,6 +1330,8 @@ static RAND_METHOD padlock_rand = {
#else
/* !COMPILE_HW_PADLOCK */
#ifndef OPENSSL_NO_DYNAMIC_ENGINE
OPENSSL_EXPORT
int
bind_engine
(
ENGINE
*
e
,
const
char
*
id
,
const
dynamic_fns
*
fns
);
OPENSSL_EXPORT
int
bind_engine
(
ENGINE
*
e
,
const
char
*
id
,
const
dynamic_fns
*
fns
)
{
return
0
;
}
IMPLEMENT_DYNAMIC_CHECK_FN
()
#endif
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录