Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nghttp2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
nghttp2
Commits
3d5f5b6a
Commit
3d5f5b6a
authored
Jan 17, 2016
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nghttpx: Fix compiler warning
parent
eb7b3295
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/shrpx_ssl.cc
src/shrpx_ssl.cc
+4
-4
No files found.
src/shrpx_ssl.cc
View file @
3d5f5b6a
...
...
@@ -869,7 +869,7 @@ int verify_numeric_hostname(X509 *cert, const char *hostname, size_t hlen,
X509_get_ext_d2i
(
cert
,
NID_subject_alt_name
,
nullptr
,
nullptr
));
if
(
altnames
)
{
auto
altnames_deleter
=
defer
(
GENERAL_NAMES_free
,
altnames
);
auto
n
=
sk_GENERAL_NAME_num
(
altnames
);
size_t
n
=
sk_GENERAL_NAME_num
(
altnames
);
for
(
size_t
i
=
0
;
i
<
n
;
++
i
)
{
auto
altname
=
sk_GENERAL_NAME_value
(
altnames
,
i
);
if
(
altname
->
type
!=
GEN_IPADD
)
{
...
...
@@ -880,7 +880,7 @@ int verify_numeric_hostname(X509 *cert, const char *hostname, size_t hlen,
if
(
!
ip_addr
)
{
continue
;
}
auto
ip_addrlen
=
altname
->
d
.
iPAddress
->
length
;
size_t
ip_addrlen
=
altname
->
d
.
iPAddress
->
length
;
if
(
addr
->
len
==
ip_addrlen
&&
memcmp
(
saddr
,
ip_addr
,
ip_addrlen
)
==
0
)
{
return
0
;
...
...
@@ -917,7 +917,7 @@ int verify_hostname(X509 *cert, const char *hostname, size_t hlen,
X509_get_ext_d2i
(
cert
,
NID_subject_alt_name
,
nullptr
,
nullptr
));
if
(
altnames
)
{
auto
altnames_deleter
=
defer
(
GENERAL_NAMES_free
,
altnames
);
auto
n
=
sk_GENERAL_NAME_num
(
altnames
);
size_t
n
=
sk_GENERAL_NAME_num
(
altnames
);
for
(
size_t
i
=
0
;
i
<
n
;
++
i
)
{
auto
altname
=
sk_GENERAL_NAME_value
(
altnames
,
i
);
if
(
altname
->
type
!=
GEN_DNS
)
{
...
...
@@ -1158,7 +1158,7 @@ int cert_lookup_tree_add_cert_from_file(CertLookupTree *lt, SSL_CTX *ssl_ctx,
X509_get_ext_d2i
(
cert
,
NID_subject_alt_name
,
nullptr
,
nullptr
));
if
(
altnames
)
{
auto
altnames_deleter
=
defer
(
GENERAL_NAMES_free
,
altnames
);
auto
n
=
sk_GENERAL_NAME_num
(
altnames
);
size_t
n
=
sk_GENERAL_NAME_num
(
altnames
);
for
(
size_t
i
=
0
;
i
<
n
;
++
i
)
{
auto
altname
=
sk_GENERAL_NAME_value
(
altnames
,
i
);
if
(
altname
->
type
!=
GEN_DNS
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment