1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 01:48:00 +00:00
putty-source/utils/host_ca_free.c

15 lines
339 B
C
Raw Normal View History

#include "defs.h"
#include "misc.h"
#include "storage.h"
void host_ca_free(host_ca *hca)
{
sfree(hca->name);
if (hca->ca_public_key)
strbuf_free(hca->ca_public_key);
for (size_t i = 0; i < hca->n_hostname_wildcards; i++)
sfree(hca->hostname_wildcards[i]);
sfree(hca->hostname_wildcards);
sfree(hca);
}