This function retrieves all the certificate Ids of the associated devices matching the subject.
int Iotc_GetCertificateIdsBySubject(IotcSession *iotcSession, const IotcDeviceId *deviceId, const char *subject)
Get certificate ids associated with a device whose subject entry matches the appropriate subject.
IotcSessionto be used.
Pointer to the device identifier of the device.
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.
0 on success and -1 on failure