projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Minor type improvements in legacy protocol code
[tinc]
/
src
/
openssl
/
cipher.c
diff --git
a/src/openssl/cipher.c
b/src/openssl/cipher.c
index
77538b1
..
d19cad4
100644
(file)
--- a/
src/openssl/cipher.c
+++ b/
src/openssl/cipher.c
@@
-52,7
+52,7
@@
bool cipher_open_by_name(cipher_t *cipher, const char *name) {
return true;
}
return true;
}
-bool cipher_open_by_nid(cipher_t *cipher,
in
t nid) {
+bool cipher_open_by_nid(cipher_t *cipher,
nid_
t nid) {
const EVP_CIPHER *evp_cipher = EVP_get_cipherbynid(nid);
if(!evp_cipher) {
const EVP_CIPHER *evp_cipher = EVP_get_cipherbynid(nid);
if(!evp_cipher) {
@@
-179,7
+179,7
@@
bool cipher_decrypt(cipher_t *cipher, const void *indata, size_t inlen, void *ou
EVP_DecryptInit_ex, EVP_DecryptUpdate, EVP_DecryptFinal_ex);
}
EVP_DecryptInit_ex, EVP_DecryptUpdate, EVP_DecryptFinal_ex);
}
-
in
t cipher_get_nid(const cipher_t *cipher) {
+
nid_
t cipher_get_nid(const cipher_t *cipher) {
if(!cipher || !cipher->cipher) {
return 0;
}
if(!cipher || !cipher->cipher) {
return 0;
}