1
0
mirror of git://git.gnupg.org/gnupg.git synced 2025-06-25 21:37:58 +02:00

dirmngr:w32: Fix ldap_* types

* dirmngr/ks-engine-ldap.c: when compiling with Windows/MinGW headers,
  `ldap_parse_page_control` and `ldap_parse_result` expects `ULONG`.
  This has become a hard error when using GCC 15.

Signed-off-by: Zhang Maiyun <me@maiyun.me>
This commit is contained in:
Zhang Maiyun 2025-05-17 10:33:04 -07:00 committed by Werner Koch
parent 49a9171f63
commit b3dc2305e1
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -1356,10 +1356,16 @@ search_and_parse (ctrl_t ctrl, const char *keyspec,
char **attrs, LDAPMessage **r_message)
{
gpg_error_t err = 0;
int l_err, l_reserr;
int l_err;
#ifdef HAVE_W32_SYSTEM
ULONG l_reserr;
ULONG totalcount = 0;
#else
int l_reserr;
unsigned int totalcount = 0;
#endif
LDAPControl *srvctrls[2] = { NULL, NULL };
int count;
unsigned int totalcount = 0;
LDAPControl *pagectrl = NULL;
LDAPControl **resctrls = NULL;