1
0
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:
Cristian Maglie 2016-02-01 13:33:27 +01:00
parent 48cf016195
commit 95f5b52420
2 changed files with 8 additions and 1 deletions

View File

@ -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);

View File

@ -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