Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
af5473c4
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看板
提交
af5473c4
编写于
1月 12, 2001
作者:
B
Bodo Möller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
isspace must be used only on *unsigned* chars
上级
f2c46006
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
6 addition
and
6 deletion
+6
-6
crypto/ocsp/ocsp_ht.c
crypto/ocsp/ocsp_ht.c
+6
-6
未找到文件。
crypto/ocsp/ocsp_ht.c
浏览文件 @
af5473c4
...
@@ -111,19 +111,19 @@ Content-Length: %d\r\n\r\n";
...
@@ -111,19 +111,19 @@ Content-Length: %d\r\n\r\n";
*/
*/
/* Skip to first white space (passed protocol info) */
/* Skip to first white space (passed protocol info) */
for
(
p
=
tmpbuf
;
*
p
&&
!
isspace
(
*
p
);
p
++
)
continue
;
for
(
p
=
tmpbuf
;
*
p
&&
!
isspace
(
(
unsigned
char
)
*
p
);
p
++
)
continue
;
if
(
!*
p
)
{
if
(
!*
p
)
{
OCSPerr
(
OCSP_F_OCSP_SENDREQ_BIO
,
OCSP_R_SERVER_RESPONSE_PARSE_ERROR
);
OCSPerr
(
OCSP_F_OCSP_SENDREQ_BIO
,
OCSP_R_SERVER_RESPONSE_PARSE_ERROR
);
goto
err
;
goto
err
;
}
}
/* Skip past white space to start of response code */
/* Skip past white space to start of response code */
while
(
*
p
&&
isspace
(
*
p
))
p
++
;
while
(
*
p
&&
isspace
(
(
unsigned
char
)
*
p
))
p
++
;
if
(
!*
p
)
{
if
(
!*
p
)
{
OCSPerr
(
OCSP_F_OCSP_SENDREQ_BIO
,
OCSP_R_SERVER_RESPONSE_PARSE_ERROR
);
OCSPerr
(
OCSP_F_OCSP_SENDREQ_BIO
,
OCSP_R_SERVER_RESPONSE_PARSE_ERROR
);
goto
err
;
goto
err
;
}
}
/* Find end of response code: first whitespace after start of code */
/* Find end of response code: first whitespace after start of code */
for
(
q
=
p
;
*
q
&&
!
isspace
(
*
q
);
q
++
)
continue
;
for
(
q
=
p
;
*
q
&&
!
isspace
(
(
unsigned
char
)
*
q
);
q
++
)
continue
;
if
(
!*
q
)
{
if
(
!*
q
)
{
OCSPerr
(
OCSP_F_OCSP_SENDREQ_BIO
,
OCSP_R_SERVER_RESPONSE_PARSE_ERROR
);
OCSPerr
(
OCSP_F_OCSP_SENDREQ_BIO
,
OCSP_R_SERVER_RESPONSE_PARSE_ERROR
);
goto
err
;
goto
err
;
...
@@ -134,11 +134,11 @@ Content-Length: %d\r\n\r\n";
...
@@ -134,11 +134,11 @@ Content-Length: %d\r\n\r\n";
retcode
=
strtoul
(
p
,
&
r
,
10
);
retcode
=
strtoul
(
p
,
&
r
,
10
);
if
(
*
r
)
goto
err
;
if
(
*
r
)
goto
err
;
/* Skip over any leading white space in message */
/* Skip over any leading white space in message */
while
(
*
q
&&
isspace
(
*
q
))
q
++
;
while
(
*
q
&&
isspace
(
(
unsigned
char
)
*
q
))
q
++
;
if
(
!*
q
)
goto
err
;
if
(
!*
q
)
goto
err
;
/* Finally zap any trailing white space in message (include CRLF) */
/* Finally zap any trailing white space in message (include CRLF) */
/* We know q has a non white space character so this is OK */
/* We know q has a non white space character so this is OK */
for
(
r
=
q
+
strlen
(
q
)
-
1
;
isspace
(
*
r
);
r
--
)
*
r
=
0
;
for
(
r
=
q
+
strlen
(
q
)
-
1
;
isspace
(
(
unsigned
char
)
*
r
);
r
--
)
*
r
=
0
;
if
(
retcode
!=
200
)
{
if
(
retcode
!=
200
)
{
OCSPerr
(
OCSP_F_OCSP_SENDREQ_BIO
,
OCSP_R_SERVER_RESPONSE_ERROR
);
OCSPerr
(
OCSP_F_OCSP_SENDREQ_BIO
,
OCSP_R_SERVER_RESPONSE_ERROR
);
ERR_add_error_data
(
4
,
"Code="
,
p
,
",Reason="
,
q
);
ERR_add_error_data
(
4
,
"Code="
,
p
,
",Reason="
,
q
);
...
@@ -147,7 +147,7 @@ Content-Length: %d\r\n\r\n";
...
@@ -147,7 +147,7 @@ Content-Length: %d\r\n\r\n";
/* Find blank line marking beginning of content */
/* Find blank line marking beginning of content */
while
(
BIO_gets
(
mem
,
tmpbuf
,
512
)
>
0
)
while
(
BIO_gets
(
mem
,
tmpbuf
,
512
)
>
0
)
{
{
for
(
p
=
tmpbuf
;
*
p
&&
isspace
(
*
p
);
p
++
)
continue
;
for
(
p
=
tmpbuf
;
*
p
&&
isspace
(
(
unsigned
char
)
*
p
);
p
++
)
continue
;
if
(
!*
p
)
break
;
if
(
!*
p
)
break
;
}
}
if
(
*
p
)
{
if
(
*
p
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录