Skip to content

Commit

Permalink
Fixup 'Add also community_signature'
Browse files Browse the repository at this point in the history
  • Loading branch information
carlopi committed Jun 27, 2024
1 parent cae603a commit d8d15da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions duckdb.patch
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ index 8a278832b1..b9447440de 100644
#else
string default_endpoint = ExtensionRepository::DEFAULT_REPOSITORY_URL;
diff --git a/src/main/extension/extension_load.cpp b/src/main/extension/extension_load.cpp
index 65438aa8ec..97fce63d04 100644
index 65438aa8ec..591c759a7f 100644
--- a/src/main/extension/extension_load.cpp
+++ b/src/main/extension/extension_load.cpp
@@ -175,7 +175,13 @@ bool ExtensionHelper::TryInitialLoad(DBConfig &config, FileSystem &fs, const str
Expand Down Expand Up @@ -390,7 +390,7 @@ index 65438aa8ec..97fce63d04 100644
+ signature[j] = ((uint8_t *)exe)[4 + signature_offset + j];
+ }
+ bool any_valid = false;
+ for (auto &key : ExtensionHelper::GetPublicKeys(config.options.allow_unsigned_extensions)) {
+ for (auto &key : ExtensionHelper::GetPublicKeys(config.options.allow_community_extensions)) {
+ if (duckdb_mbedtls::MbedTlsWrapper::IsValidSha256Signature(key, signature, two_level_hash)) {
+ any_valid = true;
+ break;
Expand Down

0 comments on commit d8d15da

Please sign in to comment.