Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
569064f5
D
dragonwell8_jdk
项目概览
openanolis
/
dragonwell8_jdk
通知
4
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_jdk
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
569064f5
编写于
8月 08, 2015
作者:
I
igerasim
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8132551: Initialize local varibales before returning them in p11_convert.c
Reviewed-by: wetmore
上级
9c91c5d5
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
9 addition
and
1 deletion
+9
-1
src/share/native/sun/security/pkcs11/wrapper/p11_convert.c
src/share/native/sun/security/pkcs11/wrapper/p11_convert.c
+9
-1
未找到文件。
src/share/native/sun/security/pkcs11/wrapper/p11_convert.c
浏览文件 @
569064f5
/*
* Copyright (c) 2003, 201
3
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 201
5
, Oracle and/or its affiliates. All rights reserved.
*/
/* Copyright (c) 2002 Graz University of Technology. All rights reserved.
...
...
@@ -474,6 +474,7 @@ CK_SSL3_MASTER_KEY_DERIVE_PARAMS jSsl3MasterKeyDeriveParamToCKSsl3MasterKeyDeriv
jfieldID
fieldID
;
jclass
jSsl3RandomDataClass
;
jobject
jRandomInfo
,
jRIClientRandom
,
jRIServerRandom
,
jVersion
;
memset
(
&
ckParam
,
0
,
sizeof
(
CK_SSL3_MASTER_KEY_DERIVE_PARAMS
));
/* get RandomInfo */
jSsl3MasterKeyDeriveParamsClass
=
(
*
env
)
->
FindClass
(
env
,
CLASS_SSL3_MASTER_KEY_DERIVE_PARAMS
);
...
...
@@ -527,6 +528,7 @@ CK_TLS_PRF_PARAMS jTlsPrfParamsToCKTlsPrfParam(JNIEnv *env, jobject jParam)
CK_TLS_PRF_PARAMS
ckParam
;
jfieldID
fieldID
;
jobject
jSeed
,
jLabel
,
jOutput
;
memset
(
&
ckParam
,
0
,
sizeof
(
CK_TLS_PRF_PARAMS
));
// TBD: what if jParam == NULL?!
...
...
@@ -592,6 +594,7 @@ CK_SSL3_KEY_MAT_PARAMS jSsl3KeyMatParamToCKSsl3KeyMatParam(JNIEnv *env, jobject
jobject
jRandomInfo
,
jRIClientRandom
,
jRIServerRandom
;
jobject
jReturnedKeyMaterial
,
jRMIvClient
,
jRMIvServer
;
CK_ULONG
ckTemp
;
memset
(
&
ckParam
,
0
,
sizeof
(
CK_SSL3_KEY_MAT_PARAMS
));
/* get ulMacSizeInBits */
jSsl3KeyMatParamsClass
=
(
*
env
)
->
FindClass
(
env
,
CLASS_SSL3_KEY_MAT_PARAMS
);
...
...
@@ -1355,6 +1358,7 @@ CK_RSA_PKCS_OAEP_PARAMS jRsaPkcsOaepParamToCKRsaPkcsOaepParam(JNIEnv *env, jobje
jlong
jHashAlg
,
jMgf
,
jSource
;
jobject
jSourceData
;
CK_BYTE_PTR
ckpByte
;
memset
(
&
ckParam
,
0
,
sizeof
(
CK_RSA_PKCS_OAEP_PARAMS
));
/* get hashAlg */
jRsaPkcsOaepParamsClass
=
(
*
env
)
->
FindClass
(
env
,
CLASS_RSA_PKCS_OAEP_PARAMS
);
...
...
@@ -1404,6 +1408,7 @@ CK_PBE_PARAMS jPbeParamToCKPbeParam(JNIEnv *env, jobject jParam)
jlong
jIteration
;
jobject
jInitVector
,
jPassword
,
jSalt
;
CK_ULONG
ckTemp
;
memset
(
&
ckParam
,
0
,
sizeof
(
CK_PBE_PARAMS
));
/* get pInitVector */
jPbeParamsClass
=
(
*
env
)
->
FindClass
(
env
,
CLASS_PBE_PARAMS
);
...
...
@@ -1522,6 +1527,7 @@ CK_PKCS5_PBKD2_PARAMS jPkcs5Pbkd2ParamToCKPkcs5Pbkd2Param(JNIEnv *env, jobject j
jfieldID
fieldID
;
jlong
jSaltSource
,
jIteration
,
jPrf
;
jobject
jSaltSourceData
,
jPrfData
;
memset
(
&
ckParam
,
0
,
sizeof
(
CK_PKCS5_PBKD2_PARAMS
));
/* get saltSource */
jPkcs5Pbkd2ParamsClass
=
(
*
env
)
->
FindClass
(
env
,
CLASS_PKCS5_PBKD2_PARAMS
);
...
...
@@ -1734,6 +1740,7 @@ CK_X9_42_DH1_DERIVE_PARAMS jX942Dh1DeriveParamToCKX942Dh1DeriveParam(JNIEnv *env
jfieldID
fieldID
;
jlong
jKdf
;
jobject
jOtherInfo
,
jPublicData
;
memset
(
&
ckParam
,
0
,
sizeof
(
CK_X9_42_DH1_DERIVE_PARAMS
));
/* get kdf */
jX942Dh1DeriveParamsClass
=
(
*
env
)
->
FindClass
(
env
,
CLASS_X9_42_DH1_DERIVE_PARAMS
);
...
...
@@ -1779,6 +1786,7 @@ CK_X9_42_DH2_DERIVE_PARAMS jX942Dh2DeriveParamToCKX942Dh2DeriveParam(JNIEnv *env
jfieldID
fieldID
;
jlong
jKdf
,
jPrivateDataLen
,
jPrivateData
;
jobject
jOtherInfo
,
jPublicData
,
jPublicData2
;
memset
(
&
ckParam
,
0
,
sizeof
(
CK_X9_42_DH2_DERIVE_PARAMS
));
/* get kdf */
jX942Dh2DeriveParamsClass
=
(
*
env
)
->
FindClass
(
env
,
CLASS_X9_42_DH2_DERIVE_PARAMS
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录