Method
HaslContextstep
since: 0.1
Declaration [src]
HaslMechanismResult
hasl_context_step (
HaslContext* ctx,
const guint8* server_in,
gsize server_in_length,
guint8** client_out,
gsize* client_out_length,
GError** error
)
Description [src]
Calls hasl_mechanism_step()
for the currently active mechansim in
ctx
.
If there is no active mechanism because hasl_context_next()
has not
been called or all mechanisms have been exhausted this will return
HaslMechanismResult
with error
set.
Otherwise the return value depends on the current state of the mechanism that is being attempted.
Available since: 0.1
Parameters
server_in
-
Type:
const guint8*
Input from the server.
The argument can be NULL
.The data is owned by the caller of the function. server_in_length
-
Type:
gsize
The length of
server_in
in bytes. client_out
-
Type:
guint8**
The data that the client should use.
The instance takes ownership of the data, and is responsible for freeing it. client_out_length
-
Type:
gsize*
The length of
client_out
in bytes.The argument will be set by the function. The argument can be NULL
. error
-
Type:
GError **
The return location for a recoverable error.
The argument can be NULL
.If the return location is not NULL
, then you must initialize it to aNULL
GError*
.The argument will left initialized to NULL
by the method if there are no errors.In case of error, the argument will be set to a newly allocated GError
; the caller will take ownership of the data, and be responsible for freeing it.
Return value
Type: HaslMechanismResult
A HaslMechanismResult
on how to proceed.