projects
/
platform
/
core
/
security
/
yaca.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49184d8
)
Add missing ERROR_DUMP() for EVP_PKEY_size()
40/84240/1
author
Krzysztof Jackiewicz
<k.jackiewicz@samsung.com>
Wed, 17 Aug 2016 12:29:47 +0000
(14:29 +0200)
committer
Krzysztof Jackiewicz
<k.jackiewicz@samsung.com>
Wed, 17 Aug 2016 12:29:47 +0000
(14:29 +0200)
Change-Id: Ie03a37e9ad91cc4b3876d177b1a45593598f645b
src/seal.c
patch
|
blob
|
history
diff --git
a/src/seal.c
b/src/seal.c
index
7707e6a
..
83094ce
100644
(file)
--- a/
src/seal.c
+++ b/
src/seal.c
@@
-100,8
+100,11
@@
static int seal_encrypt_decrypt_key(const yaca_key_h asym_key,
return YACA_ERROR_INVALID_PARAMETER;
ret = EVP_PKEY_size(lasym_key->evp);
- if (ret <= 0)
- return YACA_ERROR_INTERNAL;
+ if (ret <= 0) {
+ ret = YACA_ERROR_INTERNAL;
+ ERROR_DUMP(ret);
+ return ret;
+ }
output_len = ret;