aboutsummaryrefslogtreecommitdiff
path: root/libstb/secvar
diff options
context:
space:
mode:
authorDaniel Axtens <dja@axtens.net>2021-06-21 18:26:39 +1000
committerVasant Hegde <hegdevasant@linux.vnet.ibm.com>2021-07-27 15:58:50 +0530
commit54f52f163c27dfb75744558a018b996ecd703f18 (patch)
tree256ecb0bd51e6eaaf81da2e301914b70aa0aed5f /libstb/secvar
parent4c17264f37130c7e0bf9e7a4ae7cae013947e6ee (diff)
downloadskiboot-54f52f163c27dfb75744558a018b996ecd703f18.zip
skiboot-54f52f163c27dfb75744558a018b996ecd703f18.tar.gz
skiboot-54f52f163c27dfb75744558a018b996ecd703f18.tar.bz2
secvar/backend: fix comment of get_hash_to_verify
get_hash_to_verify claims to return a negative error code in the case of error. It actually returns NULL. Fix the comment. Signed-off-by: Daniel Axtens <dja@axtens.net> Reviewed-by: Nick Child <nick.child@ibm.com> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Diffstat (limited to 'libstb/secvar')
-rw-r--r--libstb/secvar/backend/edk2-compat-process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libstb/secvar/backend/edk2-compat-process.c b/libstb/secvar/backend/edk2-compat-process.c
index 90acd43..bd7a0ab 100644
--- a/libstb/secvar/backend/edk2-compat-process.c
+++ b/libstb/secvar/backend/edk2-compat-process.c
@@ -610,7 +610,7 @@ err_pkcs7:
* Create the hash of the buffer
* name || vendor guid || attributes || timestamp || newcontent
* which is submitted as signed by the user.
- * Returns the sha256 hash, else negative error code.
+ * Returns the sha256 hash, else NULL.
*/
static char *get_hash_to_verify(const char *key, const char *new_data,
const size_t new_data_size,