/* * Attempt J-PAKE authentication. */ static int userauth_jpake(Authctxt *authctxt) { int authenticated = 0; packet_check_eom(); debug("[email protected] requested"); if (authctxt->user != NULL) { if (authctxt->jpake_ctx == NULL) authctxt->jpake_ctx = jpake_new(); if (options.zero_knowledge_password_authentication) authenticated = auth2_jpake_start(authctxt); } return authenticated; }
/* * Attempt J-PAKE authentication. */ static int userauth_jpake(struct ssh *ssh) { Authctxt *authctxt = ssh->authctxt; int r, authenticated = 0; if ((r = sshpkt_get_end(ssh)) != 0) fatal("%s: %s", __func__, ssh_err(r)); debug("[email protected] requested"); if (authctxt->user != NULL) { if (authctxt->jpake_ctx == NULL) authctxt->jpake_ctx = jpake_new(); if (options.zero_knowledge_password_authentication) authenticated = auth2_jpake_start(ssh); } return authenticated; }