add tls protocol Signed-off-by:dongzhengkuan@huawei.com

Signed-off-by: dongzhengkuan <dongzhengkuan@huawei.com>
This commit is contained in:
dongzhengkuan 2023-08-12 15:51:46 +08:00
parent 807ab4ad13
commit af73ca9655
5 changed files with 1690 additions and 15 deletions

View File

@ -46,25 +46,14 @@ config("cups_config") {
"$cups_code_dir",
"$core_code_dir",
"//third_party/libusb/libusb",
"//third_party/openssl/include",
]
cflags = [
"-w",
"-std=c99",
"-D_PPD_DEPRECATED=",
"-Wextra",
"-Wall",
"-Wno-unused-parameter",
"-Wno-unused-function",
"-Wno-unused-variable",
"-Wno-unused-value",
"-Wno-sign-compare",
"-Wno-missing-field-initializers",
"-Wno-implicit-function-declaration",
"-Wno-deprecated-declarations",
"-Wno-incompatible-pointer-types-discards-qualifiers",
"-Wno-implicit-int",
"-Wno-implicit-function-declaration",
"-Wno-int-conversion",
]
}
@ -126,12 +115,17 @@ ohos_shared_library("cups") {
"$core_code_dir/tempfile.c",
"$core_code_dir/thread.c",
"$core_code_dir/tls.c",
"$core_code_dir/tls-openssl.c",
"$core_code_dir/transcode.c",
"$core_code_dir/usersys.c",
"$core_code_dir/util.c",
]
deps = [ "//third_party/zlib:libz" ]
deps = [
"//third_party/zlib:libz",
"//third_party/openssl:libcrypto_shared",
"//third_party/openssl:libssl_shared",
]
public_configs = [ ":cups_config" ]

View File

@ -23,7 +23,8 @@
"deps": {
"components": [],
"third_party": [
"zlib"
"zlib",
"openssl"
]
},
"build": {

View File

@ -65,6 +65,8 @@
#define HAVE_WAIT3 1
#define HAVE_MALLOC_H 1
#define HAVE_LANGINFO_H 1
#define HAVE_TLS 1
#define HAVE_OPENSSL 1
#define HAVE_SYS_IOCTL_H 1
#define HAVE_TM_GMTOFF 1
#define HAVE_RRESVPORT_AF 1

1
install.sh Executable file → Normal file
View File

@ -24,4 +24,5 @@ patch -p1 < $1/backport-CVE-2023-32324.patch --fuzz=0 --no-backup-if-mismatch
patch -p1 < $1/backport-CVE-2023-34241.patch --fuzz=0 --no-backup-if-mismatch
patch -p1 < $1/cups_single_file.patch --fuzz=0 --no-backup-if-mismatch
patch -p1 < $1/pthread_cancel.patch --fuzz=0 --no-backup-if-mismatch
patch -p1 < $1/ohos-tls-opensource.patch --fuzz=0 --no-backup-if-mismatch
exit 0

1677
ohos-tls-opensource.patch Normal file

File diff suppressed because it is too large Load Diff