diff options
author | Chung-yih Wang <cywang@google.com> | 2009-07-24 11:33:45 +0800 |
---|---|---|
committer | Chung-yih Wang <cywang@google.com> | 2009-07-24 11:33:45 +0800 |
commit | 719eba5bb1fbc72e3b55450f16b38a6be5640055 (patch) | |
tree | edd5b5178e70733642d9d5275d6a6102bcd657f3 /keystore/java/android | |
parent | 75b681639d3945d22d4ab90856a65a05405d2538 (diff) | |
download | frameworks_base-719eba5bb1fbc72e3b55450f16b38a6be5640055.zip frameworks_base-719eba5bb1fbc72e3b55450f16b38a6be5640055.tar.gz frameworks_base-719eba5bb1fbc72e3b55450f16b38a6be5640055.tar.bz2 |
Change to SPKAC certificate request format for keygen.
Diffstat (limited to 'keystore/java/android')
-rw-r--r-- | keystore/java/android/security/CertTool.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/keystore/java/android/security/CertTool.java b/keystore/java/android/security/CertTool.java index 79418bd..1de007d 100644 --- a/keystore/java/android/security/CertTool.java +++ b/keystore/java/android/security/CertTool.java @@ -72,7 +72,7 @@ public class CertTool { private native String getPkcs12PrivateKey(int handle); private native String popPkcs12CertificateStack(int handle); private native void freePkcs12Handle(int handle); - private native String generateCertificateRequest(int bits, String subject); + private native String generateCertificateRequest(int bits, String challenge); private native boolean isPkcs12Keystore(byte[] data); private native int generateX509Certificate(byte[] data); private native boolean isCaCertificate(int handle); @@ -124,7 +124,7 @@ public class CertTool { public String generateKeyPair(int keyStrengthIndex, String challenge, String dirName) { return generateCertificateRequest(getKeyLength(keyStrengthIndex), - dirName); + challenge); } private Intent prepareIntent(String title, byte[] data, String namespace, |