This function retrieves all the certificate Ids of the associated devices matching the subject.

API

int Iotc_GetCertificateIdsBySubject(IotcSession *iotcSession, const IotcDeviceId *deviceId, const char *subject)

Description

Get certificate ids associated with a device whose subject entry matches the appropriate subject.

Parameters
iotcSession

The current IotcSession to be used.

deviceId

Pointer to the device identifier of the device.

subject

NULL terminated UTF-8 string. This string is matched against all the entries in a certificate subject(for example, Common Name, Organization Name). If one of the entries fully matches this string, the certificate id is included in the response.

Returns

0 on success and -1 on failure