mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
gtlspassword: Add flags signifying PIN type for PKCS#11
In a PKCS#11 operation there are multiple types of PINs possibly needed and these flags add a way to expose them to the user. This design exactly matches gnutls' gnutls_pin_flag_t API.
This commit is contained in:
parent
9bb69aff63
commit
e750f7a145
@ -1703,6 +1703,12 @@ typedef enum {
|
||||
* wrong many times, and the user may not have many chances left.
|
||||
* @G_TLS_PASSWORD_FINAL_TRY: Hint to the user that this is the last try to get
|
||||
* this password right.
|
||||
* @G_TLS_PASSWORD_PKCS11_USER: For PKCS #11, the user PIN is required.
|
||||
* Since: 2.70.
|
||||
* @G_TLS_PASSWORD_PKCS11_SECURITY_OFFICER: For PKCS #11, the security officer
|
||||
* PIN is required. Since: 2.70.
|
||||
* @G_TLS_PASSWORD_PKCS11_CONTEXT_SPECIFIC: For PKCS #11, the context-specific
|
||||
* PIN is required. Since: 2.70.
|
||||
*
|
||||
* Various flags for the password.
|
||||
*
|
||||
@ -1714,7 +1720,10 @@ typedef enum _GTlsPasswordFlags
|
||||
G_TLS_PASSWORD_NONE = 0,
|
||||
G_TLS_PASSWORD_RETRY = 1 << 1,
|
||||
G_TLS_PASSWORD_MANY_TRIES = 1 << 2,
|
||||
G_TLS_PASSWORD_FINAL_TRY = 1 << 3
|
||||
G_TLS_PASSWORD_FINAL_TRY = 1 << 3,
|
||||
G_TLS_PASSWORD_PKCS11_USER = 1 << 4,
|
||||
G_TLS_PASSWORD_PKCS11_SECURITY_OFFICER = 1 << 5,
|
||||
G_TLS_PASSWORD_PKCS11_CONTEXT_SPECIFIC = 1 << 6
|
||||
} GTlsPasswordFlags;
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user