aboutsummaryrefslogtreecommitdiffstats
path: root/lib/src/main/java/com/trilead/ssh2/crypto/PEMDecoder.java
diff options
context:
space:
mode:
authorJeffrey Sharkey <jsharkey@jsharkey.org>2008-11-02 23:12:26 +0000
committerJeffrey Sharkey <jsharkey@jsharkey.org>2008-11-02 23:12:26 +0000
commitfd7e5a93b95ca7ddb51f0306b14aa0fe5c9a300c (patch)
tree144ca1c42a3f9eb4bb4de83be02a8e8eb97f2268 /lib/src/main/java/com/trilead/ssh2/crypto/PEMDecoder.java
parentc60120dc76aa2f4f1d200f9b3916a3d5b8ee3d2b (diff)
downloadsshlib-fd7e5a93b95ca7ddb51f0306b14aa0fe5c9a300c.tar.gz
sshlib-fd7e5a93b95ca7ddb51f0306b14aa0fe5c9a300c.tar.bz2
sshlib-fd7e5a93b95ca7ddb51f0306b14aa0fe5c9a300c.zip
* added "in-memory" function to backend service so that unlocked keys can be stored there. this is also disable-able from settings
* "use any key" for a host will only look through unlocked in-memory keys * implemented "load on start" functionality in backend service * implemented "import key" which lets you select any openssh-formatted key (including passworded-ones) from simple /sdcard browser * cleaned up context menu in pubkeylist, now includes toggle checkbox for "load at start" but only available when password-less and non-imported * clicking a key in pubkeylist will toggle its backend status (decrypt and put in memory, or remove from memory) * created preference for screen orientation forcing versus auto, but still need to test * created preference for camera button behavior, but still need to test
Diffstat (limited to 'lib/src/main/java/com/trilead/ssh2/crypto/PEMDecoder.java')
-rw-r--r--lib/src/main/java/com/trilead/ssh2/crypto/PEMDecoder.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/src/main/java/com/trilead/ssh2/crypto/PEMDecoder.java b/lib/src/main/java/com/trilead/ssh2/crypto/PEMDecoder.java
index ac1b842..7d0a015 100644
--- a/lib/src/main/java/com/trilead/ssh2/crypto/PEMDecoder.java
+++ b/lib/src/main/java/com/trilead/ssh2/crypto/PEMDecoder.java
@@ -23,8 +23,8 @@ import com.trilead.ssh2.signature.RSAPrivateKey;
*/
public class PEMDecoder
{
- private static final int PEM_RSA_PRIVATE_KEY = 1;
- private static final int PEM_DSA_PRIVATE_KEY = 2;
+ public static final int PEM_RSA_PRIVATE_KEY = 1;
+ public static final int PEM_DSA_PRIVATE_KEY = 2;
private static final int hexToInt(char c)
{
@@ -120,7 +120,7 @@ public class PEMDecoder
return tmp;
}
- private static final PEMStructure parsePEM(char[] pem) throws IOException
+ public static final PEMStructure parsePEM(char[] pem) throws IOException
{
PEMStructure ps = new PEMStructure();