29#ifndef FIDO_CLIENT_REGISTRATION_H_
30#define FIDO_CLIENT_REGISTRATION_H_
38#define RESIDENT_KEYS 1
This class is used to perform registration step on client side.
Definition: registration.h:44
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:163
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:134
virtual void set_client_data(const unsigned char *, const char *)=0
size_t get_authdata_len()
Method to get length of authenticator data.
Definition: registration.cc:93
virtual ~registration()
Standard destructor.
Definition: registration.cc:47
virtual bool parse_challenge(const char *challenge)=0
bool m_is_fido2
Definition: registration.h:82
fido_cred_t * m_cred
Definition: registration.h:81
virtual bool generate_signature()=0
size_t get_x5c_len()
Method to get length of x509 certificate.
Definition: registration.cc:127
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
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:152
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:143
char * user
Definition: mysqladmin.cc:66
Definition: buf0block_hint.cc:30
Definition: registration.h:40