[Previous] [Next]

ldapu_get_cert_subject_dn()

Gets the distinguished name (DN) of the subject of the certificate.

Syntax
NSAPI_PUBLIC 
int ldapu_get_cert_subject_dn (void *cert,
      char **subjectDN);
Parameters
This function has the following parameters:
Name Description
cert
Certificate for which you want to get the subject name.

subjectDN
DN of the subject of the certificate.

Returns
Returns one of the following values:

Description
This function returns the distinguished name (DN) that identifies the subject (or owner) of the certificate presented to the server.

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.

See Also
ldapu_get_cert_issuer_dn(), ldapu_get_cert_ava_val(), ldapu_free().


[Previous] [Next]


Copyright ⌐ 1997 Netscape Communications Corporation