-
Notifications
You must be signed in to change notification settings - Fork 860
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2056 from nghttp2/bssl-cert-compression
src: Certificate Compression with boringssl
- Loading branch information
Showing
15 changed files
with
351 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# - Try to find libbrotlidec | ||
# Once done this will define | ||
# LIBBROTLIDEC_FOUND - System has libbrotlidec | ||
# LIBBROTLIDEC_INCLUDE_DIRS - The libbrotlidec include directories | ||
# LIBBROTLIDEC_LIBRARIES - The libraries needed to use libbrotlidec | ||
|
||
find_package(PkgConfig QUIET) | ||
pkg_check_modules(PC_LIBBROTLIDEC QUIET libbrotlidec) | ||
|
||
find_path(LIBBROTLIDEC_INCLUDE_DIR | ||
NAMES brotli/decode.h | ||
HINTS ${PC_LIBBROTLIDEC_INCLUDE_DIRS} | ||
) | ||
find_library(LIBBROTLIDEC_LIBRARY | ||
NAMES brotlidec | ||
HINTS ${PC_LIBBROTLIDEC_LIBRARY_DIRS} | ||
) | ||
|
||
if(PC_LIBBROTLIDEC_FOUND) | ||
set(LIBBROTLIDEC_VERSION ${PC_LIBBROTLIDEC_VERSION}) | ||
endif() | ||
|
||
include(FindPackageHandleStandardArgs) | ||
# handle the QUIETLY and REQUIRED arguments and set LIBBROTLIDEC_FOUND | ||
# to TRUE if all listed variables are TRUE and the requested version | ||
# matches. | ||
find_package_handle_standard_args(Libbrotlidec REQUIRED_VARS | ||
LIBBROTLIDEC_LIBRARY LIBBROTLIDEC_INCLUDE_DIR | ||
VERSION_VAR LIBBROTLIDEC_VERSION) | ||
|
||
if(LIBBROTLIDEC_FOUND) | ||
set(LIBBROTLIDEC_LIBRARIES ${LIBBROTLIDEC_LIBRARY}) | ||
set(LIBBROTLIDEC_INCLUDE_DIRS ${LIBBROTLIDEC_INCLUDE_DIR}) | ||
endif() | ||
|
||
mark_as_advanced(LIBBROTLIDEC_INCLUDE_DIR LIBBROTLIDEC_LIBRARY) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# - Try to find libbrotlienc | ||
# Once done this will define | ||
# LIBBROTLIENC_FOUND - System has libbrotlienc | ||
# LIBBROTLIENC_INCLUDE_DIRS - The libbrotlienc include directories | ||
# LIBBROTLIENC_LIBRARIES - The libraries needed to use libbrotlienc | ||
|
||
find_package(PkgConfig QUIET) | ||
pkg_check_modules(PC_LIBBROTLIENC QUIET libbrotlienc) | ||
|
||
find_path(LIBBROTLIENC_INCLUDE_DIR | ||
NAMES brotli/encode.h | ||
HINTS ${PC_LIBBROTLIENC_INCLUDE_DIRS} | ||
) | ||
find_library(LIBBROTLIENC_LIBRARY | ||
NAMES brotlienc | ||
HINTS ${PC_LIBBROTLIENC_LIBRARY_DIRS} | ||
) | ||
|
||
if(PC_LIBBROTLIENC_FOUND) | ||
set(LIBBROTLIENC_VERSION ${PC_LIBBROTLIENC_VERSION}) | ||
endif() | ||
|
||
include(FindPackageHandleStandardArgs) | ||
# handle the QUIETLY and REQUIRED arguments and set LIBBROTLIENC_FOUND | ||
# to TRUE if all listed variables are TRUE and the requested version | ||
# matches. | ||
find_package_handle_standard_args(Libbrotlienc REQUIRED_VARS | ||
LIBBROTLIENC_LIBRARY LIBBROTLIENC_INCLUDE_DIR | ||
VERSION_VAR LIBBROTLIENC_VERSION) | ||
|
||
if(LIBBROTLIENC_FOUND) | ||
set(LIBBROTLIENC_LIBRARIES ${LIBBROTLIENC_LIBRARY}) | ||
set(LIBBROTLIENC_INCLUDE_DIRS ${LIBBROTLIENC_INCLUDE_DIR}) | ||
endif() | ||
|
||
mark_as_advanced(LIBBROTLIENC_INCLUDE_DIR LIBBROTLIENC_LIBRARY) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.