diff -Nru openldap-2.6.4+dfsg/aclocal.m4 openldap-2.6.6+dfsg/aclocal.m4 --- openldap-2.6.4+dfsg/aclocal.m4 2023-02-08 18:53:35.000000000 +0000 +++ openldap-2.6.6+dfsg/aclocal.m4 2023-07-31 18:09:15.000000000 +0000 @@ -1,6 +1,6 @@ -# generated automatically by aclocal 1.16.1 -*- Autoconf -*- +# generated automatically by aclocal 1.16.5 -*- Autoconf -*- -# Copyright (C) 1996-2018 Free Software Foundation, Inc. +# Copyright (C) 1996-2021 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -12,9 +12,9 @@ # PARTICULAR PURPOSE. m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) -dnl pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- -dnl serial 11 (pkg-config-0.29.1) -dnl +# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- +# serial 12 (pkg-config-0.29.2) + dnl Copyright © 2004 Scott James Remnant . dnl Copyright © 2012-2015 Dan Nicholson dnl @@ -55,7 +55,7 @@ dnl See the "Since" comment for each macro you use to see what version dnl of the macros you require. m4_defun([PKG_PREREQ], -[m4_define([PKG_MACROS_VERSION], [0.29.1]) +[m4_define([PKG_MACROS_VERSION], [0.29.2]) m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1, [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])]) ])dnl PKG_PREREQ @@ -156,7 +156,7 @@ AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl pkg_failed=no -AC_MSG_CHECKING([for $1]) +AC_MSG_CHECKING([for $2]) _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) _PKG_CONFIG([$1][_LIBS], [libs], [$2]) @@ -166,11 +166,11 @@ See the pkg-config man page for more details.]) if test $pkg_failed = yes; then - AC_MSG_RESULT([no]) + AC_MSG_RESULT([no]) _PKG_SHORT_ERRORS_SUPPORTED if test $_pkg_short_errors_supported = yes; then $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1` - else + else $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1` fi # Put the nasty error message in config.log where it belongs @@ -187,7 +187,7 @@ _PKG_TEXT])[]dnl ]) elif test $pkg_failed = untried; then - AC_MSG_RESULT([no]) + AC_MSG_RESULT([no]) m4_default([$4], [AC_MSG_FAILURE( [The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full diff -Nru openldap-2.6.4+dfsg/build/lib.mk openldap-2.6.6+dfsg/build/lib.mk --- openldap-2.6.4+dfsg/build/lib.mk 2023-02-08 18:53:35.000000000 +0000 +++ openldap-2.6.6+dfsg/build/lib.mk 2023-07-31 18:09:15.000000000 +0000 @@ -40,7 +40,7 @@ clean-common: FORCE $(RM) $(LIBRARY) ../$(LIBRARY) $(XLIBRARY) \ $(PROGRAMS) $(XPROGRAMS) $(XSRCS) $(XXSRCS) \ - *.o *.lo a.out *.exe *.pc core version.c .libs/* + *.o *.lo a.out *.exe core version.c .libs/* depend-common: FORCE $(MKDEP) $(DEFS) $(DEFINES) $(SRCS) $(XXSRCS) diff -Nru openldap-2.6.4+dfsg/build/openldap.m4 openldap-2.6.6+dfsg/build/openldap.m4 --- openldap-2.6.4+dfsg/build/openldap.m4 2023-02-08 18:53:35.000000000 +0000 +++ openldap-2.6.6+dfsg/build/openldap.m4 2023-07-31 18:09:15.000000000 +0000 @@ -154,6 +154,7 @@ if test $ol_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. AC_RUN_IFELSE([AC_LANG_SOURCE([[#include +#include #ifndef HAVE_EBCDIC # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) @@ -303,8 +304,12 @@ #define NULL (void*)0 #endif +#ifdef __STDC__ +static void *task(void *p) +#else static void *task(p) void *p; +#endif { return (void *) (p == NULL); } @@ -360,9 +365,13 @@ AC_DEFUN([OL_PTHREAD_TEST_PROGRAM], [AC_LANG_SOURCE([OL_PTHREAD_TEST_INCLUDES +#ifdef __STDC__ +int main(int argc, char **argv) +#else int main(argc, argv) int argc; char **argv; +#endif { OL_PTHREAD_TEST_FUNCTION } @@ -484,7 +493,7 @@ #include #include static char *pattern, *string; -main() +int main(void) { int rc; regex_t re; @@ -511,7 +520,8 @@ [AC_CACHE_CHECK([if toupper() requires islower()],ol_cv_c_upper_lower,[ AC_RUN_IFELSE([AC_LANG_SOURCE([[ #include -main() +#include +int main(void) { if ('C' == toupper('C')) exit(0); @@ -569,7 +579,7 @@ ]])],[ol_cv_nonposix_strerror_r=yes],[ol_cv_nonposix_strerror_r=no]) else AC_RUN_IFELSE([AC_LANG_SOURCE([[ - main() { + int main(void) { char buf[100]; buf[0] = 0; strerror_r( 1, buf, sizeof buf ); diff -Nru openldap-2.6.4+dfsg/build/version.var openldap-2.6.6+dfsg/build/version.var --- openldap-2.6.4+dfsg/build/version.var 2023-02-08 18:53:35.000000000 +0000 +++ openldap-2.6.6+dfsg/build/version.var 2023-07-31 18:09:15.000000000 +0000 @@ -15,9 +15,9 @@ ol_package=OpenLDAP ol_major=2 ol_minor=6 -ol_patch=4 -ol_api_inc=20604 +ol_patch=6 +ol_api_inc=20606 ol_api_current=2 ol_api_revision=200 ol_api_age=0 -ol_release_date="2023/02/08" +ol_release_date="2023/07/31" diff -Nru openldap-2.6.4+dfsg/CHANGES openldap-2.6.6+dfsg/CHANGES --- openldap-2.6.4+dfsg/CHANGES 2023-02-08 18:53:35.000000000 +0000 +++ openldap-2.6.6+dfsg/CHANGES 2023-07-31 18:09:15.000000000 +0000 @@ -1,5 +1,50 @@ OpenLDAP 2.6 Change Log +OpenLDAP 2.6.6 Release (2023/07/31) + Fixed slapd cn=config incorrect handling of paused (ITS#10045) + Fixed slapd-meta to account for MOD ops being optional (ITS#10067) + Fixed slapd-asyncmeta to account for MOD ops being optional (ITS#10067) + +OpenLDAP 2.6.5 Release (2023/07/10) + Fixed libldap handling of TCP KEEPALIVE options (ITS#10015) + Fixed libldap with async connections (ITS#10023) + Fixed libldap openssl TLSv1.3 cipher suite handling (ITS#10035) + Fixed slapd callback handling with overlays that do extended operations (ITS#9990) + Fixed slapd conversion of pcache configurations (ITS#10031) + Fixed slapd cn=config modification handling with abandon (ITS#10045) + Fixed slapd-mdb online indexer termination and cleanup (ITS#9993) + Fixed slapd-mdb online indexer when interrupted (ITS#10047) + Fixed slapd-monitor connection cleanup (ITS#10042) + Fixed slapo-constraint handling of push replication (ITS#9953) + Fixed slapo-dynlist filter evaluation efficiency (ITS#10041) + Fixed slapo-pcache handling of invalid schema (ITS#10032) + Fixed slapo-ppolicy handling of push replication (ITS#9953) + Fixed slapo-ppolicy handling of pwdMinDelay (ITS#10028) + Fixed slapo-syncprov abandon handling (ITS#10016) + Fixed slapo-translucent handling of invalid schema (ITS#10032) + Fixed slapo-unique handling of push replication (ITS#9953) + Fixed slapo-variant to improve regex handling (ITS#10048) + Build Environment + Fixed compatibility with stricter C99 compilers (ITS#10011) + Keep .pc files during make clean (ITS#9989) + Contrib + Fixed slapo-variant handling of push replication (ITS#9953) + Minor Cleanup + ITS#9855 + ITS#9995 + ITS#9996 + ITS#9997 + ITS#9998 + ITS#9999 + ITS#10000 + ITS#10003 + ITS#10004 + ITS#10033 + ITS#10037 + ITS#10039 + ITS#10046 + ITS#10063 + OpenLDAP 2.6.4 Release (2023/02/08) Fixed client tools to remove 'h' and 'p' options (ITS#9917,ITS#8618) Fixed ldapsearch memory leak with paged results (ITS#9860) diff -Nru openldap-2.6.4+dfsg/clients/tools/ldapdelete.c openldap-2.6.6+dfsg/clients/tools/ldapdelete.c --- openldap-2.6.4+dfsg/clients/tools/ldapdelete.c 2023-02-08 18:53:35.000000000 +0000 +++ openldap-2.6.6+dfsg/clients/tools/ldapdelete.c 2023-07-31 18:09:15.000000000 +0000 @@ -389,7 +389,9 @@ break; default: tool_perror( "ldap_search", srch_rc, NULL, NULL, NULL, NULL ); - return( srch_rc ); + rc = srch_rc; + srch_rc = 0; + goto leave; } entries = ldap_count_entries( ld, res ); @@ -405,15 +407,14 @@ if( dn == NULL ) { ldap_get_option( ld, LDAP_OPT_RESULT_CODE, &rc ); tool_perror( "ldap_prune", rc, NULL, NULL, NULL, NULL ); - ber_memfree( dn ); - return rc; + goto leave; } rc = deletechildren( ld, dn, 0 ); if ( rc != LDAP_SUCCESS ) { tool_perror( "ldap_prune", rc, NULL, NULL, NULL, NULL ); ber_memfree( dn ); - return rc; + goto leave; } if ( verbose ) { @@ -424,7 +425,7 @@ if ( rc != LDAP_SUCCESS ) { tool_perror( "ldap_delete", rc, NULL, NULL, NULL, NULL ); ber_memfree( dn ); - return rc; + goto leave; } @@ -436,6 +437,7 @@ } } +leave: ldap_msgfree( res ); if ( srch_rc == LDAP_SIZELIMIT_EXCEEDED ) { diff -Nru openldap-2.6.4+dfsg/configure openldap-2.6.6+dfsg/configure --- openldap-2.6.4+dfsg/configure 2023-02-08 18:53:35.000000000 +0000 +++ openldap-2.6.6+dfsg/configure 2023-07-31 18:09:15.000000000 +0000 @@ -1,5 +1,5 @@ #! /bin/sh -# From configure.ac Id: ce84c9890960e2b21de8d80075b2e94b2fa81bea . +# From configure.ac Id: 9d37fff6d98b298663abe1f15cf9cc44b936f43c . # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.69. # @@ -810,7 +810,6 @@ docdir oldincludedir includedir -runstatedir localstatedir sharedstatedir sysconfdir @@ -970,7 +969,6 @@ sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' -runstatedir='${localstatedir}/run' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE}' @@ -1223,15 +1221,6 @@ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; - -runstatedir | --runstatedir | --runstatedi | --runstated \ - | --runstate | --runstat | --runsta | --runst | --runs \ - | --run | --ru | --r) - ac_prev=runstatedir ;; - -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ - | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ - | --run=* | --ru=* | --r=*) - runstatedir=$ac_optarg ;; - -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ @@ -1369,7 +1358,7 @@ for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ - libdir localedir mandir runstatedir + libdir localedir mandir do eval ac_val=\$$ac_var # Remove trailing slashes. @@ -1522,7 +1511,6 @@ --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] - --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] @@ -14978,6 +14966,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include +#include #ifndef HAVE_EBCDIC # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) @@ -15946,6 +15935,10 @@ else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ +#include +#ifdef HAVE_SYS_POLL_H +#include +#endif int main(int argc, char **argv) { int epfd = epoll_create(256); @@ -16126,7 +16119,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ - main() { + int main(void) { char buf[100]; buf[0] = 0; strerror_r( 1, buf, sizeof buf ); @@ -16326,7 +16319,7 @@ #include #include static char *pattern, *string; -main() +int main(void) { int rc; regex_t re; @@ -17122,9 +17115,9 @@ fi rm -f conftest.err conftest.i conftest.$ac_ext - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_export_keying_material_early in -lssl" >&5 -$as_echo_n "checking for SSL_export_keying_material_early in -lssl... " >&6; } -if ${ac_cv_lib_ssl_SSL_export_keying_material_early+:} false; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_set_ciphersuites in -lssl" >&5 +$as_echo_n "checking for SSL_CTX_set_ciphersuites in -lssl... " >&6; } +if ${ac_cv_lib_ssl_SSL_CTX_set_ciphersuites+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -17138,27 +17131,27 @@ #ifdef __cplusplus extern "C" #endif -char SSL_export_keying_material_early (); +char SSL_CTX_set_ciphersuites (); int main () { -return SSL_export_keying_material_early (); +return SSL_CTX_set_ciphersuites (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_ssl_SSL_export_keying_material_early=yes + ac_cv_lib_ssl_SSL_CTX_set_ciphersuites=yes else - ac_cv_lib_ssl_SSL_export_keying_material_early=no + ac_cv_lib_ssl_SSL_CTX_set_ciphersuites=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_export_keying_material_early" >&5 -$as_echo "$ac_cv_lib_ssl_SSL_export_keying_material_early" >&6; } -if test "x$ac_cv_lib_ssl_SSL_export_keying_material_early" = xyes; then : +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_CTX_set_ciphersuites" >&5 +$as_echo "$ac_cv_lib_ssl_SSL_CTX_set_ciphersuites" >&6; } +if test "x$ac_cv_lib_ssl_SSL_CTX_set_ciphersuites" = xyes; then : have_openssl=yes else have_openssl=no @@ -17559,16 +17552,24 @@ #define NULL (void*)0 #endif +#ifdef __STDC__ +static void *task(void *p) +#else static void *task(p) void *p; +#endif { return (void *) (p == NULL); } +#ifdef __STDC__ +int main(int argc, char **argv) +#else int main(argc, argv) int argc; char **argv; +#endif { /* pthread test function */ @@ -17664,8 +17665,12 @@ #define NULL (void*)0 #endif +#ifdef __STDC__ +static void *task(void *p) +#else static void *task(p) void *p; +#endif { return (void *) (p == NULL); } @@ -17744,16 +17749,24 @@ #define NULL (void*)0 #endif +#ifdef __STDC__ +static void *task(void *p) +#else static void *task(p) void *p; +#endif { return (void *) (p == NULL); } +#ifdef __STDC__ +int main(int argc, char **argv) +#else int main(argc, argv) int argc; char **argv; +#endif { /* pthread test function */ @@ -17854,8 +17867,12 @@ #define NULL (void*)0 #endif +#ifdef __STDC__ +static void *task(void *p) +#else static void *task(p) void *p; +#endif { return (void *) (p == NULL); } @@ -17934,16 +17951,24 @@ #define NULL (void*)0 #endif +#ifdef __STDC__ +static void *task(void *p) +#else static void *task(p) void *p; +#endif { return (void *) (p == NULL); } +#ifdef __STDC__ +int main(int argc, char **argv) +#else int main(argc, argv) int argc; char **argv; +#endif { /* pthread test function */ @@ -18044,8 +18069,12 @@ #define NULL (void*)0 #endif +#ifdef __STDC__ +static void *task(void *p) +#else static void *task(p) void *p; +#endif { return (void *) (p == NULL); } @@ -18124,16 +18153,24 @@ #define NULL (void*)0 #endif +#ifdef __STDC__ +static void *task(void *p) +#else static void *task(p) void *p; +#endif { return (void *) (p == NULL); } +#ifdef __STDC__ +int main(int argc, char **argv) +#else int main(argc, argv) int argc; char **argv; +#endif { /* pthread test function */ @@ -18234,8 +18271,12 @@ #define NULL (void*)0 #endif +#ifdef __STDC__ +static void *task(void *p) +#else static void *task(p) void *p; +#endif { return (void *) (p == NULL); } @@ -18314,16 +18355,24 @@ #define NULL (void*)0 #endif +#ifdef __STDC__ +static void *task(void *p) +#else static void *task(p) void *p; +#endif { return (void *) (p == NULL); } +#ifdef __STDC__ +int main(int argc, char **argv) +#else int main(argc, argv) int argc; char **argv; +#endif { /* pthread test function */ @@ -18424,8 +18473,12 @@ #define NULL (void*)0 #endif +#ifdef __STDC__ +static void *task(void *p) +#else static void *task(p) void *p; +#endif { return (void *) (p == NULL); } @@ -18504,16 +18557,24 @@ #define NULL (void*)0 #endif +#ifdef __STDC__ +static void *task(void *p) +#else static void *task(p) void *p; +#endif { return (void *) (p == NULL); } +#ifdef __STDC__ +int main(int argc, char **argv) +#else int main(argc, argv) int argc; char **argv; +#endif { /* pthread test function */ @@ -18615,8 +18676,12 @@ #define NULL (void*)0 #endif +#ifdef __STDC__ +static void *task(void *p) +#else static void *task(p) void *p; +#endif { return (void *) (p == NULL); } @@ -18695,16 +18760,24 @@ #define NULL (void*)0 #endif +#ifdef __STDC__ +static void *task(void *p) +#else static void *task(p) void *p; +#endif { return (void *) (p == NULL); } +#ifdef __STDC__ +int main(int argc, char **argv) +#else int main(argc, argv) int argc; char **argv; +#endif { /* pthread test function */ @@ -18805,8 +18878,12 @@ #define NULL (void*)0 #endif +#ifdef __STDC__ +static void *task(void *p) +#else static void *task(p) void *p; +#endif { return (void *) (p == NULL); } @@ -18885,16 +18962,24 @@ #define NULL (void*)0 #endif +#ifdef __STDC__ +static void *task(void *p) +#else static void *task(p) void *p; +#endif { return (void *) (p == NULL); } +#ifdef __STDC__ +int main(int argc, char **argv) +#else int main(argc, argv) int argc; char **argv; +#endif { /* pthread test function */ @@ -18996,8 +19081,12 @@ #define NULL (void*)0 #endif +#ifdef __STDC__ +static void *task(void *p) +#else static void *task(p) void *p; +#endif { return (void *) (p == NULL); } @@ -19076,16 +19165,24 @@ #define NULL (void*)0 #endif +#ifdef __STDC__ +static void *task(void *p) +#else static void *task(p) void *p; +#endif { return (void *) (p == NULL); } +#ifdef __STDC__ +int main(int argc, char **argv) +#else int main(argc, argv) int argc; char **argv; +#endif { /* pthread test function */ @@ -19187,8 +19284,12 @@ #define NULL (void*)0 #endif +#ifdef __STDC__ +static void *task(void *p) +#else static void *task(p) void *p; +#endif { return (void *) (p == NULL); } @@ -19267,16 +19368,24 @@ #define NULL (void*)0 #endif +#ifdef __STDC__ +static void *task(void *p) +#else static void *task(p) void *p; +#endif { return (void *) (p == NULL); } +#ifdef __STDC__ +int main(int argc, char **argv) +#else int main(argc, argv) int argc; char **argv; +#endif { /* pthread test function */ @@ -19377,8 +19486,12 @@ #define NULL (void*)0 #endif +#ifdef __STDC__ +static void *task(void *p) +#else static void *task(p) void *p; +#endif { return (void *) (p == NULL); } @@ -19457,16 +19570,24 @@ #define NULL (void*)0 #endif +#ifdef __STDC__ +static void *task(void *p) +#else static void *task(p) void *p; +#endif { return (void *) (p == NULL); } +#ifdef __STDC__ +int main(int argc, char **argv) +#else int main(argc, argv) int argc; char **argv; +#endif { /* pthread test function */ @@ -19568,8 +19689,12 @@ #define NULL (void*)0 #endif +#ifdef __STDC__ +static void *task(void *p) +#else static void *task(p) void *p; +#endif { return (void *) (p == NULL); } @@ -19648,16 +19773,24 @@ #define NULL (void*)0 #endif +#ifdef __STDC__ +static void *task(void *p) +#else static void *task(p) void *p; +#endif { return (void *) (p == NULL); } +#ifdef __STDC__ +int main(int argc, char **argv) +#else int main(argc, argv) int argc; char **argv; +#endif { /* pthread test function */ @@ -19759,8 +19892,12 @@ #define NULL (void*)0 #endif +#ifdef __STDC__ +static void *task(void *p) +#else static void *task(p) void *p; +#endif { return (void *) (p == NULL); } @@ -19839,16 +19976,24 @@ #define NULL (void*)0 #endif +#ifdef __STDC__ +static void *task(void *p) +#else static void *task(p) void *p; +#endif { return (void *) (p == NULL); } +#ifdef __STDC__ +int main(int argc, char **argv) +#else int main(argc, argv) int argc; char **argv; +#endif { /* pthread test function */ @@ -19949,8 +20094,12 @@ #define NULL (void*)0 #endif +#ifdef __STDC__ +static void *task(void *p) +#else static void *task(p) void *p; +#endif { return (void *) (p == NULL); } @@ -20029,16 +20178,24 @@ #define NULL (void*)0 #endif +#ifdef __STDC__ +static void *task(void *p) +#else static void *task(p) void *p; +#endif { return (void *) (p == NULL); } +#ifdef __STDC__ +int main(int argc, char **argv) +#else int main(argc, argv) int argc; char **argv; +#endif { /* pthread test function */ @@ -20139,8 +20296,12 @@ #define NULL (void*)0 #endif +#ifdef __STDC__ +static void *task(void *p) +#else static void *task(p) void *p; +#endif { return (void *) (p == NULL); } @@ -20219,16 +20380,24 @@ #define NULL (void*)0 #endif +#ifdef __STDC__ +static void *task(void *p) +#else static void *task(p) void *p; +#endif { return (void *) (p == NULL); } +#ifdef __STDC__ +int main(int argc, char **argv) +#else int main(argc, argv) int argc; char **argv; +#endif { /* pthread test function */ @@ -20330,8 +20499,12 @@ #define NULL (void*)0 #endif +#ifdef __STDC__ +static void *task(void *p) +#else static void *task(p) void *p; +#endif { return (void *) (p == NULL); } @@ -20410,16 +20583,24 @@ #define NULL (void*)0 #endif +#ifdef __STDC__ +static void *task(void *p) +#else static void *task(p) void *p; +#endif { return (void *) (p == NULL); } +#ifdef __STDC__ +int main(int argc, char **argv) +#else int main(argc, argv) int argc; char **argv; +#endif { /* pthread test function */ @@ -20631,14 +20812,12 @@ /* end confdefs.h. */ #include -#ifndef NULL -#define NULL (void*)0 -#endif +pthread_t thread; int main () { -pthread_detach(NULL); +pthread_detach(thread); ; return 0; } @@ -20752,16 +20931,24 @@ #define NULL (void*)0 #endif +#ifdef __STDC__ +static void *task(void *p) +#else static void *task(p) void *p; +#endif { return (void *) (p == NULL); } +#ifdef __STDC__ +int main(int argc, char **argv) +#else int main(argc, argv) int argc; char **argv; +#endif { /* pthread test function */ @@ -20851,6 +21038,9 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ +#define _XOPEN_SOURCE 500 /* For pthread_setconcurrency() on glibc */ +#include +#include #include #include #include @@ -20861,8 +21051,12 @@ static int fildes[2]; +#ifdef __STDC__ +static void *task(void *p) +#else static void *task(p) void *p; +#endif { int i; struct timeval tv; @@ -20886,9 +21080,13 @@ exit(0); /* if we exit here, the select blocked the whole process */ } +#ifdef __STDC__ +int main(int argc, char **argv) +#else int main(argc, argv) int argc; char **argv; +#endif { pthread_t t; @@ -22058,8 +22256,8 @@ fi pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WT" >&5 -$as_echo_n "checking for WT... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for wiredtiger" >&5 +$as_echo_n "checking for wiredtiger... " >&6; } if test -n "$WT_CFLAGS"; then pkg_cv_WT_CFLAGS="$WT_CFLAGS" @@ -22099,7 +22297,7 @@ if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then @@ -22126,7 +22324,7 @@ and WT_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} @@ -23241,7 +23439,8 @@ /* end confdefs.h. */ #include -main() +#include +int main(void) { if ('C' == toupper('C')) exit(0); @@ -25275,7 +25474,7 @@ BUILD_PW_ARGON2=$ol_enable_argon2 if test "$ol_enable_argon2" = "yes" ; then - SLAPD_DYNAMIC_PWMODS="$SLAPD_DYNAMIC_PWDMODS argon2.la" + SLAPD_DYNAMIC_PWMODS="$SLAPD_DYNAMIC_PWMODS argon2.la" fi cat >>confdefs.h <<_ACEOF diff -Nru openldap-2.6.4+dfsg/configure.ac openldap-2.6.6+dfsg/configure.ac --- openldap-2.6.4+dfsg/configure.ac 2023-02-08 18:53:35.000000000 +0000 +++ openldap-2.6.6+dfsg/configure.ac 2023-07-31 18:09:15.000000000 +0000 @@ -25,7 +25,7 @@ dnl Configure.in for OpenLDAP AC_COPYRIGHT([[Copyright 1998-2022 The OpenLDAP Foundation. All rights reserved. Restrictions apply, see COPYRIGHT and LICENSE files.]]) -AC_REVISION([$Id: ce84c9890960e2b21de8d80075b2e94b2fa81bea $]) +AC_REVISION([$Id: 9d37fff6d98b298663abe1f15cf9cc44b936f43c $]) AC_INIT([OpenLDAP],,[https://bugs.openldap.org],,[https://www.openldap.org]) AC_CONFIG_SRCDIR(build/version.sh)dnl dnl ---------------------------------------------------------------- @@ -1003,7 +1003,11 @@ AC_CHECK_HEADERS( sys/epoll.h ) if test "${ac_cv_header_sys_epoll_h}" = yes; then AC_MSG_CHECKING(for epoll system call) - AC_RUN_IFELSE([AC_LANG_SOURCE([[int main(int argc, char **argv) + AC_RUN_IFELSE([AC_LANG_SOURCE([[#include +#ifdef HAVE_SYS_POLL_H +#include +#endif +int main(int argc, char **argv) { int epfd = epoll_create(256); exit (epfd == -1 ? 1 : 0); @@ -1226,7 +1230,7 @@ [#endif]])], , [AC_MSG_FAILURE([OpenSSL 1.1.1 or newer required])]) - AC_CHECK_LIB(ssl, SSL_export_keying_material_early, + AC_CHECK_LIB(ssl, SSL_CTX_set_ciphersuites, [have_openssl=yes], [have_openssl=no], [-lcrypto]) @@ -1356,10 +1360,10 @@ dnl pthread_create() in -lpthread (many) dnl pthread_create() in -lc_r (FreeBSD) dnl - dnl Check pthread (draft4) flags (depreciated) + dnl Check pthread (draft4) flags (deprecated) dnl pthread_create() with -threads (OSF/1) dnl - dnl Check pthread (draft4) libraries (depreciated) + dnl Check pthread (draft4) libraries (deprecated) dnl pthread_mutex_unlock() in -lpthreads -lmach -lexc -lc_r (OSF/1) dnl pthread_mutex_lock() in -lpthreads -lmach -lexc (OSF/1) dnl pthread_mutex_trylock() in -lpthreads -lexc (OSF/1) @@ -1378,7 +1382,7 @@ ol_link_threads=posix ol_link_pthreads="" fi - + dnl OL_PTHREAD_TRY([-mt], [ol_cv_pthread_mt]) OL_PTHREAD_TRY([-kthread], [ol_cv_pthread_kthread]) OL_PTHREAD_TRY([-pthread], [ol_cv_pthread_pthread]) @@ -1465,10 +1469,8 @@ dnl save the flags AC_LINK_IFELSE([AC_LANG_PROGRAM([[ #include -#ifndef NULL -#define NULL (void*)0 -#endif -]], [[pthread_detach(NULL);]])],[ol_cv_func_pthread_detach=yes],[ol_cv_func_pthread_detach=no]) +pthread_t thread; +]], [[pthread_detach(thread);]])],[ol_cv_func_pthread_detach=yes],[ol_cv_func_pthread_detach=no]) ]) if test $ol_cv_func_pthread_detach = no ; then @@ -1523,6 +1525,9 @@ AC_CACHE_CHECK([if select yields when using pthreads], ol_cv_pthread_select_yields,[ AC_RUN_IFELSE([AC_LANG_SOURCE([[ +#define _XOPEN_SOURCE 500 /* For pthread_setconcurrency() on glibc */ +#include +#include #include #include #include @@ -1533,8 +1538,12 @@ static int fildes[2]; +#ifdef __STDC__ +static void *task(void *p) +#else static void *task(p) void *p; +#endif { int i; struct timeval tv; @@ -1558,9 +1567,13 @@ exit(0); /* if we exit here, the select blocked the whole process */ } +#ifdef __STDC__ +int main(int argc, char **argv) +#else int main(argc, argv) int argc; char **argv; +#endif { pthread_t t; @@ -3038,7 +3051,7 @@ BUILD_PW_ARGON2=$ol_enable_argon2 if test "$ol_enable_argon2" = "yes" ; then - SLAPD_DYNAMIC_PWMODS="$SLAPD_DYNAMIC_PWDMODS argon2.la" + SLAPD_DYNAMIC_PWMODS="$SLAPD_DYNAMIC_PWMODS argon2.la" fi AC_DEFINE_UNQUOTED(SLAPD_PWMOD_PW_ARGON2,$SLAPD_MOD_DYNAMIC,[define for Argon2 Password hashing module]) fi diff -Nru openldap-2.6.4+dfsg/contrib/ldaptcl/tclAppInit.c openldap-2.6.6+dfsg/contrib/ldaptcl/tclAppInit.c --- openldap-2.6.4+dfsg/contrib/ldaptcl/tclAppInit.c 2023-02-08 18:53:35.000000000 +0000 +++ openldap-2.6.6+dfsg/contrib/ldaptcl/tclAppInit.c 2023-07-31 18:09:15.000000000 +0000 @@ -45,9 +45,7 @@ */ int -main(argc, argv) - int argc; /* Number of command-line arguments. */ - char **argv; /* Values of command-line arguments. */ +main(int argc, char **argv) { #ifdef USE_TCLX TclX_Main(argc, argv, Tcl_AppInit); diff -Nru openldap-2.6.4+dfsg/contrib/ldaptcl/tkAppInit.c openldap-2.6.6+dfsg/contrib/ldaptcl/tkAppInit.c --- openldap-2.6.4+dfsg/contrib/ldaptcl/tkAppInit.c 2023-02-08 18:53:35.000000000 +0000 +++ openldap-2.6.6+dfsg/contrib/ldaptcl/tkAppInit.c 2023-07-31 18:09:15.000000000 +0000 @@ -37,16 +37,9 @@ * This is the main program for the application. *----------------------------------------------------------------------------- */ -#ifdef __cplusplus int main (int argc, char **argv) -#else -int -main (argc, argv) - int argc; - char **argv; -#endif { #ifdef USE_TCLX TkX_Main(argc, argv, Tcl_AppInit); @@ -68,14 +61,8 @@ * interp->result if an error occurs. *----------------------------------------------------------------------------- */ -#ifdef __cplusplus int Tcl_AppInit (Tcl_Interp *interp) -#else -int -Tcl_AppInit (interp) - Tcl_Interp *interp; -#endif { if (Tcl_Init (interp) == TCL_ERROR) { return TCL_ERROR; diff -Nru openldap-2.6.4+dfsg/contrib/slapd-modules/datamorph/tests/run openldap-2.6.6+dfsg/contrib/slapd-modules/datamorph/tests/run --- openldap-2.6.4+dfsg/contrib/slapd-modules/datamorph/tests/run 2023-02-08 18:53:35.000000000 +0000 +++ openldap-2.6.6+dfsg/contrib/slapd-modules/datamorph/tests/run 2023-07-31 18:09:15.000000000 +0000 @@ -12,207 +12,6 @@ ## A copy of this license is available in the file LICENSE in the ## top-level directory of the distribution or, alternatively, at ## . -## -## ACKNOWLEDGEMENTS: -## This module was written in 2016 by Ondřej Kuzník for Symas Corp. -USAGE="$0 [-b ] [-c] [-k] [-l #] [-p] [-s {ro|rp}] [-u] [-w]