-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-sync with internal repository (#114)
The internal and external repositories are out of sync. This Pull Request attempts to brings them back in sync by patching the GitHub repository. Please carefully review this patch. You must disable ShipIt for your project in order to merge this pull request. DO NOT IMPORT this pull request. Instead, merge it directly on GitHub using the MERGE BUTTON. Re-enable ShipIt after merging. Co-authored-by: Facebook Community Bot <[email protected]>
- Loading branch information
1 parent
a951f67
commit 614e241
Showing
223 changed files
with
8,157 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
#!/usr/bin/env dotslash | ||
|
||
{ | ||
"name": "buck2", | ||
"platforms": { | ||
"macos-aarch64": { | ||
"size": 23110012, | ||
"hash": "blake3", | ||
"digest": "2e534798cfa67c02357b9edc410ea0b65984af42aecab22f077f8b8b69b635ed", | ||
"format": "zst", | ||
"path": "buck2-aarch64-apple-darwin", | ||
"providers": [ | ||
{ | ||
"url": "https://github.com/facebook/buck2/releases/download/2024-04-15/buck2-aarch64-apple-darwin.zst" | ||
} | ||
] | ||
}, | ||
"linux-aarch64": { | ||
"size": 25625575, | ||
"hash": "blake3", | ||
"digest": "9b87f3af61a3aeaa78051c780c7c2ed5a19d5bffdabd2386a7a5925af3da9069", | ||
"format": "zst", | ||
"path": "buck2-aarch64-unknown-linux-musl", | ||
"providers": [ | ||
{ | ||
"url": "https://github.com/facebook/buck2/releases/download/2024-04-15/buck2-aarch64-unknown-linux-musl.zst" | ||
} | ||
] | ||
}, | ||
"macos-x86_64": { | ||
"size": 25044637, | ||
"hash": "blake3", | ||
"digest": "aaf132b70d317c7e3e8573de5f73783c8325a96badd539805bf56dcaf0e0a285", | ||
"format": "zst", | ||
"path": "buck2-x86_64-apple-darwin", | ||
"providers": [ | ||
{ | ||
"url": "https://github.com/facebook/buck2/releases/download/2024-04-15/buck2-x86_64-apple-darwin.zst" | ||
} | ||
] | ||
}, | ||
"windows-x86_64": { | ||
"size": 20557271, | ||
"hash": "blake3", | ||
"digest": "a750d714cedca0369f62ae3e6c6cd3bf6d8c65f2f79d53f5dce10e27fcc1c9a5", | ||
"format": "zst", | ||
"path": "buck2-x86_64-pc-windows-msvc.exe", | ||
"providers": [ | ||
{ | ||
"url": "https://github.com/facebook/buck2/releases/download/2024-04-15/buck2-x86_64-pc-windows-msvc.exe.zst" | ||
} | ||
] | ||
}, | ||
"linux-x86_64": { | ||
"size": 26368190, | ||
"hash": "blake3", | ||
"digest": "486cb1458f356863331cdeacb2491afb60e3d78e4fda33adb4112dfca7dc63dd", | ||
"format": "zst", | ||
"path": "buck2-x86_64-unknown-linux-musl", | ||
"providers": [ | ||
{ | ||
"url": "https://github.com/facebook/buck2/releases/download/2024-04-15/buck2-x86_64-unknown-linux-musl.zst" | ||
} | ||
] | ||
} | ||
} | ||
} |
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,11 @@ | ||
load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") | ||
|
||
oncall("secure_pipes") | ||
|
||
cpp_library( | ||
name = "config", | ||
headers = select({ | ||
"DEFAULT": {"fizz-config.h": "facebook/fizz-config-fbcode.h"}, | ||
"ovr_config//toolchain/fb:arista": {"fizz-config.h": "facebook/fizz-config-xplat.h"}, | ||
}), | ||
) |
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 @@ | ||
""" build mode definitions for fizz """ | ||
|
||
load("@fbcode//:BUILD_MODE.bzl", get_parent_modes = "get_empty_modes") | ||
load("@fbcode//fizz:defs.bzl", "FIZZ_CXX_WARNINGS") | ||
load("@fbcode_macros//build_defs:create_build_mode.bzl", "extend_build_modes") | ||
|
||
_extra_cflags = [ | ||
] | ||
|
||
_common_flags = FIZZ_CXX_WARNINGS | ||
|
||
_extra_clang_flags = _common_flags + [ | ||
# Default value for clang (3.4) is 256, change it to GCC's default value | ||
# (https://fburl.com/23278774). | ||
"-ftemplate-depth=900", | ||
] | ||
|
||
_extra_gcc_flags = _common_flags + [ | ||
"-Wall", | ||
] | ||
|
||
_tags = [ | ||
] | ||
|
||
_modes = extend_build_modes( | ||
get_parent_modes(), | ||
c_flags = _extra_cflags, | ||
clang_flags = _extra_clang_flags, | ||
cxx_modular_headers = True, | ||
gcc_flags = _extra_gcc_flags, | ||
tags = _tags, | ||
) | ||
|
||
def get_modes(): | ||
""" Return modes for this file """ | ||
return _modes |
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,59 @@ | ||
load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") | ||
|
||
oncall("secure_pipes") | ||
|
||
cpp_library( | ||
name = "openssl", | ||
srcs = glob([ | ||
"openssl/*.cpp", | ||
"openssl/certificate/*.cpp", | ||
"openssl/crypto/*.cpp", | ||
"openssl/crypto/aead/*.cpp", | ||
"openssl/crypto/exchange/*.cpp", | ||
"openssl/crypto/signature/*.cpp", | ||
]), | ||
headers = glob([ | ||
"kex.h", | ||
"openssl/*.h", | ||
"openssl/certificate/*.h", | ||
"openssl/crypto/*.h", | ||
"openssl/crypto/aead/*.h", | ||
"openssl/crypto/exchange/*.h", | ||
"openssl/crypto/signature/*.h", | ||
]), | ||
deps = [ | ||
"//fizz/crypto/aead:aegiscipher", | ||
"//fizz/crypto/aead:cryptoutil", | ||
"//fizz/crypto/exchange:hybrid_exchange", | ||
"//fizz/experimental/crypto/exchange:oqs_key_exchange", | ||
"//folly:scope_guard", | ||
"//folly/lang:checked_math", | ||
], | ||
exported_deps = [ | ||
"//fizz:config", | ||
"//fizz/compression:certificate_compressor", | ||
"//fizz/crypto/aead:aead", | ||
"//fizz/crypto/aead:iobuf", | ||
"//fizz/crypto/exchange:key_exchange", | ||
"//fizz/crypto/exchange:x25519", | ||
"//fizz/protocol:certificate", | ||
"//fizz/protocol:default_factory", | ||
"//fizz/record:record", | ||
"//folly:conv", | ||
"//folly:memory", | ||
"//folly:range", | ||
"//folly:string", | ||
"//folly/io:iobuf", | ||
"//folly/io/async/ssl:openssl_transport_certificate", | ||
"//folly/lang:assume", | ||
"//folly/lang:bits", | ||
"//folly/portability:openssl", | ||
"//folly/ssl:openssl_cert_utils", | ||
"//folly/ssl:openssl_hash", | ||
"//folly/ssl:openssl_ptr_types", | ||
], | ||
exported_external_deps = [ | ||
"glog", | ||
("openssl", None, "crypto"), | ||
], | ||
) |
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,22 @@ | ||
load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") | ||
|
||
oncall("secure_pipes") | ||
|
||
cpp_unittest( | ||
name = "evpciphers", | ||
srcs = [ | ||
"EVPCipherTest.cpp", | ||
], | ||
supports_static_listing = False, | ||
deps = [ | ||
"//fizz:config", | ||
"//fizz/backend:openssl", | ||
"//fizz/crypto/aead:iobuf", | ||
"//fizz/crypto/aead/test:test_util", | ||
"//fizz/crypto/test:TestUtil", | ||
"//fizz/record:record", | ||
"//folly:exception_wrapper", | ||
"//folly:string", | ||
"//folly/portability:gtest", | ||
], | ||
) |
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,21 @@ | ||
load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") | ||
|
||
oncall("secure_pipes") | ||
|
||
cpp_unittest( | ||
name = "ECKey", | ||
srcs = [ | ||
"ECKeyExchangeTest.cpp", | ||
], | ||
supports_static_listing = False, | ||
deps = [ | ||
"//fizz/backend:openssl", | ||
"//fizz/crypto/test:TestUtil", | ||
"//folly:string", | ||
"//folly/portability:gtest", | ||
"//folly/ssl:openssl_ptr_types", | ||
], | ||
external_deps = [ | ||
("openssl", None, "crypto"), | ||
], | ||
) |
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,45 @@ | ||
load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") | ||
|
||
oncall("secure_pipes") | ||
|
||
cpp_unittest( | ||
name = "ec", | ||
srcs = [ | ||
"ECSignatureTest.cpp", | ||
], | ||
supports_static_listing = False, | ||
deps = [ | ||
"//fizz/backend:openssl", | ||
"//folly:string", | ||
"//folly/portability:gtest", | ||
], | ||
) | ||
|
||
cpp_unittest( | ||
name = "ed", | ||
srcs = [ | ||
"EdSignatureTest.cpp", | ||
], | ||
headers = [ | ||
"EdSignatureTest.h", | ||
], | ||
supports_static_listing = False, | ||
deps = [ | ||
"//fizz/backend:openssl", | ||
"//fizz/crypto/test:TestUtil", | ||
"//folly:fixed_string", | ||
"//folly:string", | ||
"//folly/portability:gtest", | ||
], | ||
) | ||
|
||
cpp_unittest( | ||
name = "rsa_pss", | ||
srcs = [ | ||
"RSAPSSSignatureTest.cpp", | ||
], | ||
deps = [ | ||
"//fizz/backend:openssl", | ||
"//folly/portability:gtest", | ||
], | ||
) |
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,16 @@ | ||
load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") | ||
|
||
oncall("secure_pipes") | ||
|
||
cpp_unittest( | ||
name = "key_utils", | ||
srcs = [ | ||
"OpenSSLKeyUtilsTest.cpp", | ||
], | ||
deps = [ | ||
"//fizz/backend:openssl", | ||
"//fizz/crypto/test:TestUtil", | ||
"//folly:string", | ||
"//folly/portability:gtest", | ||
], | ||
) |
Oops, something went wrong.