Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
4b06d778
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看板
提交
4b06d778
编写于
7月 15, 2009
作者:
D
Dr. Stephen Henson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update from 1.0.0-stable.
上级
6bb7dc1e
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
32 addition
and
28 deletion
+32
-28
ssl/d1_both.c
ssl/d1_both.c
+13
-13
ssl/d1_clnt.c
ssl/d1_clnt.c
+1
-1
ssl/s3_both.c
ssl/s3_both.c
+13
-13
ssl/ssl.h
ssl/ssl.h
+2
-0
ssl/ssl_err.c
ssl/ssl_err.c
+3
-1
未找到文件。
ssl/d1_both.c
浏览文件 @
4b06d778
...
...
@@ -815,21 +815,21 @@ int dtls1_send_change_cipher_spec(SSL *s, int a, int b)
static
int
dtls1_add_cert_to_buf
(
BUF_MEM
*
buf
,
unsigned
long
*
l
,
X509
*
x
)
{
int
n
;
unsigned
char
*
p
;
int
n
;
unsigned
char
*
p
;
n
=
i2d_X509
(
x
,
NULL
);
if
(
!
BUF_MEM_grow_clean
(
buf
,(
int
)(
n
+
(
*
l
)
+
3
)))
{
SSLerr
(
SSL_F_DTLS1_OUTPUT_CERT_CHAIN
,
ERR_R_BUF_LIB
);
return
0
;
}
p
=
(
unsigned
char
*
)
&
(
buf
->
data
[
*
l
]);
l2n3
(
n
,
p
);
i2d_X509
(
x
,
&
p
);
*
l
+=
n
+
3
;
n
=
i2d_X509
(
x
,
NULL
);
if
(
!
BUF_MEM_grow_clean
(
buf
,(
int
)(
n
+
(
*
l
)
+
3
)))
{
SSLerr
(
SSL_F_DTLS1_ADD_CERT_TO_BUF
,
ERR_R_BUF_LIB
);
return
0
;
}
p
=
(
unsigned
char
*
)
&
(
buf
->
data
[
*
l
]);
l2n3
(
n
,
p
);
i2d_X509
(
x
,
&
p
);
*
l
+=
n
+
3
;
return
1
;
return
1
;
}
unsigned
long
dtls1_output_cert_chain
(
SSL
*
s
,
X509
*
x
)
{
...
...
ssl/d1_clnt.c
浏览文件 @
4b06d778
...
...
@@ -1353,7 +1353,7 @@ int dtls1_send_client_verify(SSL *s)
SHA_DIGEST_LENGTH
,
&
(
p
[
2
]),
(
unsigned
int
*
)
&
j
,
pkey
->
pkey
.
ec
))
{
SSLerr
(
SSL_F_
SSL3
_SEND_CLIENT_VERIFY
,
SSLerr
(
SSL_F_
DTLS1
_SEND_CLIENT_VERIFY
,
ERR_R_ECDSA_LIB
);
goto
err
;
}
...
...
ssl/s3_both.c
浏览文件 @
4b06d778
...
...
@@ -264,21 +264,21 @@ int ssl3_send_change_cipher_spec(SSL *s, int a, int b)
static
int
ssl3_add_cert_to_buf
(
BUF_MEM
*
buf
,
unsigned
long
*
l
,
X509
*
x
)
{
int
n
;
unsigned
char
*
p
;
int
n
;
unsigned
char
*
p
;
n
=
i2d_X509
(
x
,
NULL
);
if
(
!
BUF_MEM_grow_clean
(
buf
,(
int
)(
n
+
(
*
l
)
+
3
)))
{
SSLerr
(
SSL_F_SSL3_OUTPUT_CERT_CHAIN
,
ERR_R_BUF_LIB
);
return
(
-
1
);
}
p
=
(
unsigned
char
*
)
&
(
buf
->
data
[
*
l
]);
l2n3
(
n
,
p
);
i2d_X509
(
x
,
&
p
);
*
l
+=
n
+
3
;
n
=
i2d_X509
(
x
,
NULL
);
if
(
!
BUF_MEM_grow_clean
(
buf
,(
int
)(
n
+
(
*
l
)
+
3
)))
{
SSLerr
(
SSL_F_SSL3_ADD_CERT_TO_BUF
,
ERR_R_BUF_LIB
);
return
(
-
1
);
}
p
=
(
unsigned
char
*
)
&
(
buf
->
data
[
*
l
]);
l2n3
(
n
,
p
);
i2d_X509
(
x
,
&
p
);
*
l
+=
n
+
3
;
return
(
0
);
return
(
0
);
}
unsigned
long
ssl3_output_cert_chain
(
SSL
*
s
,
X509
*
x
)
...
...
ssl/ssl.h
浏览文件 @
4b06d778
...
...
@@ -1794,6 +1794,7 @@ void ERR_load_SSL_strings(void);
#define SSL_F_DO_DTLS1_WRITE 245
#define SSL_F_DO_SSL3_WRITE 104
#define SSL_F_DTLS1_ACCEPT 246
#define SSL_F_DTLS1_ADD_CERT_TO_BUF 295
#define SSL_F_DTLS1_BUFFER_RECORD 247
#define SSL_F_DTLS1_CLIENT_HELLO 248
#define SSL_F_DTLS1_CONNECT 249
...
...
@@ -1847,6 +1848,7 @@ void ERR_load_SSL_strings(void);
#define SSL_F_SSL2_SET_CERTIFICATE 126
#define SSL_F_SSL2_WRITE 127
#define SSL_F_SSL3_ACCEPT 128
#define SSL_F_SSL3_ADD_CERT_TO_BUF 296
#define SSL_F_SSL3_CALLBACK_CTRL 233
#define SSL_F_SSL3_CHANGE_CIPHER_STATE 129
#define SSL_F_SSL3_CHECK_CERT_AND_ALGORITHM 130
...
...
ssl/ssl_err.c
浏览文件 @
4b06d778
/* ssl/ssl_err.c */
/* ====================================================================
* Copyright (c) 1999-200
8
The OpenSSL Project. All rights reserved.
* Copyright (c) 1999-200
9
The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
...
...
@@ -78,6 +78,7 @@ static ERR_STRING_DATA SSL_str_functs[]=
{
ERR_FUNC
(
SSL_F_DO_DTLS1_WRITE
),
"DO_DTLS1_WRITE"
},
{
ERR_FUNC
(
SSL_F_DO_SSL3_WRITE
),
"DO_SSL3_WRITE"
},
{
ERR_FUNC
(
SSL_F_DTLS1_ACCEPT
),
"DTLS1_ACCEPT"
},
{
ERR_FUNC
(
SSL_F_DTLS1_ADD_CERT_TO_BUF
),
"DTLS1_ADD_CERT_TO_BUF"
},
{
ERR_FUNC
(
SSL_F_DTLS1_BUFFER_RECORD
),
"DTLS1_BUFFER_RECORD"
},
{
ERR_FUNC
(
SSL_F_DTLS1_CLIENT_HELLO
),
"DTLS1_CLIENT_HELLO"
},
{
ERR_FUNC
(
SSL_F_DTLS1_CONNECT
),
"DTLS1_CONNECT"
},
...
...
@@ -131,6 +132,7 @@ static ERR_STRING_DATA SSL_str_functs[]=
{
ERR_FUNC
(
SSL_F_SSL2_SET_CERTIFICATE
),
"SSL2_SET_CERTIFICATE"
},
{
ERR_FUNC
(
SSL_F_SSL2_WRITE
),
"SSL2_WRITE"
},
{
ERR_FUNC
(
SSL_F_SSL3_ACCEPT
),
"SSL3_ACCEPT"
},
{
ERR_FUNC
(
SSL_F_SSL3_ADD_CERT_TO_BUF
),
"SSL3_ADD_CERT_TO_BUF"
},
{
ERR_FUNC
(
SSL_F_SSL3_CALLBACK_CTRL
),
"SSL3_CALLBACK_CTRL"
},
{
ERR_FUNC
(
SSL_F_SSL3_CHANGE_CIPHER_STATE
),
"SSL3_CHANGE_CIPHER_STATE"
},
{
ERR_FUNC
(
SSL_F_SSL3_CHECK_CERT_AND_ALGORITHM
),
"SSL3_CHECK_CERT_AND_ALGORITHM"
},
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录