projects
/
oweals
/
tinc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix: use EVP_DecryptUpdate while decrypting
[oweals/tinc.git]
/
src
/
openssl
/
cipher.c
diff --git
a/src/openssl/cipher.c
b/src/openssl/cipher.c
index d51ec0d5cedd696b75a2d47cdad8472163d08642..974fbeb2e9966e1d189fa6c7737aa63aa1e1a025 100644
(file)
--- a/
src/openssl/cipher.c
+++ b/
src/openssl/cipher.c
@@
-189,7
+189,7
@@
bool cipher_decrypt(cipher_t *cipher, const void *indata, size_t inlen, void *ou
} else {
int len;
- if(EVP_
En
cryptUpdate(cipher->ctx, outdata, &len, indata, inlen)) {
+ if(EVP_
De
cryptUpdate(cipher->ctx, outdata, &len, indata, inlen)) {
if(outlen) {
*outlen = len;
}