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
81fb0153
Commit
81fb0153
authored
Dec 13, 2020
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nghttpx: Choose ECDSA cert if compatible signature algorithm available
parent
fb5b5aef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
src/shrpx_tls.cc
src/shrpx_tls.cc
+25
-0
No files found.
src/shrpx_tls.cc
View file @
81fb0153
...
...
@@ -196,6 +196,31 @@ int servername_callback(SSL *ssl, int *al, void *arg) {
#if !defined(OPENSSL_IS_BORINGSSL) && !LIBRESSL_IN_USE && \
OPENSSL_VERSION_NUMBER >= 0x10002000L
auto
num_sigalgs
=
SSL_get_sigalgs
(
ssl
,
0
,
nullptr
,
nullptr
,
nullptr
,
nullptr
,
nullptr
);
for
(
idx
=
0
;
idx
<
num_sigalgs
;
++
idx
)
{
int
signhash
;
SSL_get_sigalgs
(
ssl
,
idx
,
nullptr
,
nullptr
,
&
signhash
,
nullptr
,
nullptr
);
switch
(
signhash
)
{
case
NID_ecdsa_with_SHA256
:
case
NID_ecdsa_with_SHA384
:
case
NID_ecdsa_with_SHA512
:
break
;
default:
continue
;
}
break
;
}
if
(
idx
==
num_sigalgs
)
{
SSL_set_SSL_CTX
(
ssl
,
ssl_ctx_list
[
0
]);
return
SSL_TLSEXT_ERR_OK
;
}
auto
num_shared_curves
=
SSL_get_shared_curve
(
ssl
,
-
1
);
for
(
auto
i
=
0
;
i
<
num_shared_curves
;
++
i
)
{
...
...
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