Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
e30dd20c
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看板
提交
e30dd20c
编写于
6月 25, 2009
作者:
D
Dr. Stephen Henson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update from 1.0.0-stable
上级
2693812d
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
32 addition
and
11 deletion
+32
-11
CHANGES
CHANGES
+10
-0
crypto/bio/bio_lib.c
crypto/bio/bio_lib.c
+2
-2
doc/crypto/BIO_f_ssl.pod
doc/crypto/BIO_f_ssl.pod
+9
-0
ssl/bio_ssl.c
ssl/bio_ssl.c
+11
-9
未找到文件。
CHANGES
浏览文件 @
e30dd20c
...
...
@@ -4,6 +4,16 @@
Changes between 0.9.8k and 1.0 [xx XXX xxxx]
*) In BIO_pop() and BIO_push() use the ctrl argument (which was NULL) to
indicate the initial BIO being pushed or popped. This makes it possible
to determine whether the BIO is the one explicitly called or as a result
of the ctrl being passed down the chain. Fix BIO_pop() and SSL BIOs so
it handles reference counts correctly and doesn't zero out the I/O bio
when it is not being explicitly popped. WARNING: applications which
included workarounds for the old buggy behaviour will need to be modified
or they could free up already freed BIOs.
[Steve Henson]
*) Rename uni2asc and asc2uni functions to OPENSSL_uni2asc and
OPENSSL_asc2uni the original names were too generic and cause name
clashes on Netware.
...
...
crypto/bio/bio_lib.c
浏览文件 @
e30dd20c
...
...
@@ -429,7 +429,7 @@ BIO *BIO_push(BIO *b, BIO *bio)
if
(
bio
!=
NULL
)
bio
->
prev_bio
=
lb
;
/* called to do internal processing */
BIO_ctrl
(
b
,
BIO_CTRL_PUSH
,
0
,
NULL
);
BIO_ctrl
(
b
,
BIO_CTRL_PUSH
,
0
,
lb
);
return
(
b
);
}
...
...
@@ -441,7 +441,7 @@ BIO *BIO_pop(BIO *b)
if
(
b
==
NULL
)
return
(
NULL
);
ret
=
b
->
next_bio
;
BIO_ctrl
(
b
,
BIO_CTRL_POP
,
0
,
NULL
);
BIO_ctrl
(
b
,
BIO_CTRL_POP
,
0
,
b
);
if
(
b
->
prev_bio
!=
NULL
)
b
->
prev_bio
->
next_bio
=
b
->
next_bio
;
...
...
doc/crypto/BIO_f_ssl.pod
浏览文件 @
e30dd20c
...
...
@@ -308,6 +308,15 @@ a client and also echoes the request to standard output.
BIO_free_all(sbio);
=head1 BUGS
In OpenSSL versions before 1.0.0 the BIO_pop() call was handled incorrectly,
the I/O BIO reference count was incorrectly incremented (instead of
decremented) and dissociated with the SSL BIO even if the SSL BIO was not
explicitly being popped (e.g. a pop higher up the chain). Applications which
included workarounds for this bug (e.g. freeing BIOs more than once) should
be modified to handle this fix or they may free up an already freed BIO.
=head1 SEE ALSO
TBA
ssl/bio_ssl.c
浏览文件 @
e30dd20c
...
...
@@ -398,17 +398,19 @@ static long ssl_ctrl(BIO *b, int cmd, long num, void *ptr)
}
break
;
case
BIO_CTRL_POP
:
/*
ugly bit of a hack
*/
if
(
ssl
->
rbio
!=
ssl
->
wbio
)
/* we are in trouble :-( */
/*
Only detach if we are the BIO explicitly being popped
*/
if
(
b
==
ptr
)
{
BIO_free_all
(
ssl
->
wbio
);
}
if
(
b
->
next_bio
!=
NULL
)
{
CRYPTO_add
(
&
b
->
next_bio
->
references
,
1
,
CRYPTO_LOCK_BIO
);
/* Shouldn't happen in practice because the
* rbio and wbio are the same when pushed.
*/
if
(
ssl
->
rbio
!=
ssl
->
wbio
)
BIO_free_all
(
ssl
->
wbio
);
if
(
b
->
next_bio
!=
NULL
)
CRYPTO_add
(
&
b
->
next_bio
->
references
,
-
1
,
CRYPTO_LOCK_BIO
);
ssl
->
wbio
=
NULL
;
ssl
->
rbio
=
NULL
;
}
ssl
->
wbio
=
NULL
;
ssl
->
rbio
=
NULL
;
break
;
case
BIO_C_DO_STATE_MACHINE
:
BIO_clear_retry_flags
(
b
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录