version 1.250, 2016/09/28 20:32:42 |
version 1.251, 2016/12/04 23:54:02 |
|
|
static int sign_and_send_pubkey(Authctxt *, Identity *); |
static int sign_and_send_pubkey(Authctxt *, Identity *); |
static void pubkey_prepare(Authctxt *); |
static void pubkey_prepare(Authctxt *); |
static void pubkey_cleanup(Authctxt *); |
static void pubkey_cleanup(Authctxt *); |
|
static void pubkey_reset(Authctxt *); |
static Key *load_identity_file(Identity *); |
static Key *load_identity_file(Identity *); |
|
|
static Authmethod *authmethod_get(char *authlist); |
static Authmethod *authmethod_get(char *authlist); |
|
|
if (partial != 0) { |
if (partial != 0) { |
verbose("Authenticated with partial success."); |
verbose("Authenticated with partial success."); |
/* reset state */ |
/* reset state */ |
pubkey_cleanup(authctxt); |
pubkey_reset(authctxt); |
pubkey_prepare(authctxt); |
|
} |
} |
debug("Authentications that can continue: %s", authlist); |
debug("Authentications that can continue: %s", authlist); |
|
|
|
|
} |
} |
} |
} |
|
|
|
static void |
|
pubkey_reset(Authctxt *authctxt) |
|
{ |
|
Identity *id; |
|
|
|
TAILQ_FOREACH(id, &authctxt->keys, next) |
|
id->tried = 0; |
|
} |
|
|
static int |
static int |
try_identity(Identity *id) |
try_identity(Identity *id) |
{ |
{ |
|
|
} |
} |
key_free(id->key); |
key_free(id->key); |
id->key = NULL; |
id->key = NULL; |
|
id->isprivate = 0; |
} |
} |
} |
} |
if (sent) |
if (sent) |