X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fkeys.h;h=d7ab3382436e19ff3b76dca3016a5c2a5e408fba;hb=2f2bda4d1953617b945f1222e008cb53edee162a;hp=2c3ab40881b595402e7eb7ced1a1fe0f94862f85;hpb=7208397398f7e08d741bfa83594a88e5d01b6220;p=tinc diff --git a/src/keys.h b/src/keys.h index 2c3ab408..d7ab3382 100644 --- a/src/keys.h +++ b/src/keys.h @@ -7,12 +7,12 @@ extern bool disable_old_keys(const char *filename, const char *what); -extern ecdsa_t *read_ecdsa_private_key(splay_tree_t *config_tree, char **keyfile); -extern bool read_ecdsa_public_key(ecdsa_t **ecdsa, splay_tree_t **config_tree, const char *name); +extern ecdsa_t *read_ecdsa_private_key(splay_tree_t *config_tree, char **keyfile) ATTR_MALLOC ATTR_DEALLOCATOR(ecdsa_free); +extern ecdsa_t *read_ecdsa_public_key(splay_tree_t **config_tree, const char *name) ATTR_MALLOC ATTR_DEALLOCATOR(ecdsa_free); #ifndef DISABLE_LEGACY -extern rsa_t *read_rsa_private_key(splay_tree_t *config, char **keyfile); -extern bool read_rsa_public_key(rsa_t **rsa, splay_tree_t *config_tree, const char *name); +extern rsa_t *read_rsa_private_key(splay_tree_t *config, char **keyfile) ATTR_MALLOC ATTR_DEALLOCATOR(rsa_free); +extern rsa_t *read_rsa_public_key(splay_tree_t *config_tree, const char *name) ATTR_MALLOC ATTR_DEALLOCATOR(rsa_free); #endif #endif // TINC_KEYS_H