Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
8bb826ee
T
Third Party Openssl
项目概览
OpenHarmony
/
Third Party Openssl
1 年多 前同步成功
通知
10
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看板
提交
8bb826ee
编写于
3月 31, 2005
作者:
B
Ben Laurie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Consistency.
上级
5d1430f3
变更
11
隐藏空白更改
内联
并排
Showing
11 changed file
with
33 addition
and
42 deletion
+33
-42
crypto/asn1/a_digest.c
crypto/asn1/a_digest.c
+2
-3
crypto/asn1/a_sign.c
crypto/asn1/a_sign.c
+3
-3
crypto/asn1/a_verify.c
crypto/asn1/a_verify.c
+1
-2
crypto/asn1/asn_pack.c
crypto/asn1/asn_pack.c
+2
-3
crypto/ocsp/ocsp.h
crypto/ocsp/ocsp.h
+1
-2
crypto/ocsp/ocsp_ext.c
crypto/ocsp/ocsp_ext.c
+1
-2
crypto/pem/pem.h
crypto/pem/pem.h
+6
-8
crypto/pem/pem_info.c
crypto/pem/pem_info.c
+8
-7
crypto/pem/pem_lib.c
crypto/pem/pem_lib.c
+4
-5
crypto/pem/pem_oth.c
crypto/pem/pem_oth.c
+1
-2
crypto/x509/x509.h
crypto/x509/x509.h
+4
-5
未找到文件。
crypto/asn1/a_digest.c
浏览文件 @
8bb826ee
...
...
@@ -72,9 +72,8 @@
#ifndef NO_ASN1_OLD
int
ASN1_digest
(
int
(
*
i2d
)(
void
*
,
unsigned
char
**
),
const
EVP_MD
*
type
,
char
*
data
,
unsigned
char
*
md
,
unsigned
int
*
len
)
int
ASN1_digest
(
i2d_of_void
*
i2d
,
const
EVP_MD
*
type
,
char
*
data
,
unsigned
char
*
md
,
unsigned
int
*
len
)
{
int
i
;
unsigned
char
*
str
,
*
p
;
...
...
crypto/asn1/a_sign.c
浏览文件 @
8bb826ee
...
...
@@ -126,9 +126,9 @@
#ifndef NO_ASN1_OLD
int
ASN1_sign
(
i
nt
(
*
i2d
)(
void
*
,
unsigned
char
**
),
X509_ALGOR
*
algor1
,
X509_ALGOR
*
algor2
,
ASN1_BIT_STRING
*
signature
,
char
*
data
,
EVP_PKEY
*
pkey
,
const
EVP_MD
*
type
)
int
ASN1_sign
(
i
2d_of_void
*
i2d
,
X509_ALGOR
*
algor1
,
X509_ALGOR
*
algor2
,
ASN1_BIT_STRING
*
signature
,
char
*
data
,
EVP_PKEY
*
pkey
,
const
EVP_MD
*
type
)
{
EVP_MD_CTX
ctx
;
unsigned
char
*
p
,
*
buf_in
=
NULL
,
*
buf_out
=
NULL
;
...
...
crypto/asn1/a_verify.c
浏览文件 @
8bb826ee
...
...
@@ -73,8 +73,7 @@
#ifndef NO_ASN1_OLD
int
ASN1_verify
(
int
(
*
i2d
)(
void
*
,
unsigned
char
**
),
X509_ALGOR
*
a
,
ASN1_BIT_STRING
*
signature
,
int
ASN1_verify
(
i2d_of_void
*
i2d
,
X509_ALGOR
*
a
,
ASN1_BIT_STRING
*
signature
,
char
*
data
,
EVP_PKEY
*
pkey
)
{
EVP_MD_CTX
ctx
;
...
...
crypto/asn1/asn_pack.c
浏览文件 @
8bb826ee
...
...
@@ -82,7 +82,7 @@ STACK *ASN1_seq_unpack(const unsigned char *buf, int len,
* OPENSSL_malloc'ed buffer
*/
unsigned
char
*
ASN1_seq_pack
(
STACK
*
safes
,
i
nt
(
*
i2d
)(
void
*
,
unsigned
char
**
)
,
unsigned
char
*
ASN1_seq_pack
(
STACK
*
safes
,
i
2d_of_void
*
i2d
,
unsigned
char
**
buf
,
int
*
len
)
{
int
safelen
;
...
...
@@ -119,8 +119,7 @@ void *ASN1_unpack_string (ASN1_STRING *oct, d2i_of_void *d2i)
/* Pack an ASN1 object into an ASN1_STRING */
ASN1_STRING
*
ASN1_pack_string
(
void
*
obj
,
int
(
*
i2d
)(
void
*
,
unsigned
char
**
),
ASN1_STRING
**
oct
)
ASN1_STRING
*
ASN1_pack_string
(
void
*
obj
,
i2d_of_void
*
i2d
,
ASN1_STRING
**
oct
)
{
unsigned
char
*
p
;
ASN1_STRING
*
octmp
;
...
...
crypto/ocsp/ocsp.h
浏览文件 @
8bb826ee
...
...
@@ -466,8 +466,7 @@ int OCSP_basic_sign(OCSP_BASICRESP *brsp,
X509
*
signer
,
EVP_PKEY
*
key
,
const
EVP_MD
*
dgst
,
STACK_OF
(
X509
)
*
certs
,
unsigned
long
flags
);
ASN1_STRING
*
ASN1_STRING_encode
(
ASN1_STRING
*
s
,
int
(
*
i2d
)(
void
*
,
unsigned
char
**
),
ASN1_STRING
*
ASN1_STRING_encode
(
ASN1_STRING
*
s
,
i2d_of_void
*
i2d
,
void
*
data
,
STACK_OF
(
ASN1_OBJECT
)
*
sk
);
#define ASN1_STRING_encode_of(type,s,i2d,data,sk) \
((ASN1_STRING *(*)(ASN1_STRING *,I2D_OF(type),type *,STACK_OF(ASN1_OBJECT) *))ASN1_STRING_encode)(s,i2d,data,sk)
...
...
crypto/ocsp/ocsp_ext.c
浏览文件 @
8bb826ee
...
...
@@ -265,8 +265,7 @@ int OCSP_SINGLERESP_add_ext(OCSP_SINGLERESP *x, X509_EXTENSION *ex, int loc)
/* also CRL Entry Extensions */
ASN1_STRING
*
ASN1_STRING_encode
(
ASN1_STRING
*
s
,
int
(
*
i2d
)(
void
*
,
unsigned
char
**
),
ASN1_STRING
*
ASN1_STRING_encode
(
ASN1_STRING
*
s
,
i2d_of_void
*
i2d
,
void
*
data
,
STACK_OF
(
ASN1_OBJECT
)
*
sk
)
{
int
i
;
...
...
crypto/pem/pem.h
浏览文件 @
8bb826ee
...
...
@@ -529,12 +529,11 @@ int PEM_write_bio(BIO *bp,const char *name,char *hdr,unsigned char *data,
long
len
);
int
PEM_bytes_read_bio
(
unsigned
char
**
pdata
,
long
*
plen
,
char
**
pnm
,
const
char
*
name
,
BIO
*
bp
,
pem_password_cb
*
cb
,
void
*
u
);
void
*
PEM_ASN1_read_bio
(
void
*
(
*
d2i
)(
void
**
,
const
unsigned
char
**
,
long
),
const
char
*
name
,
BIO
*
bp
,
void
**
x
,
pem_password_cb
*
cb
,
void
*
u
);
void
*
PEM_ASN1_read_bio
(
d2i_of_void
*
d2i
,
const
char
*
name
,
BIO
*
bp
,
void
**
x
,
pem_password_cb
*
cb
,
void
*
u
);
#define PEM_ASN1_read_bio_of(type,d2i,name,bp,x,cb,u) \
((type *(*)(D2I_OF(type),const char *,BIO *,type **,pem_password_cb *,void *))PEM_ASN1_read_bio)(d2i,name,bp,x,cb,u)
int
PEM_ASN1_write_bio
(
i
nt
(
*
i2d
)(
void
*
,
unsigned
char
**
)
,
const
char
*
name
,
BIO
*
bp
,
char
*
x
,
int
PEM_ASN1_write_bio
(
i
2d_of_void
*
i2d
,
const
char
*
name
,
BIO
*
bp
,
char
*
x
,
const
EVP_CIPHER
*
enc
,
unsigned
char
*
kstr
,
int
klen
,
pem_password_cb
*
cb
,
void
*
u
);
#define PEM_ASN1_write_bio_of(type,i2d,name,bp,x,enc,kstr,klen,cb,u) \
...
...
@@ -549,10 +548,9 @@ int PEM_X509_INFO_write_bio(BIO *bp,X509_INFO *xi, EVP_CIPHER *enc,
int
PEM_read
(
FILE
*
fp
,
char
**
name
,
char
**
header
,
unsigned
char
**
data
,
long
*
len
);
int
PEM_write
(
FILE
*
fp
,
char
*
name
,
char
*
hdr
,
unsigned
char
*
data
,
long
len
);
void
*
PEM_ASN1_read
(
void
*
(
*
d2i
)(
void
**
,
const
unsigned
char
**
,
long
),
const
char
*
name
,
FILE
*
fp
,
void
**
x
,
pem_password_cb
*
cb
,
void
*
u
);
int
PEM_ASN1_write
(
int
(
*
i2d
)(
void
*
,
unsigned
char
**
),
const
char
*
name
,
FILE
*
fp
,
void
*
PEM_ASN1_read
(
d2i_of_void
*
d2i
,
const
char
*
name
,
FILE
*
fp
,
void
**
x
,
pem_password_cb
*
cb
,
void
*
u
);
int
PEM_ASN1_write
(
i2d_of_void
*
i2d
,
const
char
*
name
,
FILE
*
fp
,
char
*
x
,
const
EVP_CIPHER
*
enc
,
unsigned
char
*
kstr
,
int
klen
,
pem_password_cb
*
callback
,
void
*
u
);
STACK_OF
(
X509_INFO
)
*
PEM_X509_INFO_read
(
FILE
*
fp
,
STACK_OF
(
X509_INFO
)
*
sk
,
...
...
crypto/pem/pem_info.c
浏览文件 @
8bb826ee
...
...
@@ -87,14 +87,15 @@ STACK_OF(X509_INFO) *PEM_X509_INFO_read(FILE *fp, STACK_OF(X509_INFO) *sk, pem_p
STACK_OF
(
X509_INFO
)
*
PEM_X509_INFO_read_bio
(
BIO
*
bp
,
STACK_OF
(
X509_INFO
)
*
sk
,
pem_password_cb
*
cb
,
void
*
u
)
{
X509_INFO
*
xi
=
NULL
;
char
*
name
=
NULL
,
*
header
=
NULL
,
**
pp
;
char
*
name
=
NULL
,
*
header
=
NULL
;
void
*
pp
;
unsigned
char
*
data
=
NULL
;
const
unsigned
char
*
p
;
long
len
,
error
=
0
;
int
ok
=
0
;
STACK_OF
(
X509_INFO
)
*
ret
=
NULL
;
unsigned
int
i
,
raw
;
char
*
(
*
d2i
)(
void
*
,
const
unsigned
char
**
,
long
)
;
d2i_of_void
*
d2i
;
if
(
sk
==
NULL
)
{
...
...
@@ -133,7 +134,7 @@ start:
if
((
xi
=
X509_INFO_new
())
==
NULL
)
goto
err
;
goto
start
;
}
pp
=
(
char
**
)
&
(
xi
->
x509
);
pp
=&
(
xi
->
x509
);
}
else
if
((
strcmp
(
name
,
PEM_STRING_X509_TRUSTED
)
==
0
))
{
...
...
@@ -144,7 +145,7 @@ start:
if
((
xi
=
X509_INFO_new
())
==
NULL
)
goto
err
;
goto
start
;
}
pp
=
(
char
**
)
&
(
xi
->
x509
);
pp
=&
(
xi
->
x509
);
}
else
if
(
strcmp
(
name
,
PEM_STRING_X509_CRL
)
==
0
)
{
...
...
@@ -155,7 +156,7 @@ start:
if
((
xi
=
X509_INFO_new
())
==
NULL
)
goto
err
;
goto
start
;
}
pp
=
(
char
**
)
&
(
xi
->
crl
);
pp
=&
(
xi
->
crl
);
}
else
#ifndef OPENSSL_NO_RSA
...
...
@@ -176,7 +177,7 @@ start:
if
((
xi
->
x_pkey
->
dec_pkey
=
EVP_PKEY_new
())
==
NULL
)
goto
err
;
xi
->
x_pkey
->
dec_pkey
->
type
=
EVP_PKEY_RSA
;
pp
=
(
char
**
)
&
(
xi
->
x_pkey
->
dec_pkey
->
pkey
.
rsa
);
pp
=&
(
xi
->
x_pkey
->
dec_pkey
->
pkey
.
rsa
);
if
((
int
)
strlen
(
header
)
>
10
)
/* assume encrypted */
raw
=
1
;
}
...
...
@@ -224,7 +225,7 @@ start:
if
((
xi
->
x_pkey
->
dec_pkey
=
EVP_PKEY_new
())
==
NULL
)
goto
err
;
xi
->
x_pkey
->
dec_pkey
->
type
=
EVP_PKEY_EC
;
pp
=
(
char
**
)
&
(
xi
->
x_pkey
->
dec_pkey
->
pkey
.
eckey
);
pp
=&
(
xi
->
x_pkey
->
dec_pkey
->
pkey
.
eckey
);
if
((
int
)
strlen
(
header
)
>
10
)
/* assume encrypted */
raw
=
1
;
}
...
...
crypto/pem/pem_lib.c
浏览文件 @
8bb826ee
...
...
@@ -158,9 +158,8 @@ void PEM_dek_info(char *buf, const char *type, int len, char *str)
}
#ifndef OPENSSL_NO_FP_API
void
*
PEM_ASN1_read
(
void
*
(
*
d2i
)(
void
**
,
const
unsigned
char
**
,
long
),
const
char
*
name
,
FILE
*
fp
,
void
**
x
,
pem_password_cb
*
cb
,
void
*
u
)
void
*
PEM_ASN1_read
(
d2i_of_void
*
d2i
,
const
char
*
name
,
FILE
*
fp
,
void
**
x
,
pem_password_cb
*
cb
,
void
*
u
)
{
BIO
*
b
;
void
*
ret
;
...
...
@@ -261,7 +260,7 @@ err:
}
#ifndef OPENSSL_NO_FP_API
int
PEM_ASN1_write
(
i
nt
(
*
i2d
)(
void
*
,
unsigned
char
**
)
,
const
char
*
name
,
FILE
*
fp
,
int
PEM_ASN1_write
(
i
2d_of_void
*
i2d
,
const
char
*
name
,
FILE
*
fp
,
char
*
x
,
const
EVP_CIPHER
*
enc
,
unsigned
char
*
kstr
,
int
klen
,
pem_password_cb
*
callback
,
void
*
u
)
{
...
...
@@ -280,7 +279,7 @@ int PEM_ASN1_write(int (*i2d)(void *,unsigned char **), const char *name, FILE *
}
#endif
int
PEM_ASN1_write_bio
(
i
nt
(
*
i2d
)(
void
*
,
unsigned
char
**
)
,
const
char
*
name
,
BIO
*
bp
,
int
PEM_ASN1_write_bio
(
i
2d_of_void
*
i2d
,
const
char
*
name
,
BIO
*
bp
,
char
*
x
,
const
EVP_CIPHER
*
enc
,
unsigned
char
*
kstr
,
int
klen
,
pem_password_cb
*
callback
,
void
*
u
)
{
...
...
crypto/pem/pem_oth.c
浏览文件 @
8bb826ee
...
...
@@ -67,8 +67,7 @@
/* Handle 'other' PEMs: not private keys */
void
*
PEM_ASN1_read_bio
(
void
*
(
*
d2i
)(
void
**
,
const
unsigned
char
**
,
long
),
const
char
*
name
,
BIO
*
bp
,
void
**
x
,
void
*
PEM_ASN1_read_bio
(
d2i_of_void
*
d2i
,
const
char
*
name
,
BIO
*
bp
,
void
**
x
,
pem_password_cb
*
cb
,
void
*
u
)
{
const
unsigned
char
*
p
=
NULL
;
...
...
crypto/x509/x509.h
浏览文件 @
8bb826ee
...
...
@@ -966,14 +966,13 @@ X509_INFO * X509_INFO_new(void);
void
X509_INFO_free
(
X509_INFO
*
a
);
char
*
X509_NAME_oneline
(
X509_NAME
*
a
,
char
*
buf
,
int
size
);
int
ASN1_verify
(
i
nt
(
*
i2d
)(
void
*
,
unsigned
char
**
)
,
X509_ALGOR
*
algor1
,
ASN1_BIT_STRING
*
signature
,
char
*
data
,
EVP_PKEY
*
pkey
);
int
ASN1_verify
(
i
2d_of_void
*
i2d
,
X509_ALGOR
*
algor1
,
ASN1_BIT_STRING
*
signature
,
char
*
data
,
EVP_PKEY
*
pkey
);
int
ASN1_digest
(
int
(
*
i2d
)(
void
*
,
unsigned
char
**
),
const
EVP_MD
*
type
,
char
*
data
,
int
ASN1_digest
(
i2d_of_void
*
i2d
,
const
EVP_MD
*
type
,
char
*
data
,
unsigned
char
*
md
,
unsigned
int
*
len
);
int
ASN1_sign
(
i
nt
(
*
i2d
)(
void
*
,
unsigned
char
**
)
,
X509_ALGOR
*
algor1
,
int
ASN1_sign
(
i
2d_of_void
*
i2d
,
X509_ALGOR
*
algor1
,
X509_ALGOR
*
algor2
,
ASN1_BIT_STRING
*
signature
,
char
*
data
,
EVP_PKEY
*
pkey
,
const
EVP_MD
*
type
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录