Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
e405b8d1
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看板
提交
e405b8d1
编写于
9月 27, 1999
作者:
B
Bodo Möller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
new control code BIO_C_RESET_READ_REQUEST
上级
6cc4ee03
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
16 addition
and
0 deletion
+16
-0
crypto/bio/bio.h
crypto/bio/bio.h
+2
-0
crypto/bio/bss_bio.c
crypto/bio/bss_bio.c
+14
-0
未找到文件。
crypto/bio/bio.h
浏览文件 @
e405b8d1
...
@@ -334,6 +334,7 @@ typedef struct bio_f_buffer_ctx_struct
...
@@ -334,6 +334,7 @@ typedef struct bio_f_buffer_ctx_struct
#define BIO_C_NREAD 144
#define BIO_C_NREAD 144
#define BIO_C_NWRITE0 145
#define BIO_C_NWRITE0 145
#define BIO_C_NWRITE 146
#define BIO_C_NWRITE 146
#define BIO_C_RESET_READ_REQUEST 147
#define BIO_set_app_data(s,arg) BIO_set_ex_data(s,0,(char *)arg)
#define BIO_set_app_data(s,arg) BIO_set_ex_data(s,0,(char *)arg)
...
@@ -470,6 +471,7 @@ size_t BIO_ctrl_wpending(BIO *b);
...
@@ -470,6 +471,7 @@ size_t BIO_ctrl_wpending(BIO *b);
#define BIO_get_read_request(b) (int)BIO_ctrl(b,BIO_C_GET_READ_REQUEST,0,NULL)
#define BIO_get_read_request(b) (int)BIO_ctrl(b,BIO_C_GET_READ_REQUEST,0,NULL)
size_t
BIO_ctrl_get_write_guarantee
(
BIO
*
b
);
size_t
BIO_ctrl_get_write_guarantee
(
BIO
*
b
);
size_t
BIO_ctrl_get_read_request
(
BIO
*
b
);
size_t
BIO_ctrl_get_read_request
(
BIO
*
b
);
int
BIO_ctrl_reset_read_request
(
BIO
*
b
);
#ifdef NO_STDIO
#ifdef NO_STDIO
#define NO_FP_API
#define NO_FP_API
...
...
crypto/bio/bss_bio.c
浏览文件 @
e405b8d1
...
@@ -493,6 +493,15 @@ static long bio_ctrl(BIO *bio, int cmd, long num, void *ptr)
...
@@ -493,6 +493,15 @@ static long bio_ctrl(BIO *bio, int cmd, long num, void *ptr)
ret
=
(
long
)
b
->
request
;
ret
=
(
long
)
b
->
request
;
break
;
break
;
case
BIO_C_RESET_READ_REQUEST
:
/* Reset request. (Can be useful after read attempts
* at the other side that are meant to be non-blocking,
* e.g. when probing SSL_read to see if any data is
* available.) */
b
->
request
=
0
;
ret
=
1
;
break
;
case
BIO_C_SHUTDOWN_WR
:
case
BIO_C_SHUTDOWN_WR
:
/* similar to shutdown(..., SHUT_WR) */
/* similar to shutdown(..., SHUT_WR) */
b
->
closed
=
1
;
b
->
closed
=
1
;
...
@@ -750,6 +759,11 @@ size_t BIO_ctrl_get_read_request(BIO *bio)
...
@@ -750,6 +759,11 @@ size_t BIO_ctrl_get_read_request(BIO *bio)
return
BIO_ctrl
(
bio
,
BIO_C_GET_READ_REQUEST
,
0
,
NULL
);
return
BIO_ctrl
(
bio
,
BIO_C_GET_READ_REQUEST
,
0
,
NULL
);
}
}
int
BIO_ctrl_reset_read_request
(
BIO
*
bio
)
{
return
(
BIO_ctrl
(
bio
,
BIO_C_RESET_READ_REQUEST
,
0
,
NULL
)
!=
0
);
}
/* BIO_nread0/nread/nwrite0/nwrite are availabe only for BIO pairs for now
/* BIO_nread0/nread/nwrite0/nwrite are availabe only for BIO pairs for now
* (conceivably some other BIOs could allow non-copying reads and writes too.)
* (conceivably some other BIOs could allow non-copying reads and writes too.)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录