diff options
author | Zhang Maiyun <[email protected]> | 2025-05-17 17:33:04 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2025-06-24 09:34:22 +0000 |
commit | b3dc2305e1ca92dfd75c701cca2fb90832abf7e3 (patch) | |
tree | b4d596eef84f22688986dc638ac9fd022c1dbfed | |
parent | gpg: Do not show the secp256k1 curve in --full-gen-key. (diff) | |
download | gnupg-b3dc2305e1ca92dfd75c701cca2fb90832abf7e3.tar.gz gnupg-b3dc2305e1ca92dfd75c701cca2fb90832abf7e3.zip |
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 <[email protected]>
-rw-r--r-- | dirmngr/ks-engine-ldap.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/dirmngr/ks-engine-ldap.c b/dirmngr/ks-engine-ldap.c index 4ad021b73..88dcec270 100644 --- a/dirmngr/ks-engine-ldap.c +++ b/dirmngr/ks-engine-ldap.c @@ -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; |