From: Ian Jackson Date: Thu, 21 Jun 2012 01:23:20 +0000 (+0100) Subject: site: No longer track key validity ourselves X-Git-Tag: debian/0.3.0_beta1~6 X-Git-Url: https://git.distorted.org.uk/~mdw/secnet/commitdiff_plain/3d8d8f4e66600d1a2a80ade8e1df407a18b01ac9?hp=3d8d8f4e66600d1a2a80ade8e1df407a18b01ac9 site: No longer track key validity ourselves We used to have a variable st->current_valid, which we would always set to True when assigning a key to current_transform, and to False when calling delkey (or on initialisation). Now that we have transform->valid(), this is no longer needed. We do introduce a trivial helper function current_valid(st) to help us call it, so the places where st->current_valid was checked don't get too ugly. There is no intentional change to the externally-visible behaviour. Signed-off-by: Ian Jackson ---