Struct
GckTokenInfo
Description [src]
struct GckTokenInfo {
gchar* label;
gchar* manufacturer_id;
gchar* model;
gchar* serial_number;
gulong flags;
glong max_session_count;
glong session_count;
glong max_rw_session_count;
glong rw_session_count;
glong max_pin_len;
glong min_pin_len;
glong total_public_memory;
glong free_public_memory;
glong total_private_memory;
glong free_private_memory;
guint8 hardware_version_major;
guint8 hardware_version_minor;
guint8 firmware_version_major;
guint8 firmware_version_minor;
gint64 utc_time;
}
Represents information about a PKCS11 token.
This is analogous to a CK_TOKEN_INFO structure, but the strings are far more usable.
When you’re done with this structure it should be released with gck_token_info_free().
Structure members
label:gchar*The displayable token label.
manufacturer_id:gchar*The manufacturer of this slot.
model:gchar*The token model number as a string.
serial_number:gchar*The token serial number as a string.
flags:gulongVarious PKCS11 flags that apply to this token.
max_session_count:glongThe maximum number of sessions allowed on this token.
session_count:glongThe number of sessions open on this token.
max_rw_session_count:glongThe maximum number of read/write sessions allowed on this token.
rw_session_count:glongThe number of sessions open on this token.
max_pin_len:glongThe maximum length of a PIN for locking this token.
min_pin_len:glongThe minimum length of a PIN for locking this token.
total_public_memory:glongThe total amount of memory on this token for storing public objects.
free_public_memory:glongThe available amount of memory on this token for storing public objects.
total_private_memory:glongThe total amount of memory on this token for storing private objects.
free_private_memory:glongThe available amount of memory on this token for storing private objects.
hardware_version_major:guint8The major version of the hardware.
hardware_version_minor:guint8The minor version of the hardware.
firmware_version_major:guint8The major version of the firmware.
firmware_version_minor:guint8The minor version of the firmware.
utc_time:gint64If the token has a hardware clock, this is set to the number of seconds since the epoch.