mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-20 14:54:31 +01:00
Added flag to allow ignoring signature check on package_index.json
This commit is contained in:
parent
48cf016195
commit
95f5b52420
@ -80,7 +80,7 @@ public class ContributionsIndexer {
|
||||
|
||||
public void parseIndex() throws Exception {
|
||||
File defaultIndexFile = getIndexFile(Constants.DEFAULT_INDEX_FILE_NAME);
|
||||
if (!signatureVerifier.isSigned(defaultIndexFile)) {
|
||||
if (!PreferencesData.getBoolean("allow_insecure_packages") && !signatureVerifier.isSigned(defaultIndexFile)) {
|
||||
throw new SignatureVerificationFailedException(Constants.DEFAULT_INDEX_FILE_NAME);
|
||||
}
|
||||
index = parseIndex(defaultIndexFile);
|
||||
|
@ -274,3 +274,10 @@ serial.debug_rate=9600
|
||||
|
||||
# default chosen language (none for none)
|
||||
editor.languages.current =
|
||||
|
||||
# Debugging/Development Preferences
|
||||
# ---------------------------------
|
||||
|
||||
# Disable signature check on packages_index.json, use only for
|
||||
# development/debugging purposes. Do not enable in production.
|
||||
#allow_insecure_packages=true
|
||||
|
Loading…
x
Reference in New Issue
Block a user