You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if ((exit_code=setup_hooks(&atclient1)) !=0)
{
goto exit;
}
atlogger_log(TAG, ATLOGGER_LOGGING_LEVEL_INFO, "Hooks set up successfully.\n");
if ((exit_code=atclient_pkam_authenticate(&atclient1, atserver_host, atserver_port, &atkeys, ATSIGN)) !=0)
{
goto exit;
}
This works:
if ((exit_code=atclient_pkam_authenticate(&atclient1, atserver_host, atserver_port, &atkeys, ATSIGN)) !=0)
{
goto exit;
}
if ((exit_code=setup_hooks(&atclient1)) !=0)
{
goto exit;
}
atlogger_log(TAG, ATLOGGER_LOGGING_LEVEL_INFO, "Hooks set up successfully.\n");
Hooks have to be set up after pkam authentication. If they are set up before, it seems to not be set.
Intended behaviour
I would expect hooks to be set up properly even before pkam authentication, so that they would work even during the pkam authentication process.
I suspect the bug is occurring with the static function: atclient_start_atserver_connection.
Side notes
We may even consider that when the caller calls atclient_connection_hooks_set(/* */) that we duplicate the memory of their hook functions so that we can memory manage that themselves (in the event that they free the memory of their function somehow).
We should also consider just passing the atclient *ctx along with the params.
The text was updated successfully, but these errors were encountered:
This doesn't work:
This works:
Hooks have to be set up after pkam authentication. If they are set up before, it seems to not be set.
Intended behaviour
I would expect hooks to be set up properly even before pkam authentication, so that they would work even during the pkam authentication process.
I suspect the bug is occurring with the static function:
atclient_start_atserver_connection
.Side notes
We may even consider that when the caller calls
atclient_connection_hooks_set(/* */)
that we duplicate the memory of their hook functions so that we can memory manage that themselves (in the event that they free the memory of their function somehow).We should also consider just passing the atclient *ctx along with the params.
The text was updated successfully, but these errors were encountered: