Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
480405e4
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看板
提交
480405e4
编写于
8月 02, 2015
作者:
B
Ben Laurie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add -Wconditional-uninitialized to clang strict warnings.
Reviewed-by:
N
Rich Salz
<
rsalz@openssl.org
>
上级
d237a273
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
25 addition
and
27 deletion
+25
-27
Configure
Configure
+2
-2
apps/s_client.c
apps/s_client.c
+1
-1
apps/verify.c
apps/verify.c
+22
-24
未找到文件。
Configure
浏览文件 @
480405e4
...
...
@@ -101,13 +101,13 @@ my $gcc_devteam_warn = "-Wall -pedantic -DPEDANTIC -Wno-long-long -Wsign-compare
# These are used in addition to $gcc_devteam_warn when the compiler is clang.
# TODO(openssl-team): fix problems and investigate if (at least) the
# following warnings can also be enabled:
-Wconditional-uninitialized,
# following warnings can also be enabled:
# -Wswitch-enum, -Wunused-macros, -Wmissing-field-initializers,
# -Wmissing-variable-declarations,
# -Wincompatible-pointer-types-discards-qualifiers, -Wcast-align,
# -Wunreachable-code -Wunused-parameter -Wlanguage-extension-token
# -Wextended-offsetof
my $clang_devteam_warn = "-Wno-unused-parameter -Wno-missing-field-initializers -Wno-language-extension-token -Wno-extended-offsetof -Qunused-arguments";
my $clang_devteam_warn = "-Wno-unused-parameter -Wno-missing-field-initializers -Wno-language-extension-token -Wno-extended-offsetof -
Wconditional-uninitialized -
Qunused-arguments";
my $strict_warnings = 0;
...
...
apps/s_client.c
浏览文件 @
480405e4
...
...
@@ -656,7 +656,7 @@ int s_client_main(int argc, char **argv)
int
prexit
=
0
;
int
enable_timeouts
=
0
,
sdebug
=
0
,
peerlen
=
sizeof
peer
;
int
reconnect
=
0
,
verify
=
SSL_VERIFY_NONE
,
vpmtouched
=
0
;
int
ret
=
1
,
in_init
=
1
,
i
,
nbio_test
=
0
,
s
,
k
,
width
,
state
=
0
;
int
ret
=
1
,
in_init
=
1
,
i
,
nbio_test
=
0
,
s
=
-
1
,
k
,
width
,
state
=
0
;
int
sbuf_len
,
sbuf_off
,
socket_type
=
SOCK_STREAM
,
cmdletters
=
1
;
int
starttls_proto
=
PROTO_OFF
,
crl_format
=
FORMAT_PEM
,
crl_download
=
0
;
int
write_tty
,
read_tty
,
write_ssl
,
read_ssl
,
tty_on
,
ssl_pending
;
...
...
apps/verify.c
浏览文件 @
480405e4
...
...
@@ -272,37 +272,35 @@ static int check(X509_STORE *ctx, char *file,
if
(
crls
)
X509_STORE_CTX_set0_crls
(
csc
,
crls
);
i
=
X509_verify_cert
(
csc
);
if
(
i
>
0
&&
show_chain
)
{
chain
=
X509_STORE_CTX_get1_chain
(
csc
);
num_untrusted
=
X509_STORE_CTX_get_num_untrusted
(
csc
);
if
(
i
>
0
)
{
printf
(
"OK
\n
"
);
ret
=
1
;
if
(
show_chain
)
{
chain
=
X509_STORE_CTX_get1_chain
(
csc
);
num_untrusted
=
X509_STORE_CTX_get_num_untrusted
(
csc
);
printf
(
"Chain:
\n
"
);
for
(
i
=
0
;
i
<
sk_X509_num
(
chain
);
i
++
)
{
X509
*
cert
=
sk_X509_value
(
chain
,
i
);
printf
(
"depth=%d: "
,
i
);
X509_NAME_print_ex_fp
(
stdout
,
X509_get_subject_name
(
cert
),
0
,
XN_FLAG_ONELINE
);
if
(
i
<
num_untrusted
)
printf
(
" (untrusted)"
);
printf
(
"
\n
"
);
}
sk_X509_pop_free
(
chain
,
X509_free
);
}
}
X509_STORE_CTX_free
(
csc
);
ret
=
0
;
end:
if
(
i
>
0
)
{
printf
(
"OK
\n
"
);
ret
=
1
;
}
else
ERR_print_errors
(
bio_err
);
if
(
chain
)
{
printf
(
"Chain:
\n
"
);
for
(
i
=
0
;
i
<
sk_X509_num
(
chain
);
i
++
)
{
X509
*
cert
=
sk_X509_value
(
chain
,
i
);
printf
(
"depth=%d: "
,
i
);
X509_NAME_print_ex_fp
(
stdout
,
X509_get_subject_name
(
cert
),
0
,
XN_FLAG_ONELINE
);
if
(
i
<
num_untrusted
)
{
printf
(
" (untrusted)"
);
}
printf
(
"
\n
"
);
}
sk_X509_pop_free
(
chain
,
X509_free
);
}
if
(
i
<=
0
)
ERR_print_errors
(
bio_err
);
X509_free
(
x
);
return
(
ret
)
;
return
ret
;
}
static
int
cb
(
int
ok
,
X509_STORE_CTX
*
ctx
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录