Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
d0a20caf
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,发现更多精彩内容 >>
提交
d0a20caf
编写于
11月 02, 2008
作者:
B
Ben Laurie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix warnings.
上级
8da07655
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
14 addition
and
10 deletion
+14
-10
crypto/camellia/cmll_locl.h
crypto/camellia/cmll_locl.h
+1
-1
crypto/pkcs12/p12_decr.c
crypto/pkcs12/p12_decr.c
+11
-8
crypto/pkcs12/pkcs12.h
crypto/pkcs12/pkcs12.h
+2
-1
未找到文件。
crypto/camellia/cmll_locl.h
浏览文件 @
d0a20caf
...
...
@@ -79,7 +79,7 @@ typedef unsigned char u8;
# endif
# define GETU32(p) SWAP(*((u32 *)(p)))
# define PUTU32(p,v) (*((u32 *)(p)) = SWAP((v)))
#elif defined(__GNUC__) && __GNUC__>=2 && (defined(__i386) || defined(__x86_64))
#elif defined(__GNUC__) && __GNUC__>=2 && (defined(__i386) || defined(__x86_64))
&& !defined(PEDANTIC)
# if defined(B_ENDIAN)
/* stratus.com does it */
# define GETU32(p) (*(u32 *)(p))
# define PUTU32(p,v) (*(u32 *)(p)=(v))
...
...
crypto/pkcs12/p12_decr.c
浏览文件 @
d0a20caf
...
...
@@ -69,8 +69,9 @@
*/
unsigned
char
*
PKCS12_pbe_crypt
(
X509_ALGOR
*
algor
,
const
char
*
pass
,
int
passlen
,
unsigned
char
*
in
,
int
inlen
,
unsigned
char
**
data
,
int
*
datalen
,
int
en_de
)
int
passlen
,
unsigned
char
*
in
,
int
inlen
,
unsigned
char
**
data
,
size_t
*
datalen
,
int
en_de
)
{
unsigned
char
*
out
;
int
outlen
,
i
;
...
...
@@ -111,12 +112,13 @@ unsigned char * PKCS12_pbe_crypt(X509_ALGOR *algor, const char *pass,
*/
void
*
PKCS12_item_decrypt_d2i
(
X509_ALGOR
*
algor
,
const
ASN1_ITEM
*
it
,
const
char
*
pass
,
int
passlen
,
ASN1_OCTET_STRING
*
oct
,
int
zbuf
)
const
char
*
pass
,
int
passlen
,
ASN1_OCTET_STRING
*
oct
,
int
zbuf
)
{
unsigned
char
*
out
;
const
unsigned
char
*
p
;
void
*
ret
;
in
t
outlen
;
size_
t
outlen
;
if
(
!
PKCS12_pbe_crypt
(
algor
,
pass
,
passlen
,
oct
->
data
,
oct
->
length
,
&
out
,
&
outlen
,
0
))
{
...
...
@@ -147,7 +149,8 @@ void * PKCS12_item_decrypt_d2i(X509_ALGOR *algor, const ASN1_ITEM *it,
* if zbuf set zero encoding.
*/
ASN1_OCTET_STRING
*
PKCS12_item_i2d_encrypt
(
X509_ALGOR
*
algor
,
const
ASN1_ITEM
*
it
,
ASN1_OCTET_STRING
*
PKCS12_item_i2d_encrypt
(
X509_ALGOR
*
algor
,
const
ASN1_ITEM
*
it
,
const
char
*
pass
,
int
passlen
,
void
*
obj
,
int
zbuf
)
{
...
...
crypto/pkcs12/pkcs12.h
浏览文件 @
d0a20caf
...
...
@@ -208,7 +208,8 @@ ASN1_TYPE *PKCS12_get_attr_gen(STACK_OF(X509_ATTRIBUTE) *attrs, int attr_nid);
char
*
PKCS12_get_friendlyname
(
PKCS12_SAFEBAG
*
bag
);
unsigned
char
*
PKCS12_pbe_crypt
(
X509_ALGOR
*
algor
,
const
char
*
pass
,
int
passlen
,
unsigned
char
*
in
,
int
inlen
,
unsigned
char
**
data
,
int
*
datalen
,
int
en_de
);
unsigned
char
**
data
,
size_t
*
datalen
,
int
en_de
);
void
*
PKCS12_item_decrypt_d2i
(
X509_ALGOR
*
algor
,
const
ASN1_ITEM
*
it
,
const
char
*
pass
,
int
passlen
,
ASN1_OCTET_STRING
*
oct
,
int
zbuf
);
ASN1_OCTET_STRING
*
PKCS12_item_i2d_encrypt
(
X509_ALGOR
*
algor
,
const
ASN1_ITEM
*
it
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录