X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fcipher.h;h=116a031226c863db04247943aa073640c24dc344;hb=28be4baae016a5a771d0d9ec6e97ef38a4fc9e46;hp=7911455d8a2044285fd13652a1885fef78144b94;hpb=90cde91141ec61be4354d8deab21edb8fdf01022;p=tinc diff --git a/src/cipher.h b/src/cipher.h index 7911455d..116a0312 100644 --- a/src/cipher.h +++ b/src/cipher.h @@ -36,8 +36,8 @@ #error Incorrect cryptographic library, please reconfigure. #endif -extern cipher_t *cipher_alloc(void) ATTR_MALLOC; -extern void cipher_free(cipher_t **cipher); +extern void cipher_free(cipher_t *cipher); +extern cipher_t *cipher_alloc(void) ATTR_MALLOC ATTR_DEALLOCATOR(cipher_free); extern bool cipher_open_by_name(cipher_t *cipher, const char *name); extern bool cipher_open_by_nid(cipher_t *cipher, nid_t nid); extern void cipher_close(cipher_t *cipher);