summaryrefslogtreecommitdiffstats
path: root/cmds
Commit message (Collapse)AuthorAgeFilesLines
* Add keychain user with special keystore access permissionsBrian Carlstrom2011-04-081-0/+1
| | | | Change-Id: I02fe5171add62c5cd9f57b01bc137f3bc1cb3a69
* KeyStore: Update the parameters of generating master keys.Chia-chi Yeh2010-10-011-24/+71
| | | | | | | | To improve the security, the parameters to generate the master key has been changed. Special cares has been taken to prevent from permanent damages of the existing data during the transition process. Change-Id: I0c93f3de28a9fcd314932675ccfb65a7f11fa3ff
* KeyStore: Initialize IV correctly.Chia-chi Yeh2010-09-301-1/+1
| | | | Change-Id: Idbf207dfcc11b92e606cbf4fd3732ed7a8aa3416
* KeyStore: Fix the return value when send() or recv() has an error.Chia-chi Yeh2010-09-301-1/+4
| | | | Change-Id: I20a63c76bd29b1a9f8959a6c4fe5a5b8a9a971b4
* added BinderService<> template to help creating native binder servicesMathias Agopian2010-07-141-12/+19
| | | | Change-Id: Id980899d2647b56479f8a27c89eaa949f9209dfe
* move native services under services/Mathias Agopian2010-07-141-1/+1
| | | | | | | | moved surfaceflinger, audioflinger, cameraservice all native services should now reside in this location. Change-Id: Iee42b83dd2a94c3bf5107ab0895fe2dfcd5337a8
* keystore: rephrase the comment to make the usage more clear.Chia-chi Yeh2010-03-171-3/+5
| | | | Change-Id: I529ca7ed443060089c95fe96dd230288be4b6c96
* Merge "keystore: add AID_ROOT into the user table."Chia-chi Yeh2010-03-081-5/+6
|\
| * keystore: add AID_ROOT into the user table.Chia-chi Yeh2010-03-091-5/+6
| | | | | | | | Change-Id: I4b9cf24d75ca79583d7913bbb2c33745a2316cde
* | keystore: allow '\0's in keys and add guards for cplusplus.Chia-chi Yeh2010-03-081-4/+10
|/ | | | Change-Id: I0af6ed7c5d51ce4ca39cb837e475942800cf6e2d
* Fix simulator build.Marco Nelissen2010-02-111-1/+1
|
* keystore: compute the padding in an intuitive way.Chia-chi Yeh2009-12-301-7/+3
|
* keystore: Add paddings before checksumming.Chia-chi Yeh2009-12-221-10/+13
| | | | | | Also fix a file descriptor leak when file system is nearly full. Bug: 2339184
* keystore: remove old implementation and test.Chia-chi Yeh2009-09-249-1532/+0
| | | | The new tests will be implemented in java.
* keystore: rename scan() to saw().Chia-chi Yeh2009-09-221-4/+4
|
* keystore: exclude builds for simulator.Chia-chi Yeh2009-09-221-0/+4
|
* keystore: enable delete(), scan(), exist() when keystore is locked.Chia-chi Yeh2009-09-211-4/+14
| | | | Also check end-of-file explicitly.
* keystore: switch to multi-user version.Chia-chi Yeh2009-09-184-61/+87
|
* keystore: add multi-user support.Chia-chi Yeh2009-09-183-0/+662
| | | | Change-Id: I60268261110934a1d60efa341ff530f94415724f
* Fix a minor bug in is_alnum_string()...Hung-ying Tyan2009-09-171-5/+8
| | | | and remove some verbose logging
* Add tests and misc fixes on keystore.Hung-ying Tyan2009-09-117-24/+94
| | | | | | | | | * Refactor netkeystore.c to make client and server code testable. * Add a client test for setting new passwd and changing passwd. * Exclude "." and ".." from reset_keystore(). * Change ServerCommand.executeCommand() to accept variable length of arguments and add convert() to marshalling the args to bytes. * Keystore.java is revised accordingly.
* Replace the delimiter whitespace with '\0'.Chung-yih Wang2009-09-095-87/+96
| | | | | | | | + Use '\0' as the delimiter. + Allow whitespace character for keystore password. In previous implementation, we use space as the delimiter. That will stop user from using passphrase with whitespace character.
* Fix network order for marshalling in keystore interface.repo sync2009-08-102-1/+8
| | | | This will fix the endian issue for heterogeneous architectures in keystore marshalling interface.
* am b86bad94: Merge change 9438 into donutAndroid (Google) Code Review2009-07-311-2/+3
|\ | | | | | | | | | | | | Merge commit 'b86bad9493a331a09dd765bc6e725c0aec969ff6' * commit 'b86bad9493a331a09dd765bc6e725c0aec969ff6': Change some log.i to log.d.
| * Merge change 9438 into donutAndroid (Google) Code Review2009-07-311-2/+3
| |\ | | | | | | | | | | | | * changes: Change some log.i to log.d.
| | * Change some log.i to log.d.Hung-ying Tyan2009-08-011-2/+3
| | |
* | | am f4692640: Add unit tests for netkeystore.Chung-yih Wang2009-07-303-7/+308
|\ \ \ | |/ / | | | | | | | | | | | | | | | Merge commit 'f4692640a8c40b8bbba1f00841c2f8fbe7b28d7a' * commit 'f4692640a8c40b8bbba1f00841c2f8fbe7b28d7a': Add unit tests for netkeystore.
| * | Add unit tests for netkeystore.Chung-yih Wang2009-07-303-7/+308
| |/ | | | | | | + some boundary checks.
* | am 75b68163: Add memcpy and strcpy boundary check.Chung-yih Wang2009-07-241-1/+31
|\ \ | |/ | | | | | | | | | | Merge commit '75b681639d3945d22d4ab90856a65a05405d2538' * commit '75b681639d3945d22d4ab90856a65a05405d2538': Add memcpy and strcpy boundary check.
| * Add memcpy and strcpy boundary check.Chung-yih Wang2009-07-241-1/+31
| |
* | am 0d039ba3: Merge change 7508 into donutAndroid (Google) Code Review2009-07-161-1/+1
|\ \ | |/ | | | | | | | | | | Merge commit '0d039ba328a59fc81280fbecf68aad2d2cba7234' * commit '0d039ba328a59fc81280fbecf68aad2d2cba7234': keystore: Fix a compile warning.
| * keystore: Fix a compile warning.Chia-chi Yeh2009-07-161-1/+1
| |
* | am 3383df38: Merge change 6198 into donutAndroid (Google) Code Review2009-07-061-0/+53
|\ \ | |/ | | | | | | | | | | Merge commit '3383df385e208807b1dc5f2956f82a7f75f65fd8' * commit '3383df385e208807b1dc5f2956f82a7f75f65fd8': keystore: Provide a generic getter for native components.
| * Merge change 6198 into donutAndroid (Google) Code Review2009-07-061-0/+53
| |\ | | | | | | | | | | | | * changes: keystore: Provide a generic getter for native components.
| | * keystore: Provide a generic getter for native components.Chia-chi Yeh2009-07-061-0/+53
| | |
* | | am 699ca3f2: Add password field for WiFi configuration.Chung-yih Wang2009-07-061-4/+12
|\ \ \ | |/ / | | | | | | | | | | | | | | | Merge commit '699ca3f2518360ea3250ff5a0e5d39e122c64a91' * commit '699ca3f2518360ea3250ff5a0e5d39e122c64a91': Add password field for WiFi configuration.
| * | Add password field for WiFi configuration.Chung-yih Wang2009-07-051-4/+12
| |/ | | | | | | | | | | | | 1. the certtool.h is modified for avoiding the side effect, for saving the configuration with wpa_supplicant. 2. put the loadLibrary back in CertTool.java 3. Fix incorrect JNI declarations.
* | am 24ad29c6: Merge change 6177 into donutAndroid (Google) Code Review2009-07-063-1/+10
|\ \ | |/ | | | | | | | | | | Merge commit '24ad29c6dbbf62096bcb41ddb2fa3975720ee625' * commit '24ad29c6dbbf62096bcb41ddb2fa3975720ee625': Two small checks in keymgmt.
| * Two small checks in keymgmt.Chung-yih Wang2009-07-033-1/+10
| | | | | | | | | | 1. Enforce the state check in listkey(). 2. Enforce the password length check.
* | am 7de4bd9b: Merge change 6045 into donutAndroid (Google) Code Review2009-07-031-1/+1
|\ \ | |/ | | | | | | | | | | Merge commit '7de4bd9b40d80fd68fc746efd645e3df7442acea' * commit '7de4bd9b40d80fd68fc746efd645e3df7442acea': Remove the null-termination for Java string compatibility.
| * Remove the null-termination for Java string compatibility.Chung-yih Wang2009-07-021-1/+1
| | | | | | | | | | | | 1. Also change the keyname delimiter in CertTool.java. 2. Return NOTFOUND if the result.len==0 in the listKeys(). 3. Define the keystore states in the class Keystore.
* | am d45dcbec: Merge change 5615 into donutAndroid (Google) Code Review2009-07-0310-619/+1098
|\ \ | |/ | | | | | | | | | | Merge commit 'd45dcbec856710f9478ffc5689e7cdf95d757ab8' * commit 'd45dcbec856710f9478ffc5689e7cdf95d757ab8': Implement the generic mini-keystore for security.
| * Implement the generic mini-keystore for security.Chung-yih Wang2009-07-0210-619/+1098
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. We will progressively migrate to this implementation. 2. For richc to have a quick review on the keymgmt part. 3. Add remove_key and make sure all functions are working. 4. Add permission check for get operation. 5. Return the retry count if unlock failed. 6. Add the reset operation for keystore reset. 7. Add the putfile shell command for putting the key value from file. 8. Fix the boundary issue during parsing command. 9. Use the ' ' as delimiter and reset the reply structure for each request. 10. Add change password retry count check. 11. Extract the read_marshal/write_marshal for certtool.h. 12. Remove the old implementation.
* | am 9fbeb7da: Merge change 4337 into donutAndroid (Google) Code Review2009-06-173-72/+235
|\ \ | |/ | | | | | | | | | | Merge commit '9fbeb7da1318bf5b65588a759332d74540306c06' * commit '9fbeb7da1318bf5b65588a759332d74540306c06': Change the keystore APIs.
| * Change the keystore APIs.Chung-yih Wang2009-06-173-72/+235
| | | | | | | | | | 1. simplify the keypair selection in UI. 2. add the user certificate and key into the keystore for keygen feature.
* | am db8a6ae6: Merge change 3709 into donutAndroid (Google) Code Review2009-06-112-20/+27
|\ \ | |/ | | | | | | | | | | Merge commit 'db8a6ae6bbd8cbb17fb79085ffb9d3fc539fe5c2' * commit 'db8a6ae6bbd8cbb17fb79085ffb9d3fc539fe5c2': Provide the Keystore feature in the framework.
| * Provide the Keystore feature in the framework.Chung-yih Wang2009-06-112-20/+27
| | | | | | | | | | -- added the keystore library for Java application. -- changed the marshalling of the keystore function return.
* | am 54d63246: Merge change 3427 into donutAndroid (Google) Code Review2009-06-094-0/+467
|\ \ | |/ | | | | | | | | | | Merge commit '54d632468c0cd53087d17420d9d383bc29553d36' * commit '54d632468c0cd53087d17420d9d383bc29553d36': First version of the keystore service.
| * First version of the keystore service.Chung-yih Wang2009-06-084-0/+467
| | | | | | | | | | | | | | | | | | | | | | | | The keystore service is protected by the user 'keystore'. Only keystore user/group can access the key content. All users are able to do the following commands from shell as well: listcerts listuserkeys installcert removecert installuserkey removeuserkey
* | get rid of utils.hMathias Agopian2009-05-311-1/+3
| |