29#ifndef FIDO_CLIENT_REGISTRATION_H_
30#define FIDO_CLIENT_REGISTRATION_H_
This class is used to perform registration step on client side.
Definition: registration.h:50
size_t get_sig_len()
Method to get length of signature.
Definition: registration.cc:111
const unsigned char * get_sig_ptr()
Method to get signature data.
Definition: registration.cc:118
fido_dev_info_t * discover_fido2_devices(size_t num_devices)
Discover available devices.
Definition: registration.cc:176
const unsigned char * get_authdata_ptr()
Method to get authenticator data.
Definition: registration.cc:102
const unsigned char * get_x5c_ptr()
Method to get x509 certificate.
Definition: registration.cc:149
virtual void set_client_data(const unsigned char *, const char *)=0
const char * get_fmt()
Definition: registration.cc:136
size_t get_authdata_len()
Method to get length of authenticator data.
Definition: registration.cc:93
const unsigned char * get_attestation_statement_ptr()
Gets the full attestation statement blob.
Definition: registration.cc:125
virtual ~registration()
Standard destructor.
Definition: registration.cc:47
virtual bool parse_challenge(const char *challenge)=0
bool m_is_fido2
Definition: registration.h:94
fido_cred_t * m_cred
Definition: registration.h:93
virtual bool generate_signature()=0
size_t get_x5c_len()
Method to get length of x509 certificate.
Definition: registration.cc:142
virtual bool make_challenge_response(unsigned char *&buf)=0
registration()
Construcutor to allocate memory for performing attestation (registration)
Definition: registration.cc:38
bool make_credentials(const char *challenge)
This method fills in all information required to initiate registration process.
Definition: registration.cc:59
size_t get_attestation_statement_length()
Gets the length of the full attestation statement blob.
Definition: registration.cc:132
void set_user(std::string user)
Set method to set user name.
Definition: registration.cc:69
bool is_fido2()
Method to check if token device supports CTAP2.1 resident keys feature.
Definition: registration.cc:167
void set_rp_id(std::string rp_id)
Method to set the relying party name or id.
Definition: registration.cc:84
const char * get_rp_id()
Method to get rp id.
Definition: registration.cc:158
char * user
Definition: mysqladmin.cc:66
Definition: buf0block_hint.cc:30
Definition: registration.h:46
capacity_bits
Definition: registration.h:35
@ SEND_FULL_ATTESTATION_BLOB
Capability bit is to support sending the full attestation blob.
Definition: registration.h:43
@ RESIDENT_KEYS
Capability bit to support resident keys(aka discoverable credentials)
Definition: registration.h:39