/* Compare two host keys for an exact match.  */
static gint host_match(gconstpointer v, gconstpointer w)
/* Compare two host keys for an exact match.  */
static gint host_match(gconstpointer v, gconstpointer w)
{
    const host_key_t *v1 = (const host_key_t *)v;
    const host_key_t *v2 = (const host_key_t *)w;
    if (v1->port == v2->port &&
        addresses_equal(&v1->myaddress, &v2->myaddress)) {
        return 1;
    }
    return 0;
}