summaryrefslogtreecommitdiffstats
path: root/cmds/keystore/keymgmt.c
Commit message (Collapse)AuthorAgeFilesLines
* keystore: remove old implementation and test.Chia-chi Yeh2009-09-241-421/+0
| | | | The new tests will be implemented in java.
* Add tests and misc fixes on keystore.Hung-ying Tyan2009-09-111-1/+4
| | | | | | | | | * 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-091-20/+12
| | | | | | | | + 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.
* Add unit tests for netkeystore.Chung-yih Wang2009-07-301-7/+31
| | | | + some boundary checks.
* Add memcpy and strcpy boundary check.Chung-yih Wang2009-07-241-1/+31
|
* Two small checks in keymgmt.Chung-yih Wang2009-07-031-0/+7
| | | | | 1. Enforce the state check in listkey(). 2. Enforce the password length check.
* Implement the generic mini-keystore for security.Chung-yih Wang2009-07-021-0/+365
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.