summaryrefslogtreecommitdiff
path: root/include/rsa.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-06-02 22:04:51 -0600
committerTom Rini <trini@ti.com>2014-06-11 16:25:46 -0400
commit4f427a421fcba92b0325907fe79464c9791e85d5 (patch)
tree6b13739c671ea04f0e4e6a5f1f811aca1ecb8e08 /include/rsa.h
parent63b4b5bae52e48528876e13e858ef934ac2e4a3b (diff)
downloadu-boot-imx-4f427a421fcba92b0325907fe79464c9791e85d5.zip
u-boot-imx-4f427a421fcba92b0325907fe79464c9791e85d5.tar.gz
u-boot-imx-4f427a421fcba92b0325907fe79464c9791e85d5.tar.bz2
fdt: Update functions which write to an FDT to return -ENOSPC
When writing values into an FDT it is possible that there will be insufficient space. If the caller gets a useful error then it can potentially deal with the situation. Adjust these functions to return -ENOSPC when the FDT is full. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/rsa.h')
-rw-r--r--include/rsa.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/rsa.h b/include/rsa.h
index a5680ab..325751a 100644
--- a/include/rsa.h
+++ b/include/rsa.h
@@ -60,7 +60,8 @@ int rsa_sign(struct image_sign_info *info,
*
* @info: Specifies key and FIT information
* @keydest: Destination FDT blob for public key data
- * @return: 0, on success, -ve on error
+ * @return: 0, on success, -ENOSPC if the keydest FDT blob ran out of space,
+ other -ve value on error
*/
int rsa_add_verify_data(struct image_sign_info *info, void *keydest);
#else