[sr-dev] auth_ephemeral do_auth() function

Juha Heinanen jh at tutpro.com
Wed Aug 26 11:54:26 CEST 2015


auth_ephemeral do_auth() function has this code:

	ret = eph_auth_api.check_response(&cred->digest, _method, ha1);
	if (ret == AUTHENTICATED)
	{
		if (eph_auth_api.post_auth(_m, _h) != AUTHENTICATED)
		{
			return AUTH_ERROR;
		}
	}
	else if (ret == NOT_AUTHENTICATED)
	{
		return AUTH_INVALID_PASSWORD;
	}
	else
	{
		ret = AUTH_ERROR;
	}

	return AUTH_OK;

i was wondering if there is a typo in 'ret = AUTH_ERROR'; statement.
should it be 'return AUTH_ERROR;' instead?

-- juha



More information about the sr-dev mailing list