NSAPI_PUBLIC
int ldapu_get_cert_subject_dn (void *cert,
char **subjectDN);
Name | Description |
---|---|
cert | Certificate for which you want to get the subject name. |
subjectDN | DN of the subject of the certificate. |
LDAPU_SUCCESS
, if the function was successful.
ldapu_err2string()
to get more information on the problem.)
If you want to get the value of a component of the DN (such as the value of the cn
component) rather than the entire DN, call the ldapu_get_cert_ava_val()
function instead.
After you are done working with the subjectDN
value returned by this function, you should call ldapu_free()
to free the value.
ldapu_get_cert_issuer_dn()
, ldapu_get_cert_ava_val()
, ldapu_free()
.