mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:41:40 +03:00
ldap: provide version for "legacy" ldap as well
It displays in version output as WinLDAP and LDAP/1, compared to OpenLDAP/[version] for the OpenLDAP backend code. Closes #19808
This commit is contained in:
parent
b30c1b97b9
commit
3e2a946926
4 changed files with 35 additions and 27 deletions
|
|
@ -1037,6 +1037,15 @@ static void ldap_free_urldesc_low(LDAPURLDesc *ludp)
|
|||
}
|
||||
#endif /* !HAVE_LDAP_URL_PARSE */
|
||||
|
||||
void Curl_ldap_version(char *buf, size_t bufsz)
|
||||
{
|
||||
#ifdef USE_WIN32_LDAP
|
||||
curl_msnprintf(buf, bufsz, "WinLDAP");
|
||||
#else
|
||||
curl_msnprintf(buf, bufsz, "LDAP/1");
|
||||
#endif
|
||||
}
|
||||
|
||||
#if defined(__GNUC__) && defined(__APPLE__)
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue