Mayank Gupta / Mbed OS pelion-example-frdm

Dependencies:   FXAS21002 FXOS8700Q

Embed: (wiki syntax)

« Back to documentation index

EstClient Class Reference

EstClient Class Reference

EstClient This class is an interface towards the EST service and is used to enroll certificates using a CSR. More...

#include <EstClient.h>

Public Member Functions

 EstClient (ConnectorClient &connector_client)
 Constructor.
 ~EstClient ()
 Destructor.
est_status_e est_request_enrollment (const char *cert_name, const size_t cert_name_length, uint8_t *csr, const size_t csr_length, est_enrollment_result_cb result_cb, void *context) const
 Request certificate enrollment from the EST service.

Detailed Description

EstClient This class is an interface towards the EST service and is used to enroll certificates using a CSR.

Definition at line 35 of file EstClient.h.


Constructor & Destructor Documentation

EstClient ( ConnectorClient connector_client )

Constructor.

Definition at line 44 of file EstClient.cpp.

~EstClient (  )

Destructor.

Definition at line 51 of file EstClient.cpp.


Member Function Documentation

est_status_e est_request_enrollment ( const char *  cert_name,
const size_t  cert_name_length,
uint8_t *  csr,
const size_t  csr_length,
est_enrollment_result_cb  result_cb,
void *  context 
) const

Request certificate enrollment from the EST service.

Parameters:
cert_name,Thename of certificate to enroll. Null enrolls a LwM2M certificate.
cert_name_length,Thelength of cert_name buffer.
csr_length,Thelength of the certificate signing request within csr buffer.
csr,Abuffer containing the certificate signing request.
result_cb,Thecallback function that is called when EST enrollment has completed.
context,Theuser context that is passed to the result_cb callback.

Definition at line 55 of file EstClient.cpp.