Age | Commit message (Collapse) | Author |
|
This is needed for template-heavy code [1], and it is added by default by Bazel [2].
[1] https://learn.microsoft.com/en-us/cpp/error-messages/compiler-errors-1/fatal-error-c1128?view=msvc-170
[2] https://github.com/bazelbuild/bazel/blob/726b1007c9cc843cf65e2e4289a61c5ee346d5e1/tools/cpp/windows_cc_toolchain_config.bzl#L667
PiperOrigin-RevId: 546865338
|
|
PiperOrigin-RevId: 533411534
|
|
NOTE: This is a first step to allow us to start experimenting with OpenSSL 3.
- Use const uint8_t* pointer when calling `EVP_PKEY_CTX_set*` functions
- Remove `EXACT` keyword when using `find_package` for OpenSSL
- Assign the result of `EVP_PKEY_get0_EC_KEY` to a `const EC_KEY*`
PiperOrigin-RevId: 528720245
|
|
FetchContent is available since CMake 3.11, and does all the heavy lifting that `http_archive` did.
NOTE: `FetchContent_MakeAvailable` is only available >= 3.14, so for now we must use `add_subdirectory`.
PiperOrigin-RevId: 527204754
|
|
PiperOrigin-RevId: 527197822
|
|
This option excludes the target from being defined when TINK_BUILD_TESTS=OFF.
PiperOrigin-RevId: 527197212
|
|
The current minimum supported version in https://github.com/google/oss-policies-info/blob/main/foundational-cxx-support-matrix.md is 3.10, but this is going to change to 3.13 from May 1st because Ubuntu 18.04 will be no longer supoported. 3.13 is the older version that comes packaged with the supported distros (Debian 10 in this case).
See https://opensource.google/documentation/policies/cplusplus-support#support_criteria_3
PiperOrigin-RevId: 526954498
|
|
This is now available as a Bazel Module in the Bazel Central Repository, so use that instead of loading it as an extension.
Also rename "deps.bzl" => "extensions.bzl".
NOTE: CMake is two commits after the version used by Bazel to include a CMake fix. See https://github.com/google/boringssl/compare/5c22014...e27ff0e
PiperOrigin-RevId: 510118273
|
|
This is needed as a bridge as we enable, and eventually move towards using, Bazel Modules. Bazel Modules use different repository names (https://bazel.build/versions/6.0.0/build/bzlmod#repository-names), so this change is needed to allow WORKSPACE and Module based package definitions to coexist.
PiperOrigin-RevId: 509297684
|
|
Also, upgrade to GCC 7 as required by latest Abseil release.
https://github.com/abseil/abseil-cpp/blob/master/absl/base/policy_checks.h#L57
PiperOrigin-RevId: 509248959
|
|
PiperOrigin-RevId: 508006914
|
|
https://github.com/abseil/abseil-cpp/blob/master/CMakeLists.txt#L19
PiperOrigin-RevId: 506009333
|
|
PiperOrigin-RevId: 488604910
|
|
PiperOrigin-RevId: 487468666
|
|
Without EXCLUDE, find_package will be fine with OpenSSL 3.X.Y as well which isn't compatible with Tink.
PiperOrigin-RevId: 486138471
|
|
defined
Without this projects including Tink as a subdirectory that already define a `crypto` target will fail to build.
This is useful when building Tink alongside other libraries that define some `crypto` target.
PiperOrigin-RevId: 486128754
|
|
BUILD_INTERFACE for BoringSSL's includes
The latter is because we are only concerned about the build tree of `crypto`.
https://cmake.org/cmake/help/latest/command/target_include_directories.html#target-include-directories
PiperOrigin-RevId: 476112521
|
|
This allows building Tink with GCC 12 and CMake, which currently fails due to warnings treated as errors that were fixed by https://github.com/google/boringssl/commit/8462a367bb57e9524c3d8eca9c62733c63a63cf4.
Note that, as a consequence this requires setting:
- the default C++ version to 14
- the minimum CMake version to 3.8
which are required by BoringSSL.
PiperOrigin-RevId: 476062757
|
|
Using EVP_HPKE_CTX with SslUniquePtr requires the EVP_HPKE_CTX_new() and
EVP_HPKE_CTX_free() functions.
PiperOrigin-RevId: 453667718
|
|
PiperOrigin-RevId: 429489691
|
|
PiperOrigin-RevId: 428893269
|
|
Add a macro to create interface targets.
PiperOrigin-RevId: 426077117
|
|
version of Abseil.
`TINK_USE_INSTALLED_ABSEIL` is set to OFF by default. Abseil can be installed following the instructions in https://abseil.io/docs/cpp/tools/cmake-installs. Then one only needs to do:
```
cmake <path/to/tink> \
-DCMAKE_CXX_STANDARD=11 \
-DCMAKE_PREFIX_PATH=<abseil/install/path> \
-DTINK_USE_INSTALLED_ABSEIL=ON
```
PiperOrigin-RevId: 424371062
|
|
Using recent versions of CMake causes `gtest_discover_tests` to fail when parsing `jwt/tink_test_jwt_jwk_set_converter_test`, likely because of the issue in [1].
Using `add_test` avoids the issue at the price of losing some granularity (from per test case to per test binary).
[1] https://gitlab.kitware.com/cmake/cmake/-/issues/23039
PiperOrigin-RevId: 424321280
|
|
* Introduce a parameter 'TAGS' to CMake build rules, and the specific tag "exclude_if_openssl"; adding this tag will result in skipping the target if `TINK_USE_SYSTEM_OPENSSL=ON`.
* Tag with "exclude_if_openssl" all the targets in `cc/hybrid/internal`, `hpke_config(|_test)` and tentatively hybrid_key_templates_test` since it depends on excluded targets.
PiperOrigin-RevId: 423836764
|
|
The dependencies in examples_java_deps_init needed to be updated to work with this version of protobuf.
Also, add some explicit six requirements. This was not required until now because protobuf depends on six, and most targets imported protobuf. But the new protobuf version how does not require six anymore, but absl-py still depends on it and the build would break if I don't add this requirement explicitly. But soon, the six dependency will also be removed from absl-py.
PiperOrigin-RevId: 423124555
|
|
Note that this version of protobuf supports M1 Macs, see
https://github.com/protocolbuffers/protobuf/releases/tag/v3.17.3
PiperOrigin-RevId: 422812112
|
|
Use the `EVP_DigestVerify` oneshot instead of `ED25519_verify` which is not visible in OpenSSL.
Bumping the minimum required version of OpenSSL to 1.1.1 to guarantee support for ED25519.
PiperOrigin-RevId: 419568280
|
|
PiperOrigin-RevId: 415186897
|
|
parametrized test suites and updated the version of the wycheproof lib used with CMake to the same as Bazel.
PiperOrigin-RevId: 410780048
|
|
PiperOrigin-RevId: 410437687
|
|
system.
Tested with:
```
cmake .. -DTINK_USE_SYSTEM_OPENSSL=ON -DTINK_BUILD_TESTS=ON
make tink_test_subtle_random_test
./cc/subtle/tink_test_subtle_random_test
```
PiperOrigin-RevId: 402634773
|
|
PiperOrigin-RevId: 383480717
|
|
|
|
miscommunication.
PiperOrigin-RevId: 368367721
|
|
PiperOrigin-RevId: 353244445
|
|
PiperOrigin-RevId: 351780622
|
|
PiperOrigin-RevId: 318238715
|
|
PiperOrigin-RevId: 311341949
|
|
to c++11 when using cmake.
It seems the C++ should be specified, as otherwise CMake can decide to use a different version.
PiperOrigin-RevId: 308784762
|
|
PiperOrigin-RevId: 298831408
|
|
PiperOrigin-RevId: 296164489
|
|
Cleaning up WORKSPACE.
PiperOrigin-RevId: 271114848
|
|
PiperOrigin-RevId: 264384749
|
|
Newer ABSL breaks CMake build.
*** Original change description ***
Bumping up ABSL-version.
PiperOrigin-RevId: 264381021
|
|
PiperOrigin-RevId: 264374853
|
|
PiperOrigin-RevId: 253569428
|
|
The previous syntax for GTEST_ADD_TESTS only works with later versions of cmake, see e.g. https://cmake.org/cmake/help/v3.7/module/FindGTest.html?highlight=gtest_add_tests
Since we use cmake 3.7.1 in kokoro we cannot run these tests like this. Furthermore, the function gtest_add_tests is problematic for parametrized tests. Hence, we remove it and replace it with the simpler add_tests.
PiperOrigin-RevId: 253555478
|
|
PiperOrigin-RevId: 248717508
|
|
PiperOrigin-RevId: 240538904
GitOrigin-RevId: 4af85f811706a3dae1aef8a04acdc442216a00d2
|