aboutsummaryrefslogtreecommitdiff
path: root/lib/rsa
diff options
context:
space:
mode:
authorSimon Glass2021-11-12 12:28:11 -0700
committerSimon Glass2022-01-26 08:50:44 -0700
commitc033dc8c0c4b744e028e124f88be4829309c75d1 (patch)
tree8b29d79edab956df71ecf9529f34b102842b54be /lib/rsa
parent99f844ba3a6b3ddd73742cddf7dee955bbb96c61 (diff)
image: Return destination node for add_verify_data() method
It is useful to know where the verification data was written. Update the API to return this. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'lib/rsa')
-rw-r--r--lib/rsa/rsa-sign.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/rsa/rsa-sign.c b/lib/rsa/rsa-sign.c
index a95a3d2748a..3e7b7982890 100644
--- a/lib/rsa/rsa-sign.c
+++ b/lib/rsa/rsa-sign.c
@@ -703,5 +703,8 @@ err_get_pub_key:
if (info->engine_id)
rsa_engine_remove(e);
- return ret;
+ if (ret)
+ return ret;
+
+ return node;
}