Skip to content

Commit ff60fc7

Browse files
authored
chore: add Awslc fips next to CI (#5349)
1 parent 4df7664 commit ff60fc7

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

codebuild/bin/s2n_setup_env.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ source codebuild/bin/s2n_set_build_preset.sh
4848
: "${AWSLC_INSTALL_DIR:=$TEST_DEPS_DIR/awslc}"
4949
: "${AWSLC_FIPS_2022_INSTALL_DIR:=$TEST_DEPS_DIR/awslc-fips-2022}"
5050
: "${AWSLC_FIPS_2024_INSTALL_DIR:=$TEST_DEPS_DIR/awslc-fips-2024}"
51+
: "${AWSLC_FIPS_NEXT_INSTALL_DIR:=$TEST_DEPS_DIR/awslc-fips-next}"
5152
: "${LIBRESSL_INSTALL_DIR:=$TEST_DEPS_DIR/libressl}"
5253
: "${CPPCHECK_INSTALL_DIR:=$TEST_DEPS_DIR/cppcheck}"
5354
: "${CTVERIF_INSTALL_DIR:=$TEST_DEPS_DIR/ctverif}"
@@ -139,6 +140,8 @@ if [[ "$S2N_LIBCRYPTO" == "boringssl" ]]; then export LIBCRYPTO_ROOT=$BORINGSSL_
139140
if [[ "$S2N_LIBCRYPTO" == "awslc" ]]; then export LIBCRYPTO_ROOT=$AWSLC_INSTALL_DIR ; fi
140141
if [[ "$S2N_LIBCRYPTO" == "awslc-fips" ]]; then export LIBCRYPTO_ROOT=$AWSLC_FIPS_INSTALL_DIR ; fi
141142
if [[ "$S2N_LIBCRYPTO" == "awslc-fips-2022" ]]; then export LIBCRYPTO_ROOT=$AWSLC_FIPS_2022_INSTALL_DIR ; fi
143+
if [[ "$S2N_LIBCRYPTO" == "awslc-fips-2024" ]]; then export LIBCRYPTO_ROOT=$AWSLC_FIPS_2024_INSTALL_DIR ; fi
144+
if [[ "$S2N_LIBCRYPTO" == "awslc-fips-next" ]]; then export LIBCRYPTO_ROOT=$AWSLC_FIPS_NEXT_INSTALL_DIR ; fi
142145
if [[ "$S2N_LIBCRYPTO" == "libressl" ]]; then export LIBCRYPTO_ROOT=$LIBRESSL_INSTALL_DIR ; fi
143146

144147
if [[ -n "${LIBCRYPTO_ROOT:-}" ]]; then
@@ -151,6 +154,8 @@ fi
151154
export LIBFUZZER_ROOT=$LIBFUZZER_INSTALL_DIR
152155

153156
#check if the path contains test dep X, if not and X exists, add to path
157+
# The AWSLC binary(bssl) is only used for the PQ test, with the integration BoringSSL provider, and does not need to match the libcrypto used to build s2n.
158+
# The OpenSSL 1.1.1 binary is used by the integ tests, and does not need to match the libcrypto used to build s2n.
154159
path_overrides="$AWSLC_INSTALL_DIR/bin
155160
$PYTHON_INSTALL_DIR/bin
156161
$OPENSSL_1_1_1_INSTALL_DIR/bin

codebuild/spec/buildspec_sanitizer.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,18 @@ batch:
7575
variables:
7676
S2N_LIBCRYPTO: awslc
7777
COMPILER: gcc
78+
- identifier: gcc_awslc_fips_2024
79+
env:
80+
compute-type: BUILD_GENERAL1_LARGE
81+
variables:
82+
S2N_LIBCRYPTO: awslc-fips-2024
83+
COMPILER: gcc
84+
- identifier: gcc_awslc_fips_next
85+
env:
86+
compute-type: BUILD_GENERAL1_LARGE
87+
variables:
88+
S2N_LIBCRYPTO: awslc-fips-next
89+
COMPILER: gcc
7890
- identifier: gcc_openssl_3_0
7991
env:
8092
compute-type: BUILD_GENERAL1_LARGE

tests/unit/s2n_build_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ S2N_RESULT s2n_check_supported_libcrypto(const char *s2n_libcrypto)
7979
{ .libcrypto = "awslc-fips", .is_openssl = false },
8080
{ .libcrypto = "awslc-fips-2022", .is_openssl = false },
8181
{ .libcrypto = "awslc-fips-2024", .is_openssl = false },
82+
{ .libcrypto = "awslc-fips-next", .is_openssl = false },
8283
{ .libcrypto = "boringssl", .is_openssl = false },
8384
{ .libcrypto = "libressl", .is_openssl = false },
8485
{ .libcrypto = "openssl-1.0.2", .is_openssl = true },

0 commit comments

Comments
 (0)