Skip to content

Commit

Permalink
Fix formatting and deps errors
Browse files Browse the repository at this point in the history
Signed-off-by: James Jenkins <James.Jenkins@ibm.com>
  • Loading branch information
Jenkins-J committed Feb 20, 2025
1 parent b224c51 commit 25d2f46
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 6 deletions.
5 changes: 4 additions & 1 deletion bazel/external/BUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
licenses(["notice"]) # Apache 2

exports_files(["boringssl_fips.genrule_cmd", "aws_lc.genrule_cmd"])
exports_files([
"aws_lc.genrule_cmd",
"boringssl_fips.genrule_cmd",
])

# Use a wrapper cc_library with an empty source source file to force
# compilation of other cc_library targets that only list *.a sources.
Expand Down
2 changes: 1 addition & 1 deletion bazel/repository_locations.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ REPOSITORY_LOCATIONS_SPEC = dict(
strip_prefix = "aws-lc-{version}",
urls = ["https://github.com/aws/aws-lc/archive/{version}.tar.gz"],
use_category = ["controlplane", "dataplane_core"],
release_date = "2025-02-05",
release_date = "2025-02-06",
cpe = "cpe:2.3:a:google:boringssl:*",
),
aspect_bazel_lib = dict(
Expand Down
2 changes: 1 addition & 1 deletion source/common/tls/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,8 @@ envoy_cc_library(
name = "utility_lib",
srcs = ["utility.cc"],
hdrs = [
"utility.h",
"aws_lc_compat.h",
"utility.h",
],
external_deps = ["ssl"],
deps = [
Expand Down
8 changes: 7 additions & 1 deletion source/common/tls/aws_lc_compat.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
#pragma once

// Aws-lc can be utilized as an alternative to boringssl
// This file provides API translation from boringssl to aws-lc when Envoy is compiled with aws-lc
// As of now, aws-lc is only compiled with Envoy for the ppc64le platform
// As of now, aws-lc is only compiled with Envoy for the ``ppc64le`` platform
// More information about aws-lc can be found here: https://github.com/aws/aws-lc
// This file should be included wherever the following identifiers are invoked by Envoy

namespace Envoy {

#ifdef OPENSSL_IS_AWSLC
#define sk_X509_NAME_find sk_X509_NAME_find_awslc
#endif

} // namespace Envoy
2 changes: 1 addition & 1 deletion source/common/tls/cert_validator/default_validator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
#include "source/common/runtime/runtime_features.h"
#include "source/common/stats/symbol_table.h"
#include "source/common/stats/utility.h"
#include "source/common/tls/aws_lc_compat.h"
#include "source/common/tls/cert_validator/cert_validator.h"
#include "source/common/tls/cert_validator/factory.h"
#include "source/common/tls/cert_validator/utility.h"
#include "source/common/tls/aws_lc_compat.h"
#include "source/common/tls/stats.h"
#include "source/common/tls/utility.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
#include "source/common/json/json_loader.h"
#include "source/common/protobuf/message_validator_impl.h"
#include "source/common/stats/symbol_table.h"
#include "source/common/tls/aws_lc_compat.h"
#include "source/common/tls/cert_validator/factory.h"
#include "source/common/tls/cert_validator/utility.h"
#include "source/common/tls/aws_lc_compat.h"
#include "source/common/tls/stats.h"
#include "source/common/tls/utility.h"

Expand Down

0 comments on commit 25d2f46

Please sign in to comment.