}
#ifndef DISABLE_LEGACY
-bool init_crypto_by_nid(legacy_crypto_t *c, int cipher, int digest) {
+bool init_crypto_by_nid(legacy_crypto_t *c, nid_t cipher, nid_t digest) {
if(!cipher_open_by_nid(&c->cipher, cipher)) {
return false;
}
free(c->hostname);
if(c->config_tree) {
- exit_configuration(&c->config_tree);
+ exit_configuration(c->config_tree);
+ c->config_tree = NULL;
}
free(c);