|
libssh 0.11.0
The SSH library
|
Security key context structure. More...
#include <pki_context.h>
Data Fields | |
| int | rsa_key_size |
| Desired RSA modulus size in bits. | |
| const struct ssh_sk_callbacks_struct * | sk_callbacks |
| Security key callbacks. | |
| char * | sk_application |
| Application identifier string for the security key credential. | |
| uint8_t | sk_flags |
| FIDO2 operation flags. | |
| ssh_auth_callback | sk_pin_callback |
| PIN callback for authenticator user verification (optional). | |
| void * | sk_userdata |
| User supplied pointer passed to callbacks (optional). | |
| ssh_buffer | sk_challenge_buffer |
| Custom challenge data for enrollment (optional). | |
| struct sk_option ** | sk_callbacks_options |
| Options to be passed to the sk_callbacks (optional). | |
| ssh_buffer | sk_attestation_buffer |
| The buffer used to store attestation information returned in a key enrollment operation. | |
Security key context structure.
Context structure containing all parameters and callbacks needed for FIDO2/U2F security key operations.
| int ssh_pki_ctx_struct::rsa_key_size |
Desired RSA modulus size in bits.
Specified size of RSA keys to generate. If set to 0, defaults to 3072 bits. Must be greater than or equal to 1024, as anything below is considered insecure.
| char* ssh_pki_ctx_struct::sk_application |
Application identifier string for the security key credential.
FIDO2 relying party identifier, typically "ssh:user@hostname" format. This is required for all security key operations.
| const struct ssh_sk_callbacks_struct* ssh_pki_ctx_struct::sk_callbacks |
Security key callbacks.
Provides enroll/sign/load_resident_keys operations.
| struct sk_option** ssh_pki_ctx_struct::sk_callbacks_options |
Options to be passed to the sk_callbacks (optional).
NULL-terminated array of sk_option pointers owned by this context.
| ssh_buffer ssh_pki_ctx_struct::sk_challenge_buffer |
Custom challenge data for enrollment (optional).
Buffer containing challenge data signed by the authenticator. If NULL, a random 32-byte challenge is automatically generated.
| uint8_t ssh_pki_ctx_struct::sk_flags |
FIDO2 operation flags.
Bitfield controlling authenticator behavior. Combine with bitwise OR:
| ssh_auth_callback ssh_pki_ctx_struct::sk_pin_callback |
PIN callback for authenticator user verification (optional).
Callback invoked to obtain a PIN or perform user verification when SSH_SK_USER_VERIFICATION_REQD is set or the authenticator requires it. If NULL, no interactive PIN retrieval is performed.
| void* ssh_pki_ctx_struct::sk_userdata |
User supplied pointer passed to callbacks (optional).
Generic pointer set by the application and forwarded to interactive callbacks (e.g. PIN callback) to allow applications to carry state context.