Make logins per session instead of global

Having a global login parameter is a failure if we have more than one
key, so make logins local to the session using the presence of the
private key in the cache as an indicator of whether we are logged in
or not.

Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
1 file changed