Skip to content
Open

None #537

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions cc/google/fhir/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,9 @@ cc_library(
name = "fhir_package",
srcs = ["fhir_package.cc"],
hdrs = ["fhir_package.h"],
local_defines = select({
"//conditions:default": [],
}),
strip_include_prefix = "//cc/",
deps = [
":error_reporter",
Expand Down
23 changes: 23 additions & 0 deletions cc/google/fhir/allow_unsandboxed_fhir_package.cc
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

// NOLINTBEGIN(whitespace/line_length)
// Definition of the poison symbol required to link fhir_package in unsandboxed
// mode. This is restricted to allowed unsandboxed users to prevent accidental
// backsliding.

extern "C" int
DO_NOT_OVERWRITE____FHIR_PACKAGE_UNSANDBOXED_USE_REQUIRES_APPROVAL____SEE_cl_924576836 =
1;
// NOLINTEND(whitespace/line_length)
4 changes: 1 addition & 3 deletions cc/google/fhir/fhir_package.cc
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,7 @@ absl::Status MaybeAddEntryToFhirPackage(absl::string_view entry_name,
fhir_package);
}

// Opens the archive for reading at `archive_file_path` and returns a unique
// pointer to the archive. The unique pointer will close and free the archive
// when it is destructed.
// Unsandboxed Implementation
absl::StatusOr<std::unique_ptr<archive, decltype(&archive_read_free)>>
OpenArchive(absl::string_view archive_file_path) {
// archive_read_free itself calls archive_read_close, so no further cleanup is
Expand Down