diff --git a/Ghidra/Framework/FileSystem/src/main/java/ghidra/framework/client/HeadlessClientAuthenticator.java b/Ghidra/Framework/FileSystem/src/main/java/ghidra/framework/client/HeadlessClientAuthenticator.java index b1ad049b5b..08a476a908 100644 --- a/Ghidra/Framework/FileSystem/src/main/java/ghidra/framework/client/HeadlessClientAuthenticator.java +++ b/Ghidra/Framework/FileSystem/src/main/java/ghidra/framework/client/HeadlessClientAuthenticator.java @@ -39,7 +39,7 @@ public class HeadlessClientAuthenticator implements ClientAuthenticator { private static Object sshPrivateKey; private static String userID = ClientUtil.getUserName(); // default username - private static boolean passwordPromptAlowed; + private static boolean passwordPromptAllowed; private Authenticator authenticator = new Authenticator() { @Override @@ -75,7 +75,7 @@ public class HeadlessClientAuthenticator implements ClientAuthenticator { */ public static void installHeadlessClientAuthenticator(String username, String keystorePath, boolean allowPasswordPrompt) throws IOException { - passwordPromptAlowed = allowPasswordPrompt; + passwordPromptAllowed = allowPasswordPrompt; if (username != null) { userID = username; } @@ -117,7 +117,7 @@ public class HeadlessClientAuthenticator implements ClientAuthenticator { success = true; Msg.info(HeadlessClientAuthenticator.class, "Loaded SSH key: " + keystorePath); } - catch (InvalidKeyException e) { // keyfile is not a valid SSH provate key format + catch (InvalidKeyException e) { // keyfile is not a valid SSH private key format // does not appear to be an SSH private key - try PKI keystore parse if (ApplicationKeyManagerFactory.setKeyStore(keystorePath, false)) { success = true; @@ -140,7 +140,7 @@ public class HeadlessClientAuthenticator implements ClientAuthenticator { private char[] getPassword(String usage, String prompt) { - if (!passwordPromptAlowed) { + if (!passwordPromptAllowed) { Msg.warn(this, "Headless client not configured to supply required password"); return BADPASSWORD; } @@ -208,7 +208,7 @@ public class HeadlessClientAuthenticator implements ClientAuthenticator { public boolean processPasswordCallbacks(String title, String serverType, String serverName, NameCallback nameCb, PasswordCallback passCb, ChoiceCallback choiceCb, AnonymousCallback anonymousCb, String loginError) { - if (anonymousCb != null && !passwordPromptAlowed) { + if (anonymousCb != null && !passwordPromptAllowed) { // Assume that login error will not occur with anonymous login anonymousCb.setAnonymousAccessRequested(true); return true; @@ -238,7 +238,7 @@ public class HeadlessClientAuthenticator implements ClientAuthenticator { @Override public char[] getKeyStorePassword(String keystorePath, boolean passwordError) { if (passwordError) { - if (passwordPromptAlowed) { + if (passwordPromptAllowed) { Msg.error(this, "Incorrect keystore password specified: " + keystorePath); } else { diff --git a/Ghidra/Framework/Generic/src/main/java/ghidra/net/ApplicationKeyManagerFactory.java b/Ghidra/Framework/Generic/src/main/java/ghidra/net/ApplicationKeyManagerFactory.java index 825dd19544..fbbc77c5dc 100644 --- a/Ghidra/Framework/Generic/src/main/java/ghidra/net/ApplicationKeyManagerFactory.java +++ b/Ghidra/Framework/Generic/src/main/java/ghidra/net/ApplicationKeyManagerFactory.java @@ -159,7 +159,7 @@ public class ApplicationKeyManagerFactory { /** * If the system property ghidra.keystore takes precedence in establishing - * the ketsore. If using a GUI and the system property has not been set, the + * the keystore. If using a GUI and the system property has not been set, the * user preference with the same name will be used. * @return active keystore path or null if currently not running with a keystore or * one has not been set. diff --git a/Ghidra/RuntimeScripts/Common/support/analyzeHeadlessREADME.html b/Ghidra/RuntimeScripts/Common/support/analyzeHeadlessREADME.html index e26de5388c..644fe7b45f 100644 --- a/Ghidra/RuntimeScripts/Common/support/analyzeHeadlessREADME.html +++ b/Ghidra/RuntimeScripts/Common/support/analyzeHeadlessREADME.html @@ -148,7 +148,7 @@ The Headless Analyzer uses the command-line parameters discussed below. See -
| Parameter | Local Project | @@ -503,29 +503,33 @@ The Headless Analyzer uses the command-line parameters discussed below. See|||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Type of Operation | +Authentication Method | +||||
|---|---|---|---|---|---|
| SSH Without Password* | +SSH With Password | +PKI Without Password | +PKI With Password | +Username/Password | +|
| Interactive Command Line |
+ - keystore | +Not Supported | +- keystore | +- keystore and - p |
+ - p | +
| Batch/Script Use | +- keystore | +Not Supported | +- keystore | +Not Supported | +Not Supported | +