Class

HaslMechanism

since: 0.1

Description [src]

class Hasl.Mechanism : GObject.Object
{
  /* No available fields */
}

The base class for all mechanisms.

All mechanisms need to implement hasl_mechanism_step() but may optionally implement hasl_mechanism_possible().

Available since: 0.1

Ancestors

Instance methods

hasl_mechanism_possible

This is used by ctx to determine if it should even attempt mechanism.

since: 0.1

hasl_mechanism_step

Tells mechanism to perform it’s next step. If mechanism is complete it should return TRUE. If the mechanism was not successfully, it should return TRUE but set error.

since: 0.1

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Signals

Signals inherited from GObject (1)
GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Class structure

struct HaslMechanismClass {
  gboolean (* possible) (
    HaslMechanism* mechanism,
    HaslContext* ctx,
    GError** error
  );
  HaslMechanismResult (* step) (
    HaslMechanism* mechanism,
    HaslContext* ctx,
    const guint8* server_in,
    gsize server_in_length,
    guint8** client_out,
    gsize* client_out_length,
    GError** error
  );
  
}

No description available.

Class members
possible: gboolean (* possible) ( HaslMechanism* mechanism, HaslContext* ctx, GError** error )

No description available.

step: HaslMechanismResult (* step) ( HaslMechanism* mechanism, HaslContext* ctx, const guint8* server_in, gsize server_in_length, guint8** client_out, gsize* client_out_length, GError** error )

No description available.

Virtual methods

Hasl.MechanismClass.possible

This is used by ctx to determine if it should even attempt mechanism.

since: 0.1

Hasl.MechanismClass.step

Tells mechanism to perform it’s next step. If mechanism is complete it should return TRUE. If the mechanism was not successfully, it should return TRUE but set error.

since: 0.1