diff options
author | Chia-chi Yeh <chiachi@android.com> | 2010-03-17 16:31:20 +0800 |
---|---|---|
committer | Chia-chi Yeh <chiachi@android.com> | 2010-03-17 16:31:20 +0800 |
commit | 0df3c165b516f71d621e79b98bf731efa441dcd4 (patch) | |
tree | b79363f98a77ad89ae574e837ebea011f75dca39 /cmds/keystore | |
parent | 9ab518ad793385f8405edf19363fe825fb64f5f8 (diff) | |
download | frameworks_base-0df3c165b516f71d621e79b98bf731efa441dcd4.zip frameworks_base-0df3c165b516f71d621e79b98bf731efa441dcd4.tar.gz frameworks_base-0df3c165b516f71d621e79b98bf731efa441dcd4.tar.bz2 |
keystore: rephrase the comment to make the usage more clear.
Change-Id: I529ca7ed443060089c95fe96dd230288be4b6c96
Diffstat (limited to 'cmds/keystore')
-rw-r--r-- | cmds/keystore/keystore_get.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/cmds/keystore/keystore_get.h b/cmds/keystore/keystore_get.h index 8330f8e..141f69b 100644 --- a/cmds/keystore/keystore_get.h +++ b/cmds/keystore/keystore_get.h @@ -32,9 +32,11 @@ extern "C" { #endif /* This function is provided for native components to get values from keystore. - * Users are required to link against libcutils. The lengths of keys and values - * are limited to KEYSTORE_MESSAGE_SIZE. This function returns the length of - * the requested value or -1 if something goes wrong. */ + * Users are required to link against libcutils. Keys are values are 8-bit safe. + * The first two arguments are the key and its length. The third argument + * specifies the buffer to store the retrieved value, which must be an array of + * KEYSTORE_MESSAGE_SIZE bytes. This function returns the length of the value or + * -1 if an error happens. */ static int keystore_get(const char *key, int length, char *value) { uint8_t bytes[2] = {length >> 8, length}; |