Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
btwise
openssl
提交
2333d658
O
openssl
项目概览
btwise
/
openssl
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
openssl
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
2333d658
编写于
5月 30, 2005
作者:
R
Richard Levitte
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Change all relevant occurences of 'ncipher' to 'chil'. That's what nCipher always wanted...
上级
ffd1df05
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
12 addition
and
12 deletion
+12
-12
engines/e_chil.c
engines/e_chil.c
+12
-12
未找到文件。
engines/e_chil.c
浏览文件 @
2333d658
/* crypto/engine/
hw_ncipher
.c -*- mode: C; c-file-style: "eay" -*- */
/* crypto/engine/
e_chil
.c -*- mode: C; c-file-style: "eay" -*- */
/* Written by Richard Levitte (richard@levitte.org), Geoff Thorpe
* (geoff@geoffthorpe.net) and Dr Stephen N Henson (shenson@bigfoot.com)
* for the OpenSSL project 2000.
...
...
@@ -70,7 +70,7 @@
#include <openssl/bn.h>
#ifndef OPENSSL_NO_HW
#ifndef OPENSSL_NO_HW_
NCIPHER
#ifndef OPENSSL_NO_HW_
CHIL
/* Attribution notice: nCipher have said several times that it's OK for
* us to implement a general interface to their boxes, and recently declared
...
...
@@ -86,7 +86,7 @@
#include "vendor_defns/hwcryptohook.h"
#endif
#define HWCRHK_LIB_NAME "
hwcrhk
engine"
#define HWCRHK_LIB_NAME "
CHIL
engine"
#include "e_chil_err.c"
static
int
hwcrhk_destroy
(
ENGINE
*
e
);
...
...
@@ -177,7 +177,7 @@ static const ENGINE_CMD_DEFN hwcrhk_cmd_defns[] = {
/* Our internal RSA_METHOD that we provide pointers to */
static
RSA_METHOD
hwcrhk_rsa
=
{
"
nCipher
RSA method"
,
"
CHIL
RSA method"
,
NULL
,
NULL
,
NULL
,
...
...
@@ -198,7 +198,7 @@ static RSA_METHOD hwcrhk_rsa =
/* Our internal DH_METHOD that we provide pointers to */
static
DH_METHOD
hwcrhk_dh
=
{
"
nCipher
DH method"
,
"
CHIL
DH method"
,
NULL
,
NULL
,
hwcrhk_mod_exp_dh
,
...
...
@@ -212,7 +212,7 @@ static DH_METHOD hwcrhk_dh =
static
RAND_METHOD
hwcrhk_rand
=
{
/* "
nCipher
RAND method", */
/* "
CHIL
RAND method", */
NULL
,
hwcrhk_rand_bytes
,
NULL
,
...
...
@@ -223,7 +223,7 @@ static RAND_METHOD hwcrhk_rand =
/* Constants used when creating the ENGINE */
static
const
char
*
engine_hwcrhk_id
=
"chil"
;
static
const
char
*
engine_hwcrhk_name
=
"
nCipher
hardware engine support"
;
static
const
char
*
engine_hwcrhk_name
=
"
CHIL
hardware engine support"
;
/* Compatibility hack, the dynamic library uses this form in the path */
static
const
char
*
engine_hwcrhk_id_alt
=
"ncipher"
;
...
...
@@ -325,7 +325,7 @@ static HWCryptoHook_InitInfo hwcrhk_globals = {
/* Now, to our own code */
/* This internal function is used by ENGINE_
ncipher
() and possibly by the
/* This internal function is used by ENGINE_
chil
() and possibly by the
* "dynamic" ENGINE support too */
static
int
bind_helper
(
ENGINE
*
e
)
{
...
...
@@ -381,7 +381,7 @@ static int bind_helper(ENGINE *e)
}
#ifdef OPENSSL_NO_DYNAMIC_ENGINE
static
ENGINE
*
engine_
ncipher
(
void
)
static
ENGINE
*
engine_
chil
(
void
)
{
ENGINE
*
ret
=
ENGINE_new
();
if
(
!
ret
)
...
...
@@ -397,7 +397,7 @@ static ENGINE *engine_ncipher(void)
void
ENGINE_load_chil
(
void
)
{
/* Copied from eng_[openssl|dyn].c */
ENGINE
*
toadd
=
engine_
ncipher
();
ENGINE
*
toadd
=
engine_
chil
();
if
(
!
toadd
)
return
;
ENGINE_add
(
toadd
);
ENGINE_free
(
toadd
);
...
...
@@ -493,7 +493,7 @@ static void release_context(HWCryptoHook_ContextHandle hac)
p_hwcrhk_Finish
(
hac
);
}
/* Destructor (complements the "ENGINE_
ncipher
()" constructor) */
/* Destructor (complements the "ENGINE_
chil
()" constructor) */
static
int
hwcrhk_destroy
(
ENGINE
*
e
)
{
free_HWCRHK_LIBNAME
();
...
...
@@ -1356,5 +1356,5 @@ IMPLEMENT_DYNAMIC_CHECK_FN()
IMPLEMENT_DYNAMIC_BIND_FN
(
bind_fn
)
#endif
/* OPENSSL_NO_DYNAMIC_ENGINE */
#endif
/* !OPENSSL_NO_HW_
NCIPHER
*/
#endif
/* !OPENSSL_NO_HW_
CHIL
*/
#endif
/* !OPENSSL_NO_HW */
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录