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
0df19919
Commit
0df19919
authored
Aug 26, 2017
by
Tatsuhiro Tsujikawa
Committed by
GitHub
Aug 26, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1001 from rlei/master
Fix OCSP related error when building with BoringSSL
parents
6fec5320
5996798a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
src/shrpx_tls.cc
src/shrpx_tls.cc
+8
-4
No files found.
src/shrpx_tls.cc
View file @
0df19919
...
...
@@ -45,7 +45,9 @@
#include <openssl/x509v3.h>
#include <openssl/rand.h>
#include <openssl/dh.h>
#ifndef OPENSSL_NO_OCSP
#include <openssl/ocsp.h>
#endif // OPENSSL_NO_OCSP
#include <nghttp2/nghttp2.h>
...
...
@@ -1544,7 +1546,7 @@ int cert_lookup_tree_add_ssl_ctx(
#if !defined(LIBRESSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER >= 0x10002000L
auto
cert
=
SSL_CTX_get0_certificate
(
ssl_ctx
);
#else // defined(LIBRESSL_VERSION_NUMBER) || OPENSSL_VERSION_NUMBER <
// 0x10002000L
// 0x10002000L
auto
tls_ctx_data
=
static_cast
<
TLSContextData
*>
(
SSL_CTX_get_app_data
(
ssl_ctx
));
auto
cert
=
load_certificate
(
tls_ctx_data
->
cert_file
);
...
...
@@ -1837,7 +1839,9 @@ int proto_version_from_string(const StringRef &v) {
int
verify_ocsp_response
(
SSL_CTX
*
ssl_ctx
,
const
uint8_t
*
ocsp_resp
,
size_t
ocsp_resplen
)
{
#if !defined(LIBRESSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER >= 0x10002000L
#if !defined(OPENSSL_NO_OCSP) && !defined(LIBRESSL_VERSION_NUMBER) && \
OPENSSL_VERSION_NUMBER >= 0x10002000L
int
rv
;
STACK_OF
(
X509
)
*
chain_certs
;
...
...
@@ -1909,8 +1913,8 @@ int verify_ocsp_response(SSL_CTX *ssl_ctx, const uint8_t *ocsp_resp,
if
(
LOG_ENABLED
(
INFO
))
{
LOG
(
INFO
)
<<
"OCSP verification succeeded"
;
}
#endif // !defined(
LIBRESSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER >=
// 0x10002000L
#endif // !defined(
OPENSSL_NO_OCSP) && !defined(LIBRESSL_VERSION_NUMBER)
//
&& OPENSSL_VERSION_NUMBER >=
0x10002000L
return
0
;
}
...
...
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