Method

HaslContextget_current_mechanism

since: 0.1

Declaration [src]

const char*
hasl_context_get_current_mechanism (
  HaslContext* ctx
)

Description [src]

Gets the name of the current mechanism that ctx is attempting.

If hasl.Context.next has not yet been called or if all mechanisms in hasl.Context:allowed-mechanisms have been exhausted then NULL will be returned.

Available since: 0.1

Return value

Type: const char*

The name of the current mechanism or NULL.

The data is owned by the instance.
The value is a NUL terminated UTF-8 string.