Allows the application to retrieve the realm values returned by the server in the digest-challenge from the DIGEST-MD5 context created by a call to ldap_bind_digest_md5_start.
#include <ldap.h> int ldap_get_digest_md5_realms ( LDAP_DIGEST_MD5_CONTEXT *digestMD5ctx, char*** *realms );
(IN) The DIGEST-MD5 context created by a call to ldap_bind_digest_md5_begin_s.
(IN) A pointer to an array of char pointers. This argument will be set to point to an array of char pointers that point to the realm values. The end of the array is indicated by a NULL element value.
0x00 |
LDAP_SUCCESS |
Non-zero |
Failure. For a complete list, see |
This function allocates memory for the realms array. This memory is freed by calling ldap_bind_digest_md5_finish. The application should NOT attempt to free this memory directly. Multiple calls to the ldap_get_digest_md5_realms function using the same digest-md5 context will return a pointer to the same array allocated by the first call. This function must not be called after a call to ldap_bind_digest_md5_finish for the same digest-md5 context.