projects
/
paraslash.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
filter: Make ->open() optional.
[paraslash.git]
/
gcrypt.c
diff --git
a/gcrypt.c
b/gcrypt.c
index 63f8fff3e788d5166410736b6bc95d425f112f0f..3c6c1ad1d74c234f56f289a46fad98cede2a5140 100644
(file)
--- a/
gcrypt.c
+++ b/
gcrypt.c
@@
-782,6
+782,9
@@
int priv_decrypt(const char *key_file, unsigned char *outbuf,
gcry_sexp_t in, out, priv_key;
size_t nbytes;
+ ret = check_key_file(key_file, true);
+ if (ret < 0)
+ return ret;
PARA_INFO_LOG("decrypting %d byte input\n", inlen);
/* key_file -> asymmetric key priv */
ret = get_private_key(key_file, &priv);